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

Unified Diff: webkit/common/gpu/webgraphicscontext3d_in_process_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: webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
diff --git a/webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc b/webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
index 84880201db5845066804782381fb760d1a5bf137..612443c7d66aab0b06c947737b787a3b3fbc61a3 100644
--- a/webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
+++ b/webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
@@ -1963,6 +1963,16 @@ void WebGraphicsContext3DInProcessCommandBufferImpl::signalSyncPoint(
shallowFlushCHROMIUM();
}
+void WebGraphicsContext3DInProcessCommandBufferImpl::signalQuery(
+ unsigned query,
+ WebGraphicsSyncPointCallback* callback) {
+ finish();
+ // Take ownership of the callback.
+ context_->SetSignalSyncPointCallback(make_scoped_ptr(callback));
+ // Stick something in the command buffer.
+ shallowFlushCHROMIUM();
+}
+
void WebGraphicsContext3DInProcessCommandBufferImpl::loseContextCHROMIUM(
WGC3Denum current, WGC3Denum other) {
context_->LoseContext(current, other);

Powered by Google App Engine
This is Rietveld 408576698