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

Unified Diff: gpu/command_buffer/client/query_tracker.h

Issue 10577037: Add GL_CHROMIUM_get_error_query (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/client/query_tracker.h
diff --git a/gpu/command_buffer/client/query_tracker.h b/gpu/command_buffer/client/query_tracker.h
index 97464978b13e94e88f0310cecb2561b109304c58..adaba82dd90dec8415c0c8922896e2f7a421ec87 100644
--- a/gpu/command_buffer/client/query_tracker.h
+++ b/gpu/command_buffer/client/query_tracker.h
@@ -8,9 +8,9 @@
#include <GLES2/gl2.h>
#include <queue>
-#include "../../gpu_export.h"
#include "../client/hash_tables.h"
#include "../common/gles2_cmd_format.h"
+#include "gles2_impl_export.h"
namespace gpu {
@@ -19,8 +19,10 @@ class MappedMemoryManager;
namespace gles2 {
+class GLES2Implementation;
+
// Manages buckets of QuerySync instances in mapped memory.
-class GPU_EXPORT QuerySyncManager {
+class GLES2_IMPL_EXPORT QuerySyncManager {
public:
static const size_t kSyncsPerBucket = 4096;
@@ -57,9 +59,9 @@ class GPU_EXPORT QuerySyncManager {
};
// Tracks queries for client side of command buffer.
-class GPU_EXPORT QueryTracker {
+class GLES2_IMPL_EXPORT QueryTracker {
public:
- class GPU_EXPORT Query {
+ class GLES2_IMPL_EXPORT Query {
public:
enum State {
kUninitialized, // never used
@@ -126,6 +128,9 @@ class GPU_EXPORT QueryTracker {
uint32 GetResult() const;
+ void Begin(GLES2Implementation* gl);
+ void End(GLES2Implementation* gl);
+
private:
friend class QueryTracker;
friend class QueryTrackerTest;
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation_unittest.cc ('k') | gpu/command_buffer/client/query_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698