diff options
author | stanisc <stanisc@chromium.org> | 2016-01-27 14:29:42 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-27 22:31:42 +0000 |
commit | 1f3c24312efb7d76ccb331f170aa0941e6fdfda9 (patch) | |
tree | 0909e3bb43588ef976b95de6cc14f86383e6baa8 /gpu/command_buffer/service/gpu_scheduler.h | |
parent | ab09c80991a9dffc0a37c92e54c2e57f9deca8b4 (diff) | |
download | chromium_src-1f3c24312efb7d76ccb331f170aa0941e6fdfda9.zip chromium_src-1f3c24312efb7d76ccb331f170aa0941e6fdfda9.tar.gz chromium_src-1f3c24312efb7d76ccb331f170aa0941e6fdfda9.tar.bz2 |
Reuse GLFenceNV when an existing CommandsCompletedQuery is reused
This is a first part of the fix for 573120. When Begin/End
are called again for a completed query that already has an
instance of GLFenceNV, the existing GLFenceNV instance is
reused rather than creating a new one.
For each frame that saves one call to glGenFencesNV and
one call to glDeleteFencesNV .
My estimation is that that saves about 0.2 Wt when playing
1080p @ 60Hz h.264 content.
The second part of the fix will add reusing instances of
CommandsCompletedQuery.
BUG=573120
Review URL: https://codereview.chromium.org/1637293002
Cr-Commit-Position: refs/heads/master@{#371898}
Diffstat (limited to 'gpu/command_buffer/service/gpu_scheduler.h')
-rw-r--r-- | gpu/command_buffer/service/gpu_scheduler.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gpu/command_buffer/service/gpu_scheduler.h b/gpu/command_buffer/service/gpu_scheduler.h index b3fd7e7..2a5ed82 100644 --- a/gpu/command_buffer/service/gpu_scheduler.h +++ b/gpu/command_buffer/service/gpu_scheduler.h @@ -24,10 +24,6 @@ #include "gpu/command_buffer/service/gles2_cmd_decoder.h" #include "gpu/gpu_export.h" -namespace gfx { -class GLFence; -} - namespace gpu { class PreemptionFlag |