Index: gpu/command_buffer/client/gl_in_process_context.cc |
diff --git a/gpu/command_buffer/client/gl_in_process_context.cc b/gpu/command_buffer/client/gl_in_process_context.cc |
index f97099ae9785bd73b86857c658ed1719240492df..984214d8178c1ac7bdfc336a7c8a52e436378377 100644 |
--- a/gpu/command_buffer/client/gl_in_process_context.cc |
+++ b/gpu/command_buffer/client/gl_in_process_context.cc |
@@ -30,6 +30,10 @@ |
#include "ui/gfx/size.h" |
#include "ui/gl/gl_image.h" |
+#if defined(OS_ANDROID) |
+#include "ui/gl/android/surface_texture_bridge.h" |
+#endif |
+ |
namespace gpu { |
namespace { |
@@ -65,6 +69,11 @@ class GLInProcessContextImpl |
OVERRIDE; |
virtual gles2::GLES2Implementation* GetImplementation() OVERRIDE; |
+#if defined(OS_ANDROID) |
+ virtual scoped_refptr<gfx::SurfaceTextureBridge> GetSurfaceTexture( |
+ uint32 stream_id) OVERRIDE; |
+#endif |
+ |
private: |
void Destroy(); |
void PollQueryCallbacks(); |
@@ -333,6 +342,13 @@ void GLInProcessContextImpl::SignalQuery( |
} |
} |
+#if defined(OS_ANDROID) |
+scoped_refptr<gfx::SurfaceTextureBridge> |
+GLInProcessContextImpl::GetSurfaceTexture(uint32 stream_id) { |
+ return command_buffer_->GetSurfaceTexture(stream_id); |
+} |
+#endif |
+ |
} // anonymous namespace |
GLInProcessContextAttribs::GLInProcessContextAttribs() |