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

Unified Diff: content/common/cc_messages.h

Issue 11316128: Send compositor frame IPC with metadata. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Clean up and rebase to 173167 Created 8 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/cc_messages.h
diff --git a/content/common/cc_messages.h b/content/common/cc_messages.h
index 5730309f7f1192550a4c0ab091b9c9eefea338c3..dd5fa763d7e79f73a4b0067da9bb548ea7b713ac 100644
--- a/content/common/cc_messages.h
+++ b/content/common/cc_messages.h
@@ -5,9 +5,12 @@
// IPC Messages sent between compositor instances.
#include "cc/checkerboard_draw_quad.h"
+#include "cc/compositor_frame.h"
#include "cc/compositor_frame_ack.h"
#include "cc/debug_border_draw_quad.h"
+#include "cc/delegated_compositor_frame.h"
#include "cc/draw_quad.h"
+#include "cc/gl_compositor_frame.h"
#include "cc/io_surface_draw_quad.h"
#include "cc/render_pass.h"
#include "cc/render_pass_draw_quad.h"
@@ -82,8 +85,8 @@ struct CONTENT_EXPORT ParamTraits<cc::Mailbox> {
};
template<>
-struct CONTENT_EXPORT ParamTraits<cc::CompositorFrame> {
- typedef cc::CompositorFrame param_type;
+struct CONTENT_EXPORT ParamTraits<cc::DelegatedCompositorFrame> {
+ typedef cc::DelegatedCompositorFrame param_type;
static void Write(Message* m, const param_type& p);
static bool Read(const Message* m, PickleIterator* iter, param_type* p);
static void Log(const param_type& p, std::string* l);
@@ -99,6 +102,7 @@ struct CONTENT_EXPORT ParamTraits<cc::CompositorFrame> {
#undef IPC_MESSAGE_EXPORT
#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
+IPC_ENUM_TRAITS(cc::CompositorFrame::FrameType)
IPC_ENUM_TRAITS(cc::DrawQuad::Material)
IPC_ENUM_TRAITS(cc::IOSurfaceDrawQuad::Orientation)
IPC_ENUM_TRAITS(WebKit::WebFilterOperation::FilterType)
@@ -211,3 +215,24 @@ IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(cc::CompositorFrameAck)
IPC_STRUCT_TRAITS_MEMBER(resources)
IPC_STRUCT_TRAITS_END()
+
+IPC_STRUCT_TRAITS_BEGIN(cc::CompositorFrameMetadata)
+ IPC_STRUCT_TRAITS_MEMBER(root_scroll_offset)
+ IPC_STRUCT_TRAITS_MEMBER(page_scale_factor)
+ IPC_STRUCT_TRAITS_MEMBER(viewport_size)
+ IPC_STRUCT_TRAITS_MEMBER(root_layer_size)
+ IPC_STRUCT_TRAITS_MEMBER(min_page_scale_factor)
+ IPC_STRUCT_TRAITS_MEMBER(max_page_scale_factor)
+ IPC_STRUCT_TRAITS_MEMBER(location_bar_offset)
+IPC_STRUCT_TRAITS_END()
+
+IPC_STRUCT_TRAITS_BEGIN(cc::CompositorFrame)
+ IPC_STRUCT_TRAITS_MEMBER(type)
piman 2012/12/14 22:02:22 Somewhere, we need to check the enum values, verif
+ IPC_STRUCT_TRAITS_MEMBER(metadata)
+IPC_STRUCT_TRAITS_END()
+
+IPC_STRUCT_TRAITS_BEGIN(cc::GLCompositorFrame)
+ IPC_STRUCT_TRAITS_PARENT(cc::CompositorFrame)
piman 2012/12/14 22:02:22 We should check somewhere that type == GL.
+ IPC_STRUCT_TRAITS_MEMBER(mailbox_name)
+ IPC_STRUCT_TRAITS_MEMBER(sync_point)
+IPC_STRUCT_TRAITS_END()

Powered by Google App Engine
This is Rietveld 408576698