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 "base/tuple.h" | |
11 #include "ipc/ipc_message_macros.h" | 12 #include "ipc/ipc_message_macros.h" |
12 #include "third_party/skia/include/core/SkBitmap.h" | 13 #include "third_party/skia/include/core/SkBitmap.h" |
13 #include "ui/gfx/geometry/point.h" | 14 #include "ui/gfx/geometry/point.h" |
14 #include "ui/gfx/geometry/rect.h" | 15 #include "ui/gfx/geometry/rect.h" |
15 #include "ui/gfx/ipc/gfx_param_traits.h" | 16 #include "ui/gfx/ipc/gfx_param_traits.h" |
16 #include "ui/gfx/native_widget_types.h" | 17 #include "ui/gfx/native_widget_types.h" |
17 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" | 18 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" |
18 #include "ui/ozone/ozone_export.h" | 19 #include "ui/ozone/ozone_export.h" |
19 | 20 |
20 #undef IPC_MESSAGE_EXPORT | 21 #undef IPC_MESSAGE_EXPORT |
21 #define IPC_MESSAGE_EXPORT OZONE_EXPORT | 22 #define IPC_MESSAGE_EXPORT OZONE_EXPORT |
22 | 23 |
23 #define IPC_MESSAGE_START OzoneGpuMsgStart | 24 #define IPC_MESSAGE_START OzoneGpuMsgStart |
24 | 25 |
26 typedef std::vector<Tuple<uint16_t, uint16_t, uint16_t>> GammaRampRGBData; | |
27 | |
25 IPC_ENUM_TRAITS_MAX_VALUE(ui::DisplayConnectionType, | 28 IPC_ENUM_TRAITS_MAX_VALUE(ui::DisplayConnectionType, |
26 ui::DISPLAY_CONNECTION_TYPE_LAST) | 29 ui::DISPLAY_CONNECTION_TYPE_LAST) |
27 | 30 |
28 IPC_STRUCT_TRAITS_BEGIN(ui::DisplayMode_Params) | 31 IPC_STRUCT_TRAITS_BEGIN(ui::DisplayMode_Params) |
29 IPC_STRUCT_TRAITS_MEMBER(size) | 32 IPC_STRUCT_TRAITS_MEMBER(size) |
30 IPC_STRUCT_TRAITS_MEMBER(is_interlaced) | 33 IPC_STRUCT_TRAITS_MEMBER(is_interlaced) |
31 IPC_STRUCT_TRAITS_MEMBER(refresh_rate) | 34 IPC_STRUCT_TRAITS_MEMBER(refresh_rate) |
32 IPC_STRUCT_TRAITS_END() | 35 IPC_STRUCT_TRAITS_END() |
33 | 36 |
34 IPC_STRUCT_TRAITS_BEGIN(ui::DisplaySnapshot_Params) | 37 IPC_STRUCT_TRAITS_BEGIN(ui::DisplaySnapshot_Params) |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
95 | 98 |
96 IPC_MESSAGE_CONTROL1(OzoneGpuMsg_RemoveGraphicsDevice, | 99 IPC_MESSAGE_CONTROL1(OzoneGpuMsg_RemoveGraphicsDevice, |
97 base::FilePath /* device_path */) | 100 base::FilePath /* device_path */) |
98 | 101 |
99 // Take control of the display | 102 // Take control of the display |
100 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_TakeDisplayControl) | 103 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_TakeDisplayControl) |
101 | 104 |
102 // Let other entity control the display | 105 // Let other entity control the display |
103 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_RelinquishDisplayControl) | 106 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_RelinquishDisplayControl) |
104 | 107 |
108 // Provides the gamma ramp for display adjustment. | |
109 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetGammaRamp, | |
110 int64_t, // display ID, | |
dcheng
2015/04/29 21:43:01
Nit: make this comment consistent with the convent
| |
111 GammaRampRGBData /* lut */) | |
112 | |
105 //------------------------------------------------------------------------------ | 113 //------------------------------------------------------------------------------ |
106 // Browser Messages | 114 // Browser Messages |
107 // These messages are from the GPU to the browser process. | 115 // These messages are from the GPU to the browser process. |
108 | 116 |
109 // Updates the list of active displays. | 117 // Updates the list of active displays. |
110 IPC_MESSAGE_CONTROL1(OzoneHostMsg_UpdateNativeDisplays, | 118 IPC_MESSAGE_CONTROL1(OzoneHostMsg_UpdateNativeDisplays, |
111 std::vector<ui::DisplaySnapshot_Params>) | 119 std::vector<ui::DisplaySnapshot_Params>) |
112 | 120 |
113 IPC_MESSAGE_CONTROL2(OzoneHostMsg_DisplayConfigured, | 121 IPC_MESSAGE_CONTROL2(OzoneHostMsg_DisplayConfigured, |
114 int64_t /* display_id */, | 122 int64_t /* display_id */, |
115 bool /* status */) | 123 bool /* status */) |
OLD | NEW |