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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 29 matching lines...) Expand all Loading... |
40 IPC_STRUCT_TRAITS_MEMBER(refresh_rate) | 40 IPC_STRUCT_TRAITS_MEMBER(refresh_rate) |
41 IPC_STRUCT_TRAITS_END() | 41 IPC_STRUCT_TRAITS_END() |
42 | 42 |
43 IPC_STRUCT_TRAITS_BEGIN(ui::DisplaySnapshot_Params) | 43 IPC_STRUCT_TRAITS_BEGIN(ui::DisplaySnapshot_Params) |
44 IPC_STRUCT_TRAITS_MEMBER(display_id) | 44 IPC_STRUCT_TRAITS_MEMBER(display_id) |
45 IPC_STRUCT_TRAITS_MEMBER(origin) | 45 IPC_STRUCT_TRAITS_MEMBER(origin) |
46 IPC_STRUCT_TRAITS_MEMBER(physical_size) | 46 IPC_STRUCT_TRAITS_MEMBER(physical_size) |
47 IPC_STRUCT_TRAITS_MEMBER(type) | 47 IPC_STRUCT_TRAITS_MEMBER(type) |
48 IPC_STRUCT_TRAITS_MEMBER(is_aspect_preserving_scaling) | 48 IPC_STRUCT_TRAITS_MEMBER(is_aspect_preserving_scaling) |
49 IPC_STRUCT_TRAITS_MEMBER(has_overscan) | 49 IPC_STRUCT_TRAITS_MEMBER(has_overscan) |
| 50 IPC_STRUCT_TRAITS_MEMBER(has_color_correction_matrix) |
50 IPC_STRUCT_TRAITS_MEMBER(display_name) | 51 IPC_STRUCT_TRAITS_MEMBER(display_name) |
51 IPC_STRUCT_TRAITS_MEMBER(sys_path) | 52 IPC_STRUCT_TRAITS_MEMBER(sys_path) |
52 IPC_STRUCT_TRAITS_MEMBER(modes) | 53 IPC_STRUCT_TRAITS_MEMBER(modes) |
53 IPC_STRUCT_TRAITS_MEMBER(edid) | 54 IPC_STRUCT_TRAITS_MEMBER(edid) |
54 IPC_STRUCT_TRAITS_MEMBER(has_current_mode) | 55 IPC_STRUCT_TRAITS_MEMBER(has_current_mode) |
55 IPC_STRUCT_TRAITS_MEMBER(current_mode) | 56 IPC_STRUCT_TRAITS_MEMBER(current_mode) |
56 IPC_STRUCT_TRAITS_MEMBER(has_native_mode) | 57 IPC_STRUCT_TRAITS_MEMBER(has_native_mode) |
57 IPC_STRUCT_TRAITS_MEMBER(native_mode) | 58 IPC_STRUCT_TRAITS_MEMBER(native_mode) |
58 IPC_STRUCT_TRAITS_MEMBER(product_id) | 59 IPC_STRUCT_TRAITS_MEMBER(product_id) |
59 IPC_STRUCT_TRAITS_MEMBER(string_representation) | 60 IPC_STRUCT_TRAITS_MEMBER(string_representation) |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 | 134 |
134 // Let other entity control the display | 135 // Let other entity control the display |
135 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_RelinquishDisplayControl) | 136 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_RelinquishDisplayControl) |
136 | 137 |
137 IPC_MESSAGE_CONTROL1(OzoneGpuMsg_GetHDCPState, int64_t /* display_id */) | 138 IPC_MESSAGE_CONTROL1(OzoneGpuMsg_GetHDCPState, int64_t /* display_id */) |
138 | 139 |
139 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetHDCPState, | 140 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetHDCPState, |
140 int64_t /* display_id */, | 141 int64_t /* display_id */, |
141 ui::HDCPState /* state */) | 142 ui::HDCPState /* state */) |
142 | 143 |
143 // Provides the gamma ramp for display adjustment. | 144 IPC_MESSAGE_CONTROL4(OzoneGpuMsg_SetColorCorrection, |
144 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetGammaRamp, | |
145 int64_t, // display ID, | 145 int64_t, // display ID, |
146 std::vector<ui::GammaRampRGBEntry>) // lut | 146 std::vector<ui::GammaRampRGBEntry>, // degamma lut |
| 147 std::vector<ui::GammaRampRGBEntry>, // gamma lut |
| 148 std::vector<float>) // transform matrix |
147 | 149 |
148 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_CheckOverlayCapabilities, | 150 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_CheckOverlayCapabilities, |
149 gfx::AcceleratedWidget /* widget */, | 151 gfx::AcceleratedWidget /* widget */, |
150 std::vector<ui::OverlayCheck_Params> /* overlays */) | 152 std::vector<ui::OverlayCheck_Params> /* overlays */) |
151 | 153 |
152 //------------------------------------------------------------------------------ | 154 //------------------------------------------------------------------------------ |
153 // Browser Messages | 155 // Browser Messages |
154 // These messages are from the GPU to the browser process. | 156 // These messages are from the GPU to the browser process. |
155 | 157 |
156 // Updates the list of active displays. | 158 // Updates the list of active displays. |
(...skipping 20 matching lines...) Expand all Loading... |
177 | 179 |
178 // Response to OzoneGpuMsg_RelinquishDisplayControl. | 180 // Response to OzoneGpuMsg_RelinquishDisplayControl. |
179 IPC_MESSAGE_CONTROL1(OzoneHostMsg_DisplayControlRelinquished, | 181 IPC_MESSAGE_CONTROL1(OzoneHostMsg_DisplayControlRelinquished, |
180 bool /* success */) | 182 bool /* success */) |
181 | 183 |
182 // Response to OzoneGpuMsg_CheckOverlayCapabilities. Returns list of supported | 184 // Response to OzoneGpuMsg_CheckOverlayCapabilities. Returns list of supported |
183 // params. | 185 // params. |
184 IPC_MESSAGE_CONTROL2(OzoneHostMsg_OverlayCapabilitiesReceived, | 186 IPC_MESSAGE_CONTROL2(OzoneHostMsg_OverlayCapabilitiesReceived, |
185 gfx::AcceleratedWidget /* widget */, | 187 gfx::AcceleratedWidget /* widget */, |
186 std::vector<ui::OverlayCheck_Params> /* overlays */) | 188 std::vector<ui::OverlayCheck_Params> /* overlays */) |
OLD | NEW |