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

Unified Diff: cc/resources/sync_point_helper.cc

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: cc/resources/sync_point_helper.cc
diff --git a/cc/resources/sync_point_helper.cc b/cc/resources/sync_point_helper.cc
index f4eea70eb9d09d3670b46cd14ff244a7404fd319..f5822a41ae98356c5afa28f2be929db80a55ae63 100644
--- a/cc/resources/sync_point_helper.cc
+++ b/cc/resources/sync_point_helper.cc
@@ -34,4 +34,15 @@ void SyncPointHelper::SignalSyncPoint(
context3d->signalSyncPoint(sync_point, callback_class);
}
+void SyncPointHelper::SignalQuery(
+ WebKit::WebGraphicsContext3D* context3d,
+ WebKit::WebGLId query,
+ const base::Closure& closure) {
+ SignalSyncPointCallbackClass* callback_class =
+ new SignalSyncPointCallbackClass(closure);
+
+ // Pass ownership of the CallbackClass to WebGraphicsContext3D.
+ context3d->signalQuery(query, callback_class);
+}
+
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698