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

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

Issue 213493002: content: Add multi-proc surface texture support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/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
« no previous file with comments | « content/browser/renderer_host/compositor_impl_android.cc ('k') | content/common/gpu/client/gpu_channel_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698