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 2d25b4940f491530e767f80893bf4cee5b79f78c..7e97b9c42e19eac8dc344370a6ffc040483f6354 100644 |
--- a/content/common/gpu/client/gpu_channel_host.cc |
+++ b/content/common/gpu/client/gpu_channel_host.cc |
@@ -281,28 +281,34 @@ int32 GpuChannelHost::ReserveTransferBufferId() { |
} |
gfx::GpuMemoryBufferHandle GpuChannelHost::ShareGpuMemoryBufferToGpuProcess( |
- gfx::GpuMemoryBufferHandle source_handle) { |
+ gfx::GpuMemoryBufferHandle source_handle, |
+ bool* requires_sync_point) { |
switch (source_handle.type) { |
case gfx::SHARED_MEMORY_BUFFER: { |
gfx::GpuMemoryBufferHandle handle; |
handle.type = gfx::SHARED_MEMORY_BUFFER; |
handle.handle = ShareToGpuProcess(source_handle.handle); |
+ *requires_sync_point = false; |
return handle; |
} |
#if defined(USE_OZONE) |
case gfx::OZONE_NATIVE_BUFFER: |
+ *requires_sync_point = true; |
return source_handle; |
#endif |
#if defined(OS_MACOSX) |
case gfx::IO_SURFACE_BUFFER: |
+ *requires_sync_point = true; |
return source_handle; |
#endif |
#if defined(OS_ANDROID) |
case gfx::SURFACE_TEXTURE_BUFFER: |
+ *requires_sync_point = true; |
return source_handle; |
#endif |
#if defined(USE_X11) |
case gfx::X11_PIXMAP_BUFFER: |
+ *requires_sync_point = true; |
return source_handle; |
#endif |
default: |