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

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

Issue 1119113004: Reland "Load and apply a vcgt table from an ICC file to the internal display" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@vcgt-rebase
Patch Set: Add third_party/qcms to ash BUILD.gn Created 5 years, 7 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
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"
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/gfx/geometry/point.h" 15 #include "ui/gfx/geometry/point.h"
15 #include "ui/gfx/geometry/rect.h" 16 #include "ui/gfx/geometry/rect.h"
16 #include "ui/gfx/ipc/gfx_param_traits.h" 17 #include "ui/gfx/ipc/gfx_param_traits.h"
17 #include "ui/gfx/native_widget_types.h" 18 #include "ui/gfx/native_widget_types.h"
18 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" 19 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h"
19 #include "ui/ozone/ozone_export.h" 20 #include "ui/ozone/ozone_export.h"
20 21
21 #undef IPC_MESSAGE_EXPORT 22 #undef IPC_MESSAGE_EXPORT
22 #define IPC_MESSAGE_EXPORT OZONE_EXPORT 23 #define IPC_MESSAGE_EXPORT OZONE_EXPORT
23 24
(...skipping 19 matching lines...) Expand all
43 IPC_STRUCT_TRAITS_MEMBER(has_overscan) 44 IPC_STRUCT_TRAITS_MEMBER(has_overscan)
44 IPC_STRUCT_TRAITS_MEMBER(display_name) 45 IPC_STRUCT_TRAITS_MEMBER(display_name)
45 IPC_STRUCT_TRAITS_MEMBER(modes) 46 IPC_STRUCT_TRAITS_MEMBER(modes)
46 IPC_STRUCT_TRAITS_MEMBER(has_current_mode) 47 IPC_STRUCT_TRAITS_MEMBER(has_current_mode)
47 IPC_STRUCT_TRAITS_MEMBER(current_mode) 48 IPC_STRUCT_TRAITS_MEMBER(current_mode)
48 IPC_STRUCT_TRAITS_MEMBER(has_native_mode) 49 IPC_STRUCT_TRAITS_MEMBER(has_native_mode)
49 IPC_STRUCT_TRAITS_MEMBER(native_mode) 50 IPC_STRUCT_TRAITS_MEMBER(native_mode)
50 IPC_STRUCT_TRAITS_MEMBER(string_representation) 51 IPC_STRUCT_TRAITS_MEMBER(string_representation)
51 IPC_STRUCT_TRAITS_END() 52 IPC_STRUCT_TRAITS_END()
52 53
54 IPC_STRUCT_TRAITS_BEGIN(ui::GammaRampRGBEntry)
55 IPC_STRUCT_TRAITS_MEMBER(r)
56 IPC_STRUCT_TRAITS_MEMBER(g)
57 IPC_STRUCT_TRAITS_MEMBER(b)
58 IPC_STRUCT_TRAITS_END()
59
53 //------------------------------------------------------------------------------ 60 //------------------------------------------------------------------------------
54 // GPU Messages 61 // GPU Messages
55 // These are messages from the browser to the GPU process. 62 // These are messages from the browser to the GPU process.
56 63
57 // Update the HW cursor bitmap & move to specified location. 64 // Update the HW cursor bitmap & move to specified location.
58 IPC_MESSAGE_CONTROL4(OzoneGpuMsg_CursorSet, 65 IPC_MESSAGE_CONTROL4(OzoneGpuMsg_CursorSet,
59 gfx::AcceleratedWidget, 66 gfx::AcceleratedWidget,
60 std::vector<SkBitmap>, 67 std::vector<SkBitmap>,
61 gfx::Point /* location */, 68 gfx::Point /* location */,
62 int /* frame_delay_ms */) 69 int /* frame_delay_ms */)
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 111
105 // Let other entity control the display 112 // Let other entity control the display
106 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_RelinquishDisplayControl) 113 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_RelinquishDisplayControl)
107 114
108 IPC_MESSAGE_CONTROL1(OzoneGpuMsg_GetHDCPState, int64_t /* display_id */) 115 IPC_MESSAGE_CONTROL1(OzoneGpuMsg_GetHDCPState, int64_t /* display_id */)
109 116
110 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetHDCPState, 117 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetHDCPState,
111 int64_t /* display_id */, 118 int64_t /* display_id */,
112 ui::HDCPState /* state */) 119 ui::HDCPState /* state */)
113 120
121 // Provides the gamma ramp for display adjustment.
122 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetGammaRamp,
123 int64_t, // display ID,
124 std::vector<ui::GammaRampRGBEntry>) // lut
125
114 //------------------------------------------------------------------------------ 126 //------------------------------------------------------------------------------
115 // Browser Messages 127 // Browser Messages
116 // These messages are from the GPU to the browser process. 128 // These messages are from the GPU to the browser process.
117 129
118 // Updates the list of active displays. 130 // Updates the list of active displays.
119 IPC_MESSAGE_CONTROL1(OzoneHostMsg_UpdateNativeDisplays, 131 IPC_MESSAGE_CONTROL1(OzoneHostMsg_UpdateNativeDisplays,
120 std::vector<ui::DisplaySnapshot_Params>) 132 std::vector<ui::DisplaySnapshot_Params>)
121 133
122 IPC_MESSAGE_CONTROL2(OzoneHostMsg_DisplayConfigured, 134 IPC_MESSAGE_CONTROL2(OzoneHostMsg_DisplayConfigured,
123 int64_t /* display_id */, 135 int64_t /* display_id */,
124 bool /* status */) 136 bool /* status */)
125 137
126 // Response for OzoneGpuMsg_GetHDCPState. 138 // Response for OzoneGpuMsg_GetHDCPState.
127 IPC_MESSAGE_CONTROL3(OzoneHostMsg_HDCPStateReceived, 139 IPC_MESSAGE_CONTROL3(OzoneHostMsg_HDCPStateReceived,
128 int64_t /* display_id */, 140 int64_t /* display_id */,
129 bool /* success */, 141 bool /* success */,
130 ui::HDCPState /* state */) 142 ui::HDCPState /* state */)
131 143
132 // Response for OzoneGpuMsg_SetHDCPState. 144 // Response for OzoneGpuMsg_SetHDCPState.
133 IPC_MESSAGE_CONTROL2(OzoneHostMsg_HDCPStateUpdated, 145 IPC_MESSAGE_CONTROL2(OzoneHostMsg_HDCPStateUpdated,
134 int64_t /* display_id */, 146 int64_t /* display_id */,
135 bool /* success */) 147 bool /* success */)
OLDNEW
« no previous file with comments | « ui/display/types/native_display_delegate.h ('k') | ui/ozone/common/native_display_delegate_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698