| Index: content/browser/renderer_host/compositor_impl_android.cc
|
| diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc
|
| index 4a4f891b67abd8e128184e80e6e14aeff0a324c6..3a6a0582c6cbe674f8c7ffb4c6d3d3155167a3ed 100644
|
| --- a/content/browser/renderer_host/compositor_impl_android.cc
|
| +++ b/content/browser/renderer_host/compositor_impl_android.cc
|
| @@ -13,6 +13,7 @@
|
| #include "content/browser/gpu/browser_gpu_channel_host_factory.h"
|
| #include "content/browser/gpu/gpu_surface_tracker.h"
|
| #include "content/browser/renderer_host/image_transport_factory_android.h"
|
| +#include "content/common/gpu/client/gl_helper.h"
|
| #include "content/common/gpu/client/gpu_channel_host.h"
|
| #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
|
| #include "content/common/gpu/gpu_process_launch_causes.h"
|
| @@ -233,6 +234,14 @@ void CompositorImpl::DeleteTexture(WebKit::WebGLId texture_id) {
|
| DCHECK(context->getError() == GL_NO_ERROR);
|
| }
|
|
|
| +void CompositorImpl::CopyTextureToBitmap(WebKit::WebGLId texture_id,
|
| + gfx::JavaBitmap& bitmap) {
|
| + GLHelper* helper = ImageTransportFactoryAndroid::GetInstance()->GetGLHelper();
|
| + helper->ReadbackTextureSync(texture_id,
|
| + bitmap.size(),
|
| + static_cast<unsigned char*> (bitmap.pixels()));
|
| +}
|
| +
|
| void CompositorImpl::updateAnimations(double frameBeginTime) {
|
| }
|
|
|
|
|