| Index: content/browser/renderer_host/render_message_filter.cc
|
| diff --git a/content/browser/renderer_host/render_message_filter.cc b/content/browser/renderer_host/render_message_filter.cc
|
| index c99340ea775a6fcc1f41fd9ace41daa179964e92..5cbce9eca28f1a9b9c65675ef9ce4bc2d38157a9 100644
|
| --- a/content/browser/renderer_host/render_message_filter.cc
|
| +++ b/content/browser/renderer_host/render_message_filter.cc
|
| @@ -1310,14 +1310,19 @@ void RenderMessageFilter::OnAllocateGpuMemoryBuffer(
|
| // Each surface texture is associated with a PeerHandle(). This allows the
|
| // GPU service and Java Binder IPC to verify that a renderer is not trying
|
| // to use a surface texture it doesn't own.
|
| - int surface_texture_id =
|
| - CompositorImpl::AllocateSurfaceTexture(PeerHandle());
|
| - if (surface_texture_id != -1) {
|
| - handle->type = gfx::SURFACE_TEXTURE_BUFFER;
|
| - handle->surface_texture_id =
|
| - gfx::SurfaceTextureId(surface_texture_id, PeerHandle());
|
| - return;
|
| - }
|
| +
|
| +#if 0
|
| + // TODO(reveman): AllocateGpuMemoryBuffer needs to be async for this
|
| + // to work.
|
| + BrowserThread::PostTask(
|
| + BrowserThread::UI,
|
| + FROM_HERE,
|
| + base::Bind(&RenderMessageFilter::CreateSurfaceTextureOnUI,
|
| + this,
|
| + PeerHandle()));
|
| + return;
|
| +#endif
|
| +
|
| }
|
| #endif
|
|
|
|
|