Chromium Code Reviews

Unified Diff: content/common/gpu/client/gpu_channel_host.cc

Issue 195583003: Add initial GpuMemoryBufferSurfaceTexture implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use base::ProcessHandle explicitly in a few places Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: content/common/gpu/client/gpu_channel_host.cc
diff --git a/content/common/gpu/client/gpu_channel_host.cc b/content/common/gpu/client/gpu_channel_host.cc
index 45a0cc7e67ac7c2f48cb33f4ce99ac2c83e637c9..2a31c7c0ae1b545165fa67459f3810c3c0907624 100644
--- a/content/common/gpu/client/gpu_channel_host.cc
+++ b/content/common/gpu/client/gpu_channel_host.cc
@@ -51,6 +51,9 @@ bool GpuChannelHost::IsValidGpuMemoryBuffer(
#if defined(OS_MACOSX)
case gfx::IO_SURFACE_BUFFER:
#endif
+#if defined(OS_ANDROID)
+ case gfx::SURFACE_TEXTURE_BUFFER:
+#endif
return true;
default:
return false;
@@ -288,6 +291,10 @@ gfx::GpuMemoryBufferHandle GpuChannelHost::ShareGpuMemoryBufferToGpuProcess(
case gfx::IO_SURFACE_BUFFER:
return source_handle;
#endif
+#if defined(OS_ANDROID)
+ case gfx::SURFACE_TEXTURE_BUFFER:
+ return source_handle;
+#endif
default:
NOTREACHED();
return gfx::GpuMemoryBufferHandle();

Powered by Google App Engine