Index: content/common/android/sync_compositor_messages.h |
diff --git a/content/common/android/sync_compositor_messages.h b/content/common/android/sync_compositor_messages.h |
index 4e2b7040b9da7e9a0bbd28bf293352e541e5777e..b2dccda302c578d3a8ec48148b820b40a9e3f94b 100644 |
--- a/content/common/android/sync_compositor_messages.h |
+++ b/content/common/android/sync_compositor_messages.h |
@@ -50,6 +50,13 @@ struct SyncCompositorDemandDrawHwParams { |
gfx::Transform transform_for_tile_priority; |
}; |
+struct SyncCompositorSetSharedMemoryParams { |
+ SyncCompositorSetSharedMemoryParams(); |
+ |
+ size_t buffer_size; |
+ base::SharedMemoryHandle shm_handle; |
+}; |
+ |
struct SyncCompositorDemandDrawSwParams { |
SyncCompositorDemandDrawSwParams(); |
~SyncCompositorDemandDrawSwParams(); |
@@ -57,7 +64,6 @@ struct SyncCompositorDemandDrawSwParams { |
gfx::Size size; |
gfx::Rect clip; |
gfx::Transform transform; |
- base::SharedMemoryHandle shm_handle; |
}; |
struct SyncCompositorCommonRendererParams { |
@@ -103,11 +109,15 @@ IPC_STRUCT_TRAITS_BEGIN(content::SyncCompositorDemandDrawHwParams) |
IPC_STRUCT_TRAITS_MEMBER(transform_for_tile_priority) |
IPC_STRUCT_TRAITS_END() |
+IPC_STRUCT_TRAITS_BEGIN(content::SyncCompositorSetSharedMemoryParams) |
+ IPC_STRUCT_TRAITS_MEMBER(buffer_size) |
+ IPC_STRUCT_TRAITS_MEMBER(shm_handle) |
+IPC_STRUCT_TRAITS_END() |
+ |
IPC_STRUCT_TRAITS_BEGIN(content::SyncCompositorDemandDrawSwParams) |
IPC_STRUCT_TRAITS_MEMBER(size) |
IPC_STRUCT_TRAITS_MEMBER(clip) |
IPC_STRUCT_TRAITS_MEMBER(transform) |
- IPC_STRUCT_TRAITS_MEMBER(shm_handle) |
IPC_STRUCT_TRAITS_END() |
IPC_STRUCT_TRAITS_BEGIN(content::SyncCompositorCommonRendererParams) |
@@ -148,6 +158,14 @@ IPC_SYNC_MESSAGE_ROUTED2_2(SyncCompositorMsg_DemandDrawHw, |
content::SyncCompositorCommonRendererParams, |
cc::CompositorFrame) |
+IPC_SYNC_MESSAGE_ROUTED2_2(SyncCompositorMsg_SetSharedMemory, |
+ content::SyncCompositorCommonBrowserParams, |
+ content::SyncCompositorSetSharedMemoryParams, |
+ bool /* success */, |
+ content::SyncCompositorCommonRendererParams); |
+ |
+IPC_MESSAGE_ROUTED0(SyncCompositorMsg_ZeroSharedMemory); |
+ |
IPC_SYNC_MESSAGE_ROUTED2_3(SyncCompositorMsg_DemandDrawSw, |
content::SyncCompositorCommonBrowserParams, |
content::SyncCompositorDemandDrawSwParams, |