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

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

Issue 1157793004: ozone: Add overlay candidate implementation that queries support via IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing license header Created 5 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
« no previous file with comments | « ui/ozone/common/gpu/ozone_gpu_message_params.cc ('k') | ui/ozone/platform/drm/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <vector> 8 #include <vector>
9 9
10 #include "base/file_descriptor_posix.h" 10 #include "base/file_descriptor_posix.h"
(...skipping 11 matching lines...) Expand all
22 #undef IPC_MESSAGE_EXPORT 22 #undef IPC_MESSAGE_EXPORT
23 #define IPC_MESSAGE_EXPORT OZONE_EXPORT 23 #define IPC_MESSAGE_EXPORT OZONE_EXPORT
24 24
25 #define IPC_MESSAGE_START OzoneGpuMsgStart 25 #define IPC_MESSAGE_START OzoneGpuMsgStart
26 26
27 IPC_ENUM_TRAITS_MAX_VALUE(ui::DisplayConnectionType, 27 IPC_ENUM_TRAITS_MAX_VALUE(ui::DisplayConnectionType,
28 ui::DISPLAY_CONNECTION_TYPE_LAST) 28 ui::DISPLAY_CONNECTION_TYPE_LAST)
29 29
30 IPC_ENUM_TRAITS_MAX_VALUE(ui::HDCPState, ui::HDCP_STATE_LAST) 30 IPC_ENUM_TRAITS_MAX_VALUE(ui::HDCPState, ui::HDCP_STATE_LAST)
31 31
32 IPC_ENUM_TRAITS_MAX_VALUE(gfx::OverlayTransform, gfx::OVERLAY_TRANSFORM_LAST)
33
34 IPC_ENUM_TRAITS_MAX_VALUE(ui::SurfaceFactoryOzone::BufferFormat,
35 ui::SurfaceFactoryOzone::BUFFER_FORMAT_LAST)
36
32 // clang-format off 37 // clang-format off
33
34 IPC_STRUCT_TRAITS_BEGIN(ui::DisplayMode_Params) 38 IPC_STRUCT_TRAITS_BEGIN(ui::DisplayMode_Params)
35 IPC_STRUCT_TRAITS_MEMBER(size) 39 IPC_STRUCT_TRAITS_MEMBER(size)
36 IPC_STRUCT_TRAITS_MEMBER(is_interlaced) 40 IPC_STRUCT_TRAITS_MEMBER(is_interlaced)
37 IPC_STRUCT_TRAITS_MEMBER(refresh_rate) 41 IPC_STRUCT_TRAITS_MEMBER(refresh_rate)
38 IPC_STRUCT_TRAITS_END() 42 IPC_STRUCT_TRAITS_END()
39 43
40 IPC_STRUCT_TRAITS_BEGIN(ui::DisplaySnapshot_Params) 44 IPC_STRUCT_TRAITS_BEGIN(ui::DisplaySnapshot_Params)
41 IPC_STRUCT_TRAITS_MEMBER(display_id) 45 IPC_STRUCT_TRAITS_MEMBER(display_id)
42 IPC_STRUCT_TRAITS_MEMBER(origin) 46 IPC_STRUCT_TRAITS_MEMBER(origin)
43 IPC_STRUCT_TRAITS_MEMBER(physical_size) 47 IPC_STRUCT_TRAITS_MEMBER(physical_size)
44 IPC_STRUCT_TRAITS_MEMBER(type) 48 IPC_STRUCT_TRAITS_MEMBER(type)
45 IPC_STRUCT_TRAITS_MEMBER(is_aspect_preserving_scaling) 49 IPC_STRUCT_TRAITS_MEMBER(is_aspect_preserving_scaling)
46 IPC_STRUCT_TRAITS_MEMBER(has_overscan) 50 IPC_STRUCT_TRAITS_MEMBER(has_overscan)
47 IPC_STRUCT_TRAITS_MEMBER(display_name) 51 IPC_STRUCT_TRAITS_MEMBER(display_name)
48 IPC_STRUCT_TRAITS_MEMBER(modes) 52 IPC_STRUCT_TRAITS_MEMBER(modes)
49 IPC_STRUCT_TRAITS_MEMBER(has_current_mode) 53 IPC_STRUCT_TRAITS_MEMBER(has_current_mode)
50 IPC_STRUCT_TRAITS_MEMBER(current_mode) 54 IPC_STRUCT_TRAITS_MEMBER(current_mode)
51 IPC_STRUCT_TRAITS_MEMBER(has_native_mode) 55 IPC_STRUCT_TRAITS_MEMBER(has_native_mode)
52 IPC_STRUCT_TRAITS_MEMBER(native_mode) 56 IPC_STRUCT_TRAITS_MEMBER(native_mode)
53 IPC_STRUCT_TRAITS_MEMBER(product_id) 57 IPC_STRUCT_TRAITS_MEMBER(product_id)
54 IPC_STRUCT_TRAITS_MEMBER(string_representation) 58 IPC_STRUCT_TRAITS_MEMBER(string_representation)
55 IPC_STRUCT_TRAITS_END() 59 IPC_STRUCT_TRAITS_END()
56 60
57 IPC_STRUCT_TRAITS_BEGIN(ui::GammaRampRGBEntry) 61 IPC_STRUCT_TRAITS_BEGIN(ui::GammaRampRGBEntry)
58 IPC_STRUCT_TRAITS_MEMBER(r) 62 IPC_STRUCT_TRAITS_MEMBER(r)
59 IPC_STRUCT_TRAITS_MEMBER(g) 63 IPC_STRUCT_TRAITS_MEMBER(g)
60 IPC_STRUCT_TRAITS_MEMBER(b) 64 IPC_STRUCT_TRAITS_MEMBER(b)
61 IPC_STRUCT_TRAITS_END() 65 IPC_STRUCT_TRAITS_END()
62 66
67 IPC_STRUCT_TRAITS_BEGIN(ui::OverlayCheck_Params)
68 IPC_STRUCT_TRAITS_MEMBER(buffer_size)
69 IPC_STRUCT_TRAITS_MEMBER(transform)
70 IPC_STRUCT_TRAITS_MEMBER(format)
71 IPC_STRUCT_TRAITS_MEMBER(display_rect)
72 IPC_STRUCT_TRAITS_MEMBER(plane_z_order)
73 IPC_STRUCT_TRAITS_END()
74
63 // clang-format on 75 // clang-format on
64 76
65 //------------------------------------------------------------------------------ 77 //------------------------------------------------------------------------------
66 // GPU Messages 78 // GPU Messages
67 // These are messages from the browser to the GPU process. 79 // These are messages from the browser to the GPU process.
68 80
69 // Update the HW cursor bitmap & move to specified location. 81 // Update the HW cursor bitmap & move to specified location.
70 IPC_MESSAGE_CONTROL4(OzoneGpuMsg_CursorSet, 82 IPC_MESSAGE_CONTROL4(OzoneGpuMsg_CursorSet,
71 gfx::AcceleratedWidget, 83 gfx::AcceleratedWidget,
72 std::vector<SkBitmap>, 84 std::vector<SkBitmap>,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 133
122 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetHDCPState, 134 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetHDCPState,
123 int64_t /* display_id */, 135 int64_t /* display_id */,
124 ui::HDCPState /* state */) 136 ui::HDCPState /* state */)
125 137
126 // Provides the gamma ramp for display adjustment. 138 // Provides the gamma ramp for display adjustment.
127 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetGammaRamp, 139 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetGammaRamp,
128 int64_t, // display ID, 140 int64_t, // display ID,
129 std::vector<ui::GammaRampRGBEntry>) // lut 141 std::vector<ui::GammaRampRGBEntry>) // lut
130 142
143 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_CheckOverlayCapabilities,
144 gfx::AcceleratedWidget /* widget */,
145 std::vector<ui::OverlayCheck_Params> /* overlays */)
146
131 //------------------------------------------------------------------------------ 147 //------------------------------------------------------------------------------
132 // Browser Messages 148 // Browser Messages
133 // These messages are from the GPU to the browser process. 149 // These messages are from the GPU to the browser process.
134 150
135 // Updates the list of active displays. 151 // Updates the list of active displays.
136 IPC_MESSAGE_CONTROL1(OzoneHostMsg_UpdateNativeDisplays, 152 IPC_MESSAGE_CONTROL1(OzoneHostMsg_UpdateNativeDisplays,
137 std::vector<ui::DisplaySnapshot_Params>) 153 std::vector<ui::DisplaySnapshot_Params>)
138 154
139 IPC_MESSAGE_CONTROL2(OzoneHostMsg_DisplayConfigured, 155 IPC_MESSAGE_CONTROL2(OzoneHostMsg_DisplayConfigured,
140 int64_t /* display_id */, 156 int64_t /* display_id */,
141 bool /* status */) 157 bool /* status */)
142 158
143 // Response for OzoneGpuMsg_GetHDCPState. 159 // Response for OzoneGpuMsg_GetHDCPState.
144 IPC_MESSAGE_CONTROL3(OzoneHostMsg_HDCPStateReceived, 160 IPC_MESSAGE_CONTROL3(OzoneHostMsg_HDCPStateReceived,
145 int64_t /* display_id */, 161 int64_t /* display_id */,
146 bool /* success */, 162 bool /* success */,
147 ui::HDCPState /* state */) 163 ui::HDCPState /* state */)
148 164
149 // Response for OzoneGpuMsg_SetHDCPState. 165 // Response for OzoneGpuMsg_SetHDCPState.
150 IPC_MESSAGE_CONTROL2(OzoneHostMsg_HDCPStateUpdated, 166 IPC_MESSAGE_CONTROL2(OzoneHostMsg_HDCPStateUpdated,
151 int64_t /* display_id */, 167 int64_t /* display_id */,
152 bool /* success */) 168 bool /* success */)
153 169
154 // Response to OzoneGpuMsg_TakeDisplayControl. 170 // Response to OzoneGpuMsg_TakeDisplayControl.
155 IPC_MESSAGE_CONTROL1(OzoneHostMsg_DisplayControlTaken, bool /* success */) 171 IPC_MESSAGE_CONTROL1(OzoneHostMsg_DisplayControlTaken, bool /* success */)
156 172
157 // Response to OzoneGpuMsg_RelinquishDisplayControl. 173 // Response to OzoneGpuMsg_RelinquishDisplayControl.
158 IPC_MESSAGE_CONTROL1(OzoneHostMsg_DisplayControlRelinquished, 174 IPC_MESSAGE_CONTROL1(OzoneHostMsg_DisplayControlRelinquished,
159 bool /* success */) 175 bool /* success */)
176
177 // Response for OzoneGpuMsg_CheckOverlayCapabilities
178 IPC_MESSAGE_CONTROL2(OzoneHostMsg_OverlayCapabilitiesReceived,
179 gfx::AcceleratedWidget /* widget */,
180 bool /* result */)
OLDNEW
« no previous file with comments | « ui/ozone/common/gpu/ozone_gpu_message_params.cc ('k') | ui/ozone/platform/drm/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698