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

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

Issue 1182063002: Add support for more advanced color correction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@qcms-fixed-point-gamma
Patch Set: Refactor for glevin@ and load VCGT always Created 5 years, 1 month 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
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 28 matching lines...) Expand all
39 IPC_STRUCT_TRAITS_MEMBER(refresh_rate) 39 IPC_STRUCT_TRAITS_MEMBER(refresh_rate)
40 IPC_STRUCT_TRAITS_END() 40 IPC_STRUCT_TRAITS_END()
41 41
42 IPC_STRUCT_TRAITS_BEGIN(ui::DisplaySnapshot_Params) 42 IPC_STRUCT_TRAITS_BEGIN(ui::DisplaySnapshot_Params)
43 IPC_STRUCT_TRAITS_MEMBER(display_id) 43 IPC_STRUCT_TRAITS_MEMBER(display_id)
44 IPC_STRUCT_TRAITS_MEMBER(origin) 44 IPC_STRUCT_TRAITS_MEMBER(origin)
45 IPC_STRUCT_TRAITS_MEMBER(physical_size) 45 IPC_STRUCT_TRAITS_MEMBER(physical_size)
46 IPC_STRUCT_TRAITS_MEMBER(type) 46 IPC_STRUCT_TRAITS_MEMBER(type)
47 IPC_STRUCT_TRAITS_MEMBER(is_aspect_preserving_scaling) 47 IPC_STRUCT_TRAITS_MEMBER(is_aspect_preserving_scaling)
48 IPC_STRUCT_TRAITS_MEMBER(has_overscan) 48 IPC_STRUCT_TRAITS_MEMBER(has_overscan)
49 IPC_STRUCT_TRAITS_MEMBER(has_color_correction_matrix)
49 IPC_STRUCT_TRAITS_MEMBER(display_name) 50 IPC_STRUCT_TRAITS_MEMBER(display_name)
50 IPC_STRUCT_TRAITS_MEMBER(modes) 51 IPC_STRUCT_TRAITS_MEMBER(modes)
51 IPC_STRUCT_TRAITS_MEMBER(has_current_mode) 52 IPC_STRUCT_TRAITS_MEMBER(has_current_mode)
52 IPC_STRUCT_TRAITS_MEMBER(current_mode) 53 IPC_STRUCT_TRAITS_MEMBER(current_mode)
53 IPC_STRUCT_TRAITS_MEMBER(has_native_mode) 54 IPC_STRUCT_TRAITS_MEMBER(has_native_mode)
54 IPC_STRUCT_TRAITS_MEMBER(native_mode) 55 IPC_STRUCT_TRAITS_MEMBER(native_mode)
55 IPC_STRUCT_TRAITS_MEMBER(product_id) 56 IPC_STRUCT_TRAITS_MEMBER(product_id)
56 IPC_STRUCT_TRAITS_MEMBER(string_representation) 57 IPC_STRUCT_TRAITS_MEMBER(string_representation)
57 IPC_STRUCT_TRAITS_END() 58 IPC_STRUCT_TRAITS_END()
58 59
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 135
135 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetHDCPState, 136 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetHDCPState,
136 int64_t /* display_id */, 137 int64_t /* display_id */,
137 ui::HDCPState /* state */) 138 ui::HDCPState /* state */)
138 139
139 // Provides the gamma ramp for display adjustment. 140 // Provides the gamma ramp for display adjustment.
140 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetGammaRamp, 141 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetGammaRamp,
141 int64_t, // display ID, 142 int64_t, // display ID,
142 std::vector<ui::GammaRampRGBEntry>) // lut 143 std::vector<ui::GammaRampRGBEntry>) // lut
143 144
145 IPC_MESSAGE_CONTROL4(OzoneGpuMsg_SetColorCorrection,
146 int64_t, // display ID,
147 std::vector<ui::GammaRampRGBEntry>, // degamma lut
148 std::vector<ui::GammaRampRGBEntry>, // gamma lut
149 std::vector<float>) // transform matrix
150
144 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_CheckOverlayCapabilities, 151 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_CheckOverlayCapabilities,
145 gfx::AcceleratedWidget /* widget */, 152 gfx::AcceleratedWidget /* widget */,
146 std::vector<ui::OverlayCheck_Params> /* overlays */) 153 std::vector<ui::OverlayCheck_Params> /* overlays */)
147 154
148 //------------------------------------------------------------------------------ 155 //------------------------------------------------------------------------------
149 // Browser Messages 156 // Browser Messages
150 // These messages are from the GPU to the browser process. 157 // These messages are from the GPU to the browser process.
151 158
152 // Updates the list of active displays. 159 // Updates the list of active displays.
153 IPC_MESSAGE_CONTROL1(OzoneHostMsg_UpdateNativeDisplays, 160 IPC_MESSAGE_CONTROL1(OzoneHostMsg_UpdateNativeDisplays,
(...skipping 19 matching lines...) Expand all
173 180
174 // Response to OzoneGpuMsg_RelinquishDisplayControl. 181 // Response to OzoneGpuMsg_RelinquishDisplayControl.
175 IPC_MESSAGE_CONTROL1(OzoneHostMsg_DisplayControlRelinquished, 182 IPC_MESSAGE_CONTROL1(OzoneHostMsg_DisplayControlRelinquished,
176 bool /* success */) 183 bool /* success */)
177 184
178 // Response to OzoneGpuMsg_CheckOverlayCapabilities. Returns list of supported 185 // Response to OzoneGpuMsg_CheckOverlayCapabilities. Returns list of supported
179 // params. 186 // params.
180 IPC_MESSAGE_CONTROL2(OzoneHostMsg_OverlayCapabilitiesReceived, 187 IPC_MESSAGE_CONTROL2(OzoneHostMsg_OverlayCapabilitiesReceived,
181 gfx::AcceleratedWidget /* widget */, 188 gfx::AcceleratedWidget /* widget */,
182 std::vector<ui::OverlayCheck_Params> /* overlays */) 189 std::vector<ui::OverlayCheck_Params> /* overlays */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698