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

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

Issue 11234008: Enable texture readback support for Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 2 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_android.cc
diff --git a/content/browser/renderer_host/image_transport_factory_android.cc b/content/browser/renderer_host/image_transport_factory_android.cc
index 7299656b5e86130245d2c02a26b8d4671a8f40b5..d7e0505eba68bd68ac938909ea89596661abfc7b 100644
--- a/content/browser/renderer_host/image_transport_factory_android.cc
+++ b/content/browser/renderer_host/image_transport_factory_android.cc
@@ -7,7 +7,9 @@
#include "base/memory/singleton.h"
#include "content/browser/gpu/browser_gpu_channel_host_factory.h"
#include "content/common/gpu/gpu_process_launch_causes.h"
+#include "content/common/gpu/client/gl_helper.h"
#include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3D.h"
using content::BrowserGpuChannelHostFactory;
@@ -73,9 +75,15 @@ uint32_t ImageTransportFactoryAndroid::InsertSyncPoint() {
return context_->insertSyncPoint();
}
-WebGraphicsContext3DCommandBufferImpl*
-ImageTransportFactoryAndroid::GetContext3D() {
+WebKit::WebGraphicsContext3D* ImageTransportFactoryAndroid::GetContext3D() {
return context_.get();
}
+GLHelper* ImageTransportFactoryAndroid::GetGLHelper() {
+ if (!gl_helper_.get())
+ gl_helper_.reset(new GLHelper(GetContext3D(), NULL));
+
+ return gl_helper_.get();
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698