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 cbc7931ad1f683a016f9feae9c5e7a51f6f1ef93..36d424cefb345d6c1878615eabbf496525cb5a76 100644 |
--- a/gpu/command_buffer/service/query_manager.h |
+++ b/gpu/command_buffer/service/query_manager.h |
@@ -188,6 +188,9 @@ class GPU_EXPORT QueryManager { |
return decoder_; |
} |
+ void GenQueries(GLsizei n, const GLuint* queries); |
+ bool IsValidQuery(GLuint id); |
+ |
private: |
void StartTracking(Query* query); |
void StopTracking(Query* query); |
@@ -228,6 +231,9 @@ class GPU_EXPORT QueryManager { |
typedef base::hash_map<GLuint, scoped_refptr<Query> > QueryMap; |
QueryMap queries_; |
+ typedef base::hash_set<GLuint> GeneratedQueryIds; |
+ GeneratedQueryIds generated_query_ids_; |
+ |
// Queries waiting for completion. |
typedef std::deque<scoped_refptr<Query> > QueryQueue; |
QueryQueue pending_queries_; |