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

Side by Side Diff: ui/ozone/common/gpu/ozone_gpu_messages.h

Issue 2896173002: ozone: introduce OverlayCheckReturn_Params (Closed)
Patch Set: ozone: fix broken overlay promotion. Created 3 years, 6 months 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Multiply-included message file, hence no include guard here, but see below 5 // Multiply-included message file, hence no include guard here, but see below
6 // for a much smaller-than-usual include guard section. 6 // for a much smaller-than-usual include guard section.
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 16 matching lines...) Expand all
27 27
28 #define IPC_MESSAGE_START OzoneGpuMsgStart 28 #define IPC_MESSAGE_START OzoneGpuMsgStart
29 29
30 IPC_ENUM_TRAITS_MAX_VALUE(display::DisplayConnectionType, 30 IPC_ENUM_TRAITS_MAX_VALUE(display::DisplayConnectionType,
31 display::DISPLAY_CONNECTION_TYPE_LAST) 31 display::DISPLAY_CONNECTION_TYPE_LAST)
32 32
33 IPC_ENUM_TRAITS_MAX_VALUE(display::HDCPState, display::HDCP_STATE_LAST) 33 IPC_ENUM_TRAITS_MAX_VALUE(display::HDCPState, display::HDCP_STATE_LAST)
34 34
35 IPC_ENUM_TRAITS_MAX_VALUE(gfx::OverlayTransform, gfx::OVERLAY_TRANSFORM_LAST) 35 IPC_ENUM_TRAITS_MAX_VALUE(gfx::OverlayTransform, gfx::OVERLAY_TRANSFORM_LAST)
36 36
37 IPC_ENUM_TRAITS_MAX_VALUE(ui::OverlayCheckReturn_Params::Status,
38 ui::OverlayCheckReturn_Params::Status::LAST)
39
37 // clang-format off 40 // clang-format off
38 IPC_STRUCT_TRAITS_BEGIN(ui::DisplayMode_Params) 41 IPC_STRUCT_TRAITS_BEGIN(ui::DisplayMode_Params)
39 IPC_STRUCT_TRAITS_MEMBER(size) 42 IPC_STRUCT_TRAITS_MEMBER(size)
40 IPC_STRUCT_TRAITS_MEMBER(is_interlaced) 43 IPC_STRUCT_TRAITS_MEMBER(is_interlaced)
41 IPC_STRUCT_TRAITS_MEMBER(refresh_rate) 44 IPC_STRUCT_TRAITS_MEMBER(refresh_rate)
42 IPC_STRUCT_TRAITS_END() 45 IPC_STRUCT_TRAITS_END()
43 46
44 IPC_STRUCT_TRAITS_BEGIN(ui::DisplaySnapshot_Params) 47 IPC_STRUCT_TRAITS_BEGIN(ui::DisplaySnapshot_Params)
45 IPC_STRUCT_TRAITS_MEMBER(display_id) 48 IPC_STRUCT_TRAITS_MEMBER(display_id)
46 IPC_STRUCT_TRAITS_MEMBER(origin) 49 IPC_STRUCT_TRAITS_MEMBER(origin)
(...skipping 24 matching lines...) Expand all
71 IPC_STRUCT_TRAITS_BEGIN(ui::OverlayCheck_Params) 74 IPC_STRUCT_TRAITS_BEGIN(ui::OverlayCheck_Params)
72 IPC_STRUCT_TRAITS_MEMBER(buffer_size) 75 IPC_STRUCT_TRAITS_MEMBER(buffer_size)
73 IPC_STRUCT_TRAITS_MEMBER(transform) 76 IPC_STRUCT_TRAITS_MEMBER(transform)
74 IPC_STRUCT_TRAITS_MEMBER(format) 77 IPC_STRUCT_TRAITS_MEMBER(format)
75 IPC_STRUCT_TRAITS_MEMBER(display_rect) 78 IPC_STRUCT_TRAITS_MEMBER(display_rect)
76 IPC_STRUCT_TRAITS_MEMBER(crop_rect) 79 IPC_STRUCT_TRAITS_MEMBER(crop_rect)
77 IPC_STRUCT_TRAITS_MEMBER(plane_z_order) 80 IPC_STRUCT_TRAITS_MEMBER(plane_z_order)
78 IPC_STRUCT_TRAITS_MEMBER(is_overlay_candidate) 81 IPC_STRUCT_TRAITS_MEMBER(is_overlay_candidate)
79 IPC_STRUCT_TRAITS_END() 82 IPC_STRUCT_TRAITS_END()
80 83
84 IPC_STRUCT_TRAITS_BEGIN(ui::OverlayCheckReturn_Params)
85 IPC_STRUCT_TRAITS_MEMBER(status)
86 IPC_STRUCT_TRAITS_END()
87
81 // clang-format on 88 // clang-format on
82 89
83 //------------------------------------------------------------------------------ 90 //------------------------------------------------------------------------------
84 // GPU Messages 91 // GPU Messages
85 // These are messages from the browser to the GPU process. 92 // These are messages from the browser to the GPU process.
86 93
87 // Update the HW cursor bitmap & move to specified location. 94 // Update the HW cursor bitmap & move to specified location.
88 IPC_MESSAGE_CONTROL4(OzoneGpuMsg_CursorSet, 95 IPC_MESSAGE_CONTROL4(OzoneGpuMsg_CursorSet,
89 gfx::AcceleratedWidget, 96 gfx::AcceleratedWidget,
90 std::vector<SkBitmap>, 97 std::vector<SkBitmap>,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 185
179 // Response to OzoneGpuMsg_TakeDisplayControl. 186 // Response to OzoneGpuMsg_TakeDisplayControl.
180 IPC_MESSAGE_CONTROL1(OzoneHostMsg_DisplayControlTaken, bool /* success */) 187 IPC_MESSAGE_CONTROL1(OzoneHostMsg_DisplayControlTaken, bool /* success */)
181 188
182 // Response to OzoneGpuMsg_RelinquishDisplayControl. 189 // Response to OzoneGpuMsg_RelinquishDisplayControl.
183 IPC_MESSAGE_CONTROL1(OzoneHostMsg_DisplayControlRelinquished, 190 IPC_MESSAGE_CONTROL1(OzoneHostMsg_DisplayControlRelinquished,
184 bool /* success */) 191 bool /* success */)
185 192
186 // Response to OzoneGpuMsg_CheckOverlayCapabilities. Returns list of supported 193 // Response to OzoneGpuMsg_CheckOverlayCapabilities. Returns list of supported
187 // params. 194 // params.
188 IPC_MESSAGE_CONTROL2(OzoneHostMsg_OverlayCapabilitiesReceived, 195 IPC_MESSAGE_CONTROL3(OzoneHostMsg_OverlayCapabilitiesReceived,
189 gfx::AcceleratedWidget /* widget */, 196 gfx::AcceleratedWidget /* widget */,
190 std::vector<ui::OverlayCheck_Params> /* overlays */) 197 std::vector<ui::OverlayCheck_Params> /* overlays */,
198 std::vector<ui::OverlayCheckReturn_Params> /* returns */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698