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

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

Issue 1426993003: Ozone: Dont hardcode format to YUV when using Overlay Composition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cosmetic fixes 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 14 matching lines...) Expand all
25 25
26 #define IPC_MESSAGE_START OzoneGpuMsgStart 26 #define IPC_MESSAGE_START OzoneGpuMsgStart
27 27
28 IPC_ENUM_TRAITS_MAX_VALUE(ui::DisplayConnectionType, 28 IPC_ENUM_TRAITS_MAX_VALUE(ui::DisplayConnectionType,
29 ui::DISPLAY_CONNECTION_TYPE_LAST) 29 ui::DISPLAY_CONNECTION_TYPE_LAST)
30 30
31 IPC_ENUM_TRAITS_MAX_VALUE(ui::HDCPState, ui::HDCP_STATE_LAST) 31 IPC_ENUM_TRAITS_MAX_VALUE(ui::HDCPState, ui::HDCP_STATE_LAST)
32 32
33 IPC_ENUM_TRAITS_MAX_VALUE(gfx::OverlayTransform, gfx::OVERLAY_TRANSFORM_LAST) 33 IPC_ENUM_TRAITS_MAX_VALUE(gfx::OverlayTransform, gfx::OVERLAY_TRANSFORM_LAST)
34 34
35 IPC_ENUM_TRAITS_MAX_VALUE(ui::OverlayCheck_Params::State,
36 ui::OverlayCheck_Params::kOverlay)
37
35 // clang-format off 38 // clang-format off
36 IPC_STRUCT_TRAITS_BEGIN(ui::DisplayMode_Params) 39 IPC_STRUCT_TRAITS_BEGIN(ui::DisplayMode_Params)
37 IPC_STRUCT_TRAITS_MEMBER(size) 40 IPC_STRUCT_TRAITS_MEMBER(size)
38 IPC_STRUCT_TRAITS_MEMBER(is_interlaced) 41 IPC_STRUCT_TRAITS_MEMBER(is_interlaced)
39 IPC_STRUCT_TRAITS_MEMBER(refresh_rate) 42 IPC_STRUCT_TRAITS_MEMBER(refresh_rate)
40 IPC_STRUCT_TRAITS_END() 43 IPC_STRUCT_TRAITS_END()
41 44
42 IPC_STRUCT_TRAITS_BEGIN(ui::DisplaySnapshot_Params) 45 IPC_STRUCT_TRAITS_BEGIN(ui::DisplaySnapshot_Params)
43 IPC_STRUCT_TRAITS_MEMBER(display_id) 46 IPC_STRUCT_TRAITS_MEMBER(display_id)
44 IPC_STRUCT_TRAITS_MEMBER(origin) 47 IPC_STRUCT_TRAITS_MEMBER(origin)
(...skipping 18 matching lines...) Expand all
63 IPC_STRUCT_TRAITS_END() 66 IPC_STRUCT_TRAITS_END()
64 67
65 IPC_STRUCT_TRAITS_BEGIN(ui::OverlayCheck_Params) 68 IPC_STRUCT_TRAITS_BEGIN(ui::OverlayCheck_Params)
66 IPC_STRUCT_TRAITS_MEMBER(buffer_size) 69 IPC_STRUCT_TRAITS_MEMBER(buffer_size)
67 IPC_STRUCT_TRAITS_MEMBER(transform) 70 IPC_STRUCT_TRAITS_MEMBER(transform)
68 IPC_STRUCT_TRAITS_MEMBER(format) 71 IPC_STRUCT_TRAITS_MEMBER(format)
69 IPC_STRUCT_TRAITS_MEMBER(display_rect) 72 IPC_STRUCT_TRAITS_MEMBER(display_rect)
70 IPC_STRUCT_TRAITS_MEMBER(crop_rect) 73 IPC_STRUCT_TRAITS_MEMBER(crop_rect)
71 IPC_STRUCT_TRAITS_MEMBER(plane_z_order) 74 IPC_STRUCT_TRAITS_MEMBER(plane_z_order)
72 IPC_STRUCT_TRAITS_MEMBER(weight) 75 IPC_STRUCT_TRAITS_MEMBER(weight)
73 IPC_STRUCT_TRAITS_MEMBER(plane_ids) 76 IPC_STRUCT_TRAITS_MEMBER(state)
77 IPC_STRUCT_TRAITS_MEMBER(optimal_format)
78 IPC_STRUCT_TRAITS_MEMBER(required_buffer_size)
74 IPC_STRUCT_TRAITS_END() 79 IPC_STRUCT_TRAITS_END()
75 80
76 // clang-format on 81 // clang-format on
77 82
78 //------------------------------------------------------------------------------ 83 //------------------------------------------------------------------------------
79 // GPU Messages 84 // GPU Messages
80 // These are messages from the browser to the GPU process. 85 // These are messages from the browser to the GPU process.
81 86
82 // Update the HW cursor bitmap & move to specified location. 87 // Update the HW cursor bitmap & move to specified location.
83 IPC_MESSAGE_CONTROL4(OzoneGpuMsg_CursorSet, 88 IPC_MESSAGE_CONTROL4(OzoneGpuMsg_CursorSet,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 139
135 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetHDCPState, 140 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetHDCPState,
136 int64_t /* display_id */, 141 int64_t /* display_id */,
137 ui::HDCPState /* state */) 142 ui::HDCPState /* state */)
138 143
139 // Provides the gamma ramp for display adjustment. 144 // Provides the gamma ramp for display adjustment.
140 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetGammaRamp, 145 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetGammaRamp,
141 int64_t, // display ID, 146 int64_t, // display ID,
142 std::vector<ui::GammaRampRGBEntry>) // lut 147 std::vector<ui::GammaRampRGBEntry>) // lut
143 148
144 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_CheckOverlayCapabilities, 149 IPC_MESSAGE_CONTROL3(
145 gfx::AcceleratedWidget /* widget */, 150 OzoneGpuMsg_CheckOverlayCapabilities,
146 std::vector<ui::OverlayCheck_Params> /* overlays */) 151 gfx::AcceleratedWidget /* widget */,
152 std::vector<ui::OverlayCheck_Params> /* current combination */,
153 std::vector<ui::OverlayCheck_Params> /* new combinationon */)
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,
154 std::vector<ui::DisplaySnapshot_Params>) 161 std::vector<ui::DisplaySnapshot_Params>)
155 162
156 IPC_MESSAGE_CONTROL2(OzoneHostMsg_DisplayConfigured, 163 IPC_MESSAGE_CONTROL2(OzoneHostMsg_DisplayConfigured,
(...skipping 16 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