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

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

Issue 685983005: gpu: Associate all GpuMemoryBuffers with unique IDs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more ozone build fix Created 6 years, 1 month 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/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 7e97b9c42e19eac8dc344370a6ffc040483f6354..77ef8752afc9ffdf8411da6f78b178de32bc3838 100644
--- a/content/common/gpu/client/gpu_channel_host.cc
+++ b/content/common/gpu/client/gpu_channel_host.cc
@@ -281,7 +281,7 @@ int32 GpuChannelHost::ReserveTransferBufferId() {
}
gfx::GpuMemoryBufferHandle GpuChannelHost::ShareGpuMemoryBufferToGpuProcess(
- gfx::GpuMemoryBufferHandle source_handle,
+ const gfx::GpuMemoryBufferHandle& source_handle,
bool* requires_sync_point) {
switch (source_handle.type) {
case gfx::SHARED_MEMORY_BUFFER: {
@@ -291,26 +291,11 @@ gfx::GpuMemoryBufferHandle GpuChannelHost::ShareGpuMemoryBufferToGpuProcess(
*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:
+ case gfx::OZONE_NATIVE_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:
NOTREACHED();
return gfx::GpuMemoryBufferHandle();
« no previous file with comments | « content/common/gpu/client/gpu_channel_host.h ('k') | content/common/gpu/client/gpu_memory_buffer_factory_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698