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

Unified Diff: content/common/android/sync_compositor_messages.h

Issue 1541203003: IPC-based sync compositor software draw optimization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bring back zero-ing Created 5 years 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/android/sync_compositor_messages.h
diff --git a/content/common/android/sync_compositor_messages.h b/content/common/android/sync_compositor_messages.h
index 0e142143716ac283011907f8057c87b8a718d476..3a1d0f584d7f0ee19684e32e5de5c91c5b4f901c 100644
--- a/content/common/android/sync_compositor_messages.h
+++ b/content/common/android/sync_compositor_messages.h
@@ -48,6 +48,13 @@ struct SyncCompositorDemandDrawHwParams {
gfx::Transform transform_for_tile_priority;
};
+struct SyncCompositorSetSharedMemoryParams {
+ SyncCompositorSetSharedMemoryParams();
+
+ size_t buffer_size;
+ base::SharedMemoryHandle shm_handle;
+};
+
struct SyncCompositorDemandDrawSwParams {
SyncCompositorDemandDrawSwParams();
~SyncCompositorDemandDrawSwParams();
@@ -55,7 +62,6 @@ struct SyncCompositorDemandDrawSwParams {
gfx::Size size;
gfx::Rect clip;
gfx::Transform transform;
- base::SharedMemoryHandle shm_handle;
};
struct SyncCompositorCommonRendererParams {
@@ -101,11 +107,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)
@@ -146,6 +156,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,

Powered by Google App Engine
This is Rietveld 408576698