OLD | NEW |
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" |
11 #include "ipc/ipc_message_macros.h" | 11 #include "ipc/ipc_message_macros.h" |
12 #include "third_party/skia/include/core/SkBitmap.h" | 12 #include "third_party/skia/include/core/SkBitmap.h" |
13 #include "ui/display/types/display_constants.h" | 13 #include "ui/display/types/display_constants.h" |
14 #include "ui/display/types/gamma_ramp_rgb_entry.h" | 14 #include "ui/display/types/gamma_ramp_rgb_entry.h" |
15 #include "ui/gfx/geometry/point.h" | 15 #include "ui/gfx/geometry/point.h" |
16 #include "ui/gfx/geometry/rect.h" | 16 #include "ui/gfx/geometry/rect.h" |
17 #include "ui/gfx/ipc/gfx_param_traits.h" | 17 #include "ui/gfx/ipc/gfx_param_traits.h" |
| 18 #include "ui/gfx/ipc/gfx_param_traits_macros.h" |
18 #include "ui/gfx/native_widget_types.h" | 19 #include "ui/gfx/native_widget_types.h" |
19 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" | 20 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" |
20 #include "ui/ozone/ozone_export.h" | 21 #include "ui/ozone/ozone_export.h" |
21 | 22 |
22 #undef IPC_MESSAGE_EXPORT | 23 #undef IPC_MESSAGE_EXPORT |
23 #define IPC_MESSAGE_EXPORT OZONE_EXPORT | 24 #define IPC_MESSAGE_EXPORT OZONE_EXPORT |
24 | 25 |
25 #define IPC_MESSAGE_START OzoneGpuMsgStart | 26 #define IPC_MESSAGE_START OzoneGpuMsgStart |
26 | 27 |
27 IPC_ENUM_TRAITS_MAX_VALUE(ui::DisplayConnectionType, | 28 IPC_ENUM_TRAITS_MAX_VALUE(ui::DisplayConnectionType, |
28 ui::DISPLAY_CONNECTION_TYPE_LAST) | 29 ui::DISPLAY_CONNECTION_TYPE_LAST) |
29 | 30 |
30 IPC_ENUM_TRAITS_MAX_VALUE(ui::HDCPState, ui::HDCP_STATE_LAST) | 31 IPC_ENUM_TRAITS_MAX_VALUE(ui::HDCPState, ui::HDCP_STATE_LAST) |
31 | 32 |
32 IPC_ENUM_TRAITS_MAX_VALUE(gfx::OverlayTransform, gfx::OVERLAY_TRANSFORM_LAST) | 33 IPC_ENUM_TRAITS_MAX_VALUE(gfx::OverlayTransform, gfx::OVERLAY_TRANSFORM_LAST) |
33 | 34 |
34 IPC_ENUM_TRAITS_MAX_VALUE(ui::SurfaceFactoryOzone::BufferFormat, | |
35 ui::SurfaceFactoryOzone::BUFFER_FORMAT_LAST) | |
36 | |
37 // clang-format off | 35 // clang-format off |
38 IPC_STRUCT_TRAITS_BEGIN(ui::DisplayMode_Params) | 36 IPC_STRUCT_TRAITS_BEGIN(ui::DisplayMode_Params) |
39 IPC_STRUCT_TRAITS_MEMBER(size) | 37 IPC_STRUCT_TRAITS_MEMBER(size) |
40 IPC_STRUCT_TRAITS_MEMBER(is_interlaced) | 38 IPC_STRUCT_TRAITS_MEMBER(is_interlaced) |
41 IPC_STRUCT_TRAITS_MEMBER(refresh_rate) | 39 IPC_STRUCT_TRAITS_MEMBER(refresh_rate) |
42 IPC_STRUCT_TRAITS_END() | 40 IPC_STRUCT_TRAITS_END() |
43 | 41 |
44 IPC_STRUCT_TRAITS_BEGIN(ui::DisplaySnapshot_Params) | 42 IPC_STRUCT_TRAITS_BEGIN(ui::DisplaySnapshot_Params) |
45 IPC_STRUCT_TRAITS_MEMBER(display_id) | 43 IPC_STRUCT_TRAITS_MEMBER(display_id) |
46 IPC_STRUCT_TRAITS_MEMBER(origin) | 44 IPC_STRUCT_TRAITS_MEMBER(origin) |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 IPC_MESSAGE_CONTROL1(OzoneHostMsg_DisplayControlTaken, bool /* success */) | 169 IPC_MESSAGE_CONTROL1(OzoneHostMsg_DisplayControlTaken, bool /* success */) |
172 | 170 |
173 // Response to OzoneGpuMsg_RelinquishDisplayControl. | 171 // Response to OzoneGpuMsg_RelinquishDisplayControl. |
174 IPC_MESSAGE_CONTROL1(OzoneHostMsg_DisplayControlRelinquished, | 172 IPC_MESSAGE_CONTROL1(OzoneHostMsg_DisplayControlRelinquished, |
175 bool /* success */) | 173 bool /* success */) |
176 | 174 |
177 // Response for OzoneGpuMsg_CheckOverlayCapabilities | 175 // Response for OzoneGpuMsg_CheckOverlayCapabilities |
178 IPC_MESSAGE_CONTROL2(OzoneHostMsg_OverlayCapabilitiesReceived, | 176 IPC_MESSAGE_CONTROL2(OzoneHostMsg_OverlayCapabilitiesReceived, |
179 gfx::AcceleratedWidget /* widget */, | 177 gfx::AcceleratedWidget /* widget */, |
180 bool /* result */) | 178 bool /* result */) |
OLD | NEW |