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 36753e72258240c587c700ace0d81966d0ef76e4..1560a94d85a560d355e1d76d0d15564d48f0e178 100644 |
--- a/gpu/command_buffer/service/query_manager.h |
+++ b/gpu/command_buffer/service/query_manager.h |
@@ -11,6 +11,7 @@ |
#include "base/logging.h" |
#include "base/memory/ref_counted.h" |
#include "base/memory/scoped_ptr.h" |
+#include "gpu/command_buffer/service/feature_info.h" |
#include "gpu/command_buffer/service/gl_utils.h" |
#include "gpu/gpu_export.h" |
@@ -20,6 +21,8 @@ class CommonDecoder; |
namespace gles2 { |
+class FeatureInfo; |
+ |
// This class keeps track of the queries and their state |
// As Queries are not shared there is one QueryManager per context. |
class GPU_EXPORT QueryManager { |
@@ -129,7 +132,7 @@ class GPU_EXPORT QueryManager { |
QueryManager( |
CommonDecoder* decoder, |
- bool use_arb_occlusion_query2_for_occlusion_query_boolean); |
+ FeatureInfo* feature_info); |
~QueryManager(); |
// Must call before destruction. |
@@ -175,10 +178,15 @@ class GPU_EXPORT QueryManager { |
// Returns false if any query is pointing to invalid shared memory. |
bool RemovePendingQuery(Query* query); |
+ // Returns a target used for the underlying GL extension |
+ // used to emulate a query. |
+ GLenum AdjustTargetForEmulation(GLenum target); |
+ |
// Used to validate shared memory. |
CommonDecoder* decoder_; |
bool use_arb_occlusion_query2_for_occlusion_query_boolean_; |
+ bool use_arb_occlusion_query_for_occlusion_query_boolean_; |
// Counts the number of Queries allocated with 'this' as their manager. |
// Allows checking no Query will outlive this. |