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

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

Issue 2613493002: Fix namespace for src/ui/display/. (Closed)
Patch Set: Rebase. Created 3 years, 11 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.h ('k') | ui/ozone/demo/ozone_demo.cc » ('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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/file_descriptor_posix.h" 12 #include "base/file_descriptor_posix.h"
13 #include "ipc/ipc_message_macros.h" 13 #include "ipc/ipc_message_macros.h"
14 #include "third_party/skia/include/core/SkBitmap.h" 14 #include "third_party/skia/include/core/SkBitmap.h"
15 #include "ui/display/types/display_constants.h" 15 #include "ui/display/types/display_constants.h"
16 #include "ui/display/types/gamma_ramp_rgb_entry.h" 16 #include "ui/display/types/gamma_ramp_rgb_entry.h"
17 #include "ui/gfx/geometry/point.h" 17 #include "ui/gfx/geometry/point.h"
18 #include "ui/gfx/geometry/rect.h" 18 #include "ui/gfx/geometry/rect.h"
19 #include "ui/gfx/ipc/geometry/gfx_param_traits.h" 19 #include "ui/gfx/ipc/geometry/gfx_param_traits.h"
20 #include "ui/gfx/ipc/gfx_param_traits.h" 20 #include "ui/gfx/ipc/gfx_param_traits.h"
21 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" 21 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h"
22 #include "ui/gfx/native_widget_types.h" 22 #include "ui/gfx/native_widget_types.h"
23 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" 23 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h"
24 24
25 #undef IPC_MESSAGE_EXPORT 25 #undef IPC_MESSAGE_EXPORT
26 #define IPC_MESSAGE_EXPORT 26 #define IPC_MESSAGE_EXPORT
27 27
28 #define IPC_MESSAGE_START OzoneGpuMsgStart 28 #define IPC_MESSAGE_START OzoneGpuMsgStart
29 29
30 IPC_ENUM_TRAITS_MAX_VALUE(ui::DisplayConnectionType, 30 IPC_ENUM_TRAITS_MAX_VALUE(display::DisplayConnectionType,
31 ui::DISPLAY_CONNECTION_TYPE_LAST) 31 display::DISPLAY_CONNECTION_TYPE_LAST)
32 32
33 IPC_ENUM_TRAITS_MAX_VALUE(ui::HDCPState, ui::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 // clang-format off 37 // clang-format off
38 IPC_STRUCT_TRAITS_BEGIN(ui::DisplayMode_Params) 38 IPC_STRUCT_TRAITS_BEGIN(ui::DisplayMode_Params)
39 IPC_STRUCT_TRAITS_MEMBER(size) 39 IPC_STRUCT_TRAITS_MEMBER(size)
40 IPC_STRUCT_TRAITS_MEMBER(is_interlaced) 40 IPC_STRUCT_TRAITS_MEMBER(is_interlaced)
41 IPC_STRUCT_TRAITS_MEMBER(refresh_rate) 41 IPC_STRUCT_TRAITS_MEMBER(refresh_rate)
42 IPC_STRUCT_TRAITS_END() 42 IPC_STRUCT_TRAITS_END()
43 43
(...skipping 11 matching lines...) Expand all
55 IPC_STRUCT_TRAITS_MEMBER(edid) 55 IPC_STRUCT_TRAITS_MEMBER(edid)
56 IPC_STRUCT_TRAITS_MEMBER(has_current_mode) 56 IPC_STRUCT_TRAITS_MEMBER(has_current_mode)
57 IPC_STRUCT_TRAITS_MEMBER(current_mode) 57 IPC_STRUCT_TRAITS_MEMBER(current_mode)
58 IPC_STRUCT_TRAITS_MEMBER(has_native_mode) 58 IPC_STRUCT_TRAITS_MEMBER(has_native_mode)
59 IPC_STRUCT_TRAITS_MEMBER(native_mode) 59 IPC_STRUCT_TRAITS_MEMBER(native_mode)
60 IPC_STRUCT_TRAITS_MEMBER(product_id) 60 IPC_STRUCT_TRAITS_MEMBER(product_id)
61 IPC_STRUCT_TRAITS_MEMBER(string_representation) 61 IPC_STRUCT_TRAITS_MEMBER(string_representation)
62 IPC_STRUCT_TRAITS_MEMBER(maximum_cursor_size) 62 IPC_STRUCT_TRAITS_MEMBER(maximum_cursor_size)
63 IPC_STRUCT_TRAITS_END() 63 IPC_STRUCT_TRAITS_END()
64 64
65 IPC_STRUCT_TRAITS_BEGIN(ui::GammaRampRGBEntry) 65 IPC_STRUCT_TRAITS_BEGIN(display::GammaRampRGBEntry)
66 IPC_STRUCT_TRAITS_MEMBER(r) 66 IPC_STRUCT_TRAITS_MEMBER(r)
67 IPC_STRUCT_TRAITS_MEMBER(g) 67 IPC_STRUCT_TRAITS_MEMBER(g)
68 IPC_STRUCT_TRAITS_MEMBER(b) 68 IPC_STRUCT_TRAITS_MEMBER(b)
69 IPC_STRUCT_TRAITS_END() 69 IPC_STRUCT_TRAITS_END()
70 70
71 IPC_STRUCT_TRAITS_BEGIN(ui::OverlayCheck_Params) 71 IPC_STRUCT_TRAITS_BEGIN(ui::OverlayCheck_Params)
72 IPC_STRUCT_TRAITS_MEMBER(buffer_size) 72 IPC_STRUCT_TRAITS_MEMBER(buffer_size)
73 IPC_STRUCT_TRAITS_MEMBER(transform) 73 IPC_STRUCT_TRAITS_MEMBER(transform)
74 IPC_STRUCT_TRAITS_MEMBER(format) 74 IPC_STRUCT_TRAITS_MEMBER(format)
75 IPC_STRUCT_TRAITS_MEMBER(display_rect) 75 IPC_STRUCT_TRAITS_MEMBER(display_rect)
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // Take control of the display 134 // Take control of the display
135 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_TakeDisplayControl) 135 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_TakeDisplayControl)
136 136
137 // Let other entity control the display 137 // Let other entity control the display
138 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_RelinquishDisplayControl) 138 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_RelinquishDisplayControl)
139 139
140 IPC_MESSAGE_CONTROL1(OzoneGpuMsg_GetHDCPState, int64_t /* display_id */) 140 IPC_MESSAGE_CONTROL1(OzoneGpuMsg_GetHDCPState, int64_t /* display_id */)
141 141
142 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetHDCPState, 142 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetHDCPState,
143 int64_t /* display_id */, 143 int64_t /* display_id */,
144 ui::HDCPState /* state */) 144 display::HDCPState /* state */)
145 145
146 IPC_MESSAGE_CONTROL4(OzoneGpuMsg_SetColorCorrection, 146 IPC_MESSAGE_CONTROL4(OzoneGpuMsg_SetColorCorrection,
147 int64_t, // display ID, 147 int64_t, // display ID,
148 std::vector<ui::GammaRampRGBEntry>, // degamma lut 148 std::vector<display::GammaRampRGBEntry>, // degamma lut
149 std::vector<ui::GammaRampRGBEntry>, // gamma lut 149 std::vector<display::GammaRampRGBEntry>, // gamma lut
150 std::vector<float>) // transform matrix 150 std::vector<float>) // transform matrix
151 151
152 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_CheckOverlayCapabilities, 152 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_CheckOverlayCapabilities,
153 gfx::AcceleratedWidget /* widget */, 153 gfx::AcceleratedWidget /* widget */,
154 std::vector<ui::OverlayCheck_Params> /* overlays */) 154 std::vector<ui::OverlayCheck_Params> /* overlays */)
155 155
156 //------------------------------------------------------------------------------ 156 //------------------------------------------------------------------------------
157 // Browser Messages 157 // Browser Messages
158 // These messages are from the GPU to the browser process. 158 // These messages are from the GPU to the browser process.
159 159
160 // Updates the list of active displays. 160 // Updates the list of active displays.
161 IPC_MESSAGE_CONTROL1(OzoneHostMsg_UpdateNativeDisplays, 161 IPC_MESSAGE_CONTROL1(OzoneHostMsg_UpdateNativeDisplays,
162 std::vector<ui::DisplaySnapshot_Params>) 162 std::vector<ui::DisplaySnapshot_Params>)
163 163
164 IPC_MESSAGE_CONTROL2(OzoneHostMsg_DisplayConfigured, 164 IPC_MESSAGE_CONTROL2(OzoneHostMsg_DisplayConfigured,
165 int64_t /* display_id */, 165 int64_t /* display_id */,
166 bool /* status */) 166 bool /* status */)
167 167
168 // Response for OzoneGpuMsg_GetHDCPState. 168 // Response for OzoneGpuMsg_GetHDCPState.
169 IPC_MESSAGE_CONTROL3(OzoneHostMsg_HDCPStateReceived, 169 IPC_MESSAGE_CONTROL3(OzoneHostMsg_HDCPStateReceived,
170 int64_t /* display_id */, 170 int64_t /* display_id */,
171 bool /* success */, 171 bool /* success */,
172 ui::HDCPState /* state */) 172 display::HDCPState /* state */)
173 173
174 // Response for OzoneGpuMsg_SetHDCPState. 174 // Response for OzoneGpuMsg_SetHDCPState.
175 IPC_MESSAGE_CONTROL2(OzoneHostMsg_HDCPStateUpdated, 175 IPC_MESSAGE_CONTROL2(OzoneHostMsg_HDCPStateUpdated,
176 int64_t /* display_id */, 176 int64_t /* display_id */,
177 bool /* success */) 177 bool /* success */)
178 178
179 // Response to OzoneGpuMsg_TakeDisplayControl. 179 // Response to OzoneGpuMsg_TakeDisplayControl.
180 IPC_MESSAGE_CONTROL1(OzoneHostMsg_DisplayControlTaken, bool /* success */) 180 IPC_MESSAGE_CONTROL1(OzoneHostMsg_DisplayControlTaken, bool /* success */)
181 181
182 // Response to OzoneGpuMsg_RelinquishDisplayControl. 182 // Response to OzoneGpuMsg_RelinquishDisplayControl.
183 IPC_MESSAGE_CONTROL1(OzoneHostMsg_DisplayControlRelinquished, 183 IPC_MESSAGE_CONTROL1(OzoneHostMsg_DisplayControlRelinquished,
184 bool /* success */) 184 bool /* success */)
185 185
186 // Response to OzoneGpuMsg_CheckOverlayCapabilities. Returns list of supported 186 // Response to OzoneGpuMsg_CheckOverlayCapabilities. Returns list of supported
187 // params. 187 // params.
188 IPC_MESSAGE_CONTROL2(OzoneHostMsg_OverlayCapabilitiesReceived, 188 IPC_MESSAGE_CONTROL2(OzoneHostMsg_OverlayCapabilitiesReceived,
189 gfx::AcceleratedWidget /* widget */, 189 gfx::AcceleratedWidget /* widget */,
190 std::vector<ui::OverlayCheck_Params> /* overlays */) 190 std::vector<ui::OverlayCheck_Params> /* overlays */)
OLDNEW
« no previous file with comments | « ui/ozone/common/gpu/ozone_gpu_message_params.h ('k') | ui/ozone/demo/ozone_demo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698