summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/query_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/command_buffer/service/query_manager.h')
-rw-r--r--gpu/command_buffer/service/query_manager.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/gpu/command_buffer/service/query_manager.h b/gpu/command_buffer/service/query_manager.h
index 36753e7..1560a94 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.