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

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: remove CHECK 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 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,
« no previous file with comments | « content/browser/android/synchronous_compositor_host.cc ('k') | content/common/android/sync_compositor_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698