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
  • libANGLE
  • renderer
  • gl
  • StateManagerGL.cpp
Find file
BlameHistoryPermalink
  • Ian Ewell's avatar
    Fix context virtualization for timer queries · 292f005f
    Ian Ewell authored Feb 04, 2016
    In the current implementation of query virtualization, queries are
    paused/resumed during draw calls. Timer queries however are affected by
    every OpenGL call, so virtualization and context switches for timer
    queries must happen every time there is a context switch. Thus the logic
    for context-switching queries was moved to a new function in the GL state
    manager that is called everytime a makeCurrent call on the context is
    made. Since queries may be made after a context is made current, the state
    manager needs to keep track of any new queries that are started in a
    context, so an additional delegate function was added to the state manager
    that is called every time a glBeginQuery() call is made that adds the
    query object to a set. All the queries in that set are paused when a
    context switch is made and the queries in the new context are then loaded
    and resumed.
    
    BUG=angleproject:1307
    
    Change-Id: I4e596d83739274cb2e14152a39e86e0e51b0f95c
    Reviewed-on: https://chromium-review.googlesource.com/325811Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    Commit-Queue: Ian Ewell <ewell@google.com>
    292f005f
StateManagerGL.cpp 49 KB
EditWeb IDE
×

Replace StateManagerGL.cpp

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.