Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.h

Issue 1315713007: gpu: Reduce GL context switches used to check pending queries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_decoder.h
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.h b/gpu/command_buffer/service/gles2_cmd_decoder.h
index be24077ffb867cc1143363e7cce9faa205d17442..0fb4882c76d8a57f7977d9fd99ca1219fad31229 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.h
@@ -187,12 +187,16 @@ class GPU_EXPORT GLES2Decoder : public base::SupportsWeakPtr<GLES2Decoder>,
// Gets the ValuebufferManager for this context.
virtual ValuebufferManager* GetValuebufferManager() = 0;
- // Process any pending queries. Returns false if there are no pending queries.
- virtual bool ProcessPendingQueries(bool did_finish) = 0;
+ // Returns false if there are no pending queries.
+ virtual bool HasPendingQueries() const = 0;
- // Returns false if there are no idle work to be made.
- virtual bool HasMoreIdleWork() = 0;
+ // Process any pending queries.
+ virtual void ProcessPendingQueries(bool did_finish) = 0;
+ // Returns false if there is no idle work to be made.
+ virtual bool HasMoreIdleWork() const = 0;
+
+ // Perform any idle work that needs to be made.
virtual void PerformIdleWork() = 0;
// Sets a callback which is called when a glResizeCHROMIUM command
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698