Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
angle
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • angle
  • Repository

Switch branch/tag
  • angle
  • src
  • compiler
  • translator
  • IntermNode.h
Find file
BlameHistoryPermalink
  • Olli Etuaho's avatar
    Make AST path always include the current node being traversed · 1d9dcc24
    Olli Etuaho authored Jan 19, 2017
    AST traversers tend to sometimes call traverse() functions manually
    during PreVisit. Change TIntermTraverser so that even if this happens,
    all the nodes are automatically added to the traversal path, instead
    of having to add them manually in each individual AST traverser.
    
    This also makes calling getParentNode() return the correct node during
    InVisit.
    
    This does cause the same node being added to the traversal path twice
    in some cases, where nodes are repeatedly traversed, like in
    OutputHLSL, but this should not have adverse side effects. The more
    common case is that the traverse() function is called on the children
    of the node being currently traversed.
    
    This fixes a bug in OVR_multiview validation, which did not previously
    call incrementDepth and decrementDepth when it should have.
    
    BUG=angleproject:1725
    TEST=angle_unittests, angle_end2end_tests
    
    Change-Id: I6ae762eef760509ebe853eefa37dac28c16e7a9b
    Reviewed-on: https://chromium-review.googlesource.com/430732
    Commit-Queue: Olli Etuaho <oetuaho@nvidia.com>
    Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    1d9dcc24
IntermNode.h 43.1 KB
EditWeb IDE
×

Replace IntermNode.h

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.