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

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

Issue 1233233002: Added support for TimeStamp queries using QueryCounterEXT. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed GetQueryivEXT test with QueryCounter Created 5 years, 5 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
Index: gpu/command_buffer/service/query_manager.h
diff --git a/gpu/command_buffer/service/query_manager.h b/gpu/command_buffer/service/query_manager.h
index e453d03f818e3b99d54e7104749fabb3dea5e183..e07d018455a4d88c6127ad7fa84798a16671de3a 100644
--- a/gpu/command_buffer/service/query_manager.h
+++ b/gpu/command_buffer/service/query_manager.h
@@ -69,6 +69,9 @@ class GPU_EXPORT QueryManager {
virtual bool End(base::subtle::Atomic32 submit_count) = 0;
// Returns false if shared memory for sync is invalid.
+ virtual bool QueryCounter(base::subtle::Atomic32 submit_count) = 0;
+
+ // Returns false if shared memory for sync is invalid.
virtual bool Process(bool did_finish) = 0;
virtual void Destroy(bool have_context) = 0;
@@ -174,6 +177,9 @@ class GPU_EXPORT QueryManager {
// Returns false if any query is pointing to invalid shared memory.
bool EndQuery(Query* query, base::subtle::Atomic32 submit_count);
+ // Returns false if any query is pointing to invalid shared memory.
+ bool QueryCounter(Query* query, base::subtle::Atomic32 submit_count);
+
// Processes pending queries. Returns false if any queries are pointing
// to invalid shared memory. |did_finish| is true if this is called as
// a result of calling glFinish().
@@ -249,7 +255,6 @@ class GPU_EXPORT QueryManager {
// Async pixel transfer queries waiting for completion.
QueryQueue pending_transfer_queries_;
- // Used for timer queries.
scoped_refptr<gfx::GPUTimingClient> gpu_timing_client_;
DISALLOW_COPY_AND_ASSIGN(QueryManager);
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h ('k') | gpu/command_buffer/service/query_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698