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

Unified Diff: content/browser/renderer_host/image_transport_factory.cc

Issue 12892005: Implement client side PBOs for glReadPixel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more comments, GL_STREAM_READ added Created 7 years, 9 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/browser/renderer_host/image_transport_factory.cc
diff --git a/content/browser/renderer_host/image_transport_factory.cc b/content/browser/renderer_host/image_transport_factory.cc
index be01420b702cfe4b776474e9fbd9c66e5d399f77..1d16958b5ff30cb022e8448a99493cd1e9970339 100644
--- a/content/browser/renderer_host/image_transport_factory.cc
+++ b/content/browser/renderer_host/image_transport_factory.cc
@@ -466,13 +466,7 @@ class GpuProcessTransportFactory
CreateSharedContextLazy();
WebKit::WebGraphicsContext3D* context_for_main_thread =
shared_contexts_main_thread_->Context3d();
- WebKit::WebGraphicsContext3D* context_for_thread =
- CreateOffscreenContext();
- if (!context_for_thread)
- return NULL;
-
- gl_helper_.reset(new GLHelper(context_for_main_thread,
- context_for_thread));
+ gl_helper_.reset(new GLHelper(context_for_main_thread));
}
return gl_helper_.get();
}

Powered by Google App Engine
This is Rietveld 408576698