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

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

Issue 10389107: Implement GL_EXT_occlusion_query_boolean on OSX (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 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.

Powered by Google App Engine
This is Rietveld 408576698