| 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 faaa3e8ab12c4d41a24eeab4463a1c6592d70e46..705f4b9dc35af257623adf91e73eedd5d5a93c20 100644
|
| --- a/content/common/gpu/client/gpu_channel_host.cc
|
| +++ b/content/common/gpu/client/gpu_channel_host.cc
|
| @@ -50,6 +50,9 @@ bool GpuChannelHost::IsValidGpuMemoryBuffer(
|
| gfx::GpuMemoryBufferHandle handle) {
|
| switch (handle.type) {
|
| case gfx::SHARED_MEMORY_BUFFER:
|
| +#if defined(OS_MACOSX)
|
| + case gfx::IO_SURFACE_BUFFER:
|
| +#endif
|
| return true;
|
| default:
|
| return false;
|
| @@ -303,6 +306,10 @@ gfx::GpuMemoryBufferHandle GpuChannelHost::ShareGpuMemoryBufferToGpuProcess(
|
| handle.handle = ShareToGpuProcess(source_handle.handle);
|
| return handle;
|
| }
|
| +#if defined(OS_MACOSX)
|
| + case gfx::IO_SURFACE_BUFFER:
|
| + return source_handle;
|
| +#endif
|
| default:
|
| NOTREACHED();
|
| return gfx::GpuMemoryBufferHandle();
|
|
|