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

Unified Diff: gpu/ipc/common/gpu_messages.h

Issue 1962493002: Make Mac swap code like other platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback Created 4 years, 7 months 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
« no previous file with comments | « gpu/ipc/client/gpu_process_hosted_ca_layer_tree_params.cc ('k') | gpu/ipc/service/gpu_channel_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/common/gpu_messages.h
diff --git a/gpu/ipc/common/gpu_messages.h b/gpu/ipc/common/gpu_messages.h
index d58264da15eb334cc9723e3e72d95ca0b9d7f527..3f77e920bd2c9ecfdb5105cca0e7534d776a233b 100644
--- a/gpu/ipc/common/gpu_messages.h
+++ b/gpu/ipc/common/gpu_messages.h
@@ -70,6 +70,25 @@ IPC_STRUCT_BEGIN(GpuCommandBufferMsg_CreateImage_Params)
IPC_STRUCT_MEMBER(uint64_t, image_release_count)
IPC_STRUCT_END()
+IPC_STRUCT_BEGIN(GpuCommandBufferMsg_SwapBuffersCompleted_Params)
+#if defined(OS_MACOSX)
+ // Mac-specific parameters used to present CALayers hosted in the GPU process.
+ // TODO(ccameron): Remove these parameters once the CALayer tree is hosted in
+ // the browser process.
+ // https://crbug.com/604052
+ IPC_STRUCT_MEMBER(gpu::SurfaceHandle, surface_handle)
+ // Only one of ca_context_id or io_surface may be non-0.
+ IPC_STRUCT_MEMBER(CAContextID, ca_context_id)
+ IPC_STRUCT_MEMBER(bool, fullscreen_low_power_ca_context_valid)
+ IPC_STRUCT_MEMBER(CAContextID, fullscreen_low_power_ca_context_id)
+ IPC_STRUCT_MEMBER(gfx::ScopedRefCountedIOSurfaceMachPort, io_surface)
+ IPC_STRUCT_MEMBER(gfx::Size, pixel_size)
+ IPC_STRUCT_MEMBER(float, scale_factor)
+#endif
+ IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info)
+ IPC_STRUCT_MEMBER(gfx::SwapResult, result)
+IPC_STRUCT_END()
+
//------------------------------------------------------------------------------
// GPU Channel Messages
// These are messages from a renderer process to the GPU process.
@@ -191,9 +210,9 @@ IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_Destroyed,
gpu::error::Error /* error */)
// Tells the browser that SwapBuffers returned and passes latency info
-IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SwapBuffersCompleted,
- std::vector<ui::LatencyInfo> /* latency_info */,
- gfx::SwapResult /* result */)
+IPC_MESSAGE_ROUTED1(
+ GpuCommandBufferMsg_SwapBuffersCompleted,
+ GpuCommandBufferMsg_SwapBuffersCompleted_Params /* params */)
// Tells the browser about updated parameters for vsync alignment.
IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_UpdateVSyncParameters,
« no previous file with comments | « gpu/ipc/client/gpu_process_hosted_ca_layer_tree_params.cc ('k') | gpu/ipc/service/gpu_channel_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698