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

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

Issue 1469773002: sync compositor: Software draw (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove zero Created 5 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/android/sync_compositor_messages.h
diff --git a/content/common/android/sync_compositor_messages.h b/content/common/android/sync_compositor_messages.h
index 0326c6bae5dd01cbc02f19987f5dcc504335af3e..0b81686f6d6e119deab0108e046ed50c31b27e7e 100644
--- a/content/common/android/sync_compositor_messages.h
+++ b/content/common/android/sync_compositor_messages.h
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/memory/shared_memory_handle.h"
#include "cc/output/begin_frame_args.h"
#include "cc/output/compositor_frame.h"
#include "cc/output/compositor_frame_ack.h"
@@ -46,6 +47,16 @@ struct SyncCompositorDemandDrawHwParams {
gfx::Transform transform_for_tile_priority;
};
+struct SyncCompositorDemandDrawSwParams {
+ SyncCompositorDemandDrawSwParams();
+ ~SyncCompositorDemandDrawSwParams();
+
+ gfx::Size size;
+ gfx::Rect clip;
+ gfx::Transform transform;
+ base::SharedMemoryHandle shm_handle;
+};
+
struct SyncCompositorCommonRendererParams {
SyncCompositorCommonRendererParams();
~SyncCompositorCommonRendererParams();
@@ -88,6 +99,13 @@ IPC_STRUCT_TRAITS_BEGIN(content::SyncCompositorDemandDrawHwParams)
IPC_STRUCT_TRAITS_MEMBER(transform_for_tile_priority)
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)
IPC_STRUCT_TRAITS_MEMBER(version)
IPC_STRUCT_TRAITS_MEMBER(total_scroll_offset)
@@ -124,6 +142,13 @@ IPC_SYNC_MESSAGE_ROUTED2_2(SyncCompositorMsg_DemandDrawHw,
content::SyncCompositorCommonRendererParams,
cc::CompositorFrame)
+IPC_SYNC_MESSAGE_ROUTED2_3(SyncCompositorMsg_DemandDrawSw,
dcheng 2015/11/23 23:26:35 Can we add section comments like other IPC message
boliu 2015/11/24 00:16:33 Copied the same section headings from content/comm
+ content::SyncCompositorCommonBrowserParams,
+ content::SyncCompositorDemandDrawSwParams,
+ bool /* result */,
+ content::SyncCompositorCommonRendererParams,
+ cc::CompositorFrame)
+
IPC_MESSAGE_ROUTED1(SyncCompositorMsg_UpdateState,
content::SyncCompositorCommonBrowserParams)

Powered by Google App Engine
This is Rietveld 408576698