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

Unified Diff: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.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: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
diff --git a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
index 09f13f0a188d2a79021b289b8683d4c5da6640c4..f12956870908054ed8da52fd9f077b4465ec838c 100644
--- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
+++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
@@ -1545,6 +1545,20 @@ void WebGraphicsContext3DCommandBufferImpl::signalSyncPoint(
base::Bind(&SignalSyncPointCallback, base::Passed(&own_callback)));
}
+void WebGraphicsContext3DCommandBufferImpl::signalQuery(
+ unsigned query,
+ WebGraphicsSyncPointCallback* callback) {
+ // Take ownership of the callback.
+ scoped_ptr<WebGraphicsSyncPointCallback> own_callback(callback);
+ // Flush any pending commands to make sure that the the query
+ // has actually been created/started before we try to attach
+ // a callback to it.
+ gl_->Flush();
+ command_buffer_->SignalQuery(
+ query,
+ base::Bind(&SignalSyncPointCallback, base::Passed(&own_callback)));
+}
+
void WebGraphicsContext3DCommandBufferImpl::genMailboxCHROMIUM(
WGC3Dbyte* name) {
std::vector<gpu::Mailbox> names;

Powered by Google App Engine
This is Rietveld 408576698