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 dc1a3ce23a4af0c1583d8d9754829e4ab0970d7a..bb3a06dc7301c8ebdc03fd83da1524f33eb5b4f1 100644 |
--- a/content/common/gpu/client/gpu_channel_host.cc |
+++ b/content/common/gpu/client/gpu_channel_host.cc |
@@ -47,6 +47,9 @@ bool GpuChannelHost::IsValidGpuMemoryBuffer( |
gfx::GpuMemoryBufferHandle handle) { |
switch (handle.type) { |
case gfx::SHARED_MEMORY_BUFFER: |
+#if defined(OS_LINUX) |
+ case gfx::INTEL_DRM_BUFFER: |
+#endif |
#if defined(OS_MACOSX) |
case gfx::IO_SURFACE_BUFFER: |
#endif |
@@ -290,9 +293,12 @@ int32 GpuChannelHost::ReserveTransferBufferId() { |
gfx::GpuMemoryBufferHandle GpuChannelHost::ShareGpuMemoryBufferToGpuProcess( |
gfx::GpuMemoryBufferHandle source_handle) { |
switch (source_handle.type) { |
+#if defined(OS_LINUX) |
+ case gfx::INTEL_DRM_BUFFER: |
+#endif |
case gfx::SHARED_MEMORY_BUFFER: { |
gfx::GpuMemoryBufferHandle handle; |
- handle.type = gfx::SHARED_MEMORY_BUFFER; |
+ handle.type = source_handle.type; |
handle.handle = ShareToGpuProcess(source_handle.handle); |
return handle; |
} |