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

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

Issue 1188013004: Added support for Time Elapsed queries through the command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed extra line Created 5 years, 6 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 5f14929272c2c5ce77ee4c3c85606894cfce83f8..e453d03f818e3b99d54e7104749fabb3dea5e183 100644
--- a/gpu/command_buffer/service/query_manager.h
+++ b/gpu/command_buffer/service/query_manager.h
@@ -16,6 +16,11 @@
#include "gpu/command_buffer/service/feature_info.h"
#include "gpu/gpu_export.h"
+namespace gfx {
+ class GPUTimer;
+ class GPUTimingClient;
+}
+
namespace gpu {
class GLES2Decoder;
@@ -188,6 +193,9 @@ class GPU_EXPORT QueryManager {
return decoder_;
}
+ scoped_ptr<gfx::GPUTimer> CreateGPUTimer(bool elapsed_time);
+ bool GPUTimingAvailable();
+
void GenQueries(GLsizei n, const GLuint* queries);
bool IsValidQuery(GLuint id);
@@ -241,6 +249,9 @@ 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);
};

Powered by Google App Engine
This is Rietveld 408576698