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

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

Issue 16831004: Perform glReadPixels with PBOs in the gpu, if PBOs are available. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use webglid where approperiate Created 7 years, 6 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 3a16da4241aa3ba72e92f600fd1eef3568835890..d77982b897fc161867a23c50ef3013b91e5a3d73 100644
--- a/gpu/command_buffer/service/query_manager.h
+++ b/gpu/command_buffer/service/query_manager.h
@@ -6,6 +6,7 @@
#define GPU_COMMAND_BUFFER_SERVICE_QUERY_MANAGER_H_
#include <deque>
+#include <vector>
#include "base/basictypes.h"
#include "base/containers/hash_tables.h"
#include "base/logging.h"
@@ -67,6 +68,8 @@ class GPU_EXPORT QueryManager {
virtual void Destroy(bool have_context) = 0;
+ void AddCallback(base::Closure callback);
+
protected:
virtual ~Query();
@@ -119,6 +122,8 @@ class GPU_EXPORT QueryManager {
friend class QueryManagerTest;
friend class base::RefCounted<Query>;
+ void RunCallbacks();
+
// The manager that owns this Query.
QueryManager* manager_;
@@ -137,6 +142,9 @@ class GPU_EXPORT QueryManager {
// True if deleted.
bool deleted_;
+
+ // List of callbacks to run when result is available.
+ std::vector<base::Closure> callbacks_;
};
QueryManager(

Powered by Google App Engine
This is Rietveld 408576698