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

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

Issue 1028563003: Load and apply a vcgt table from an ICC file to the internal display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor fixes 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/gamma_ramp_rgb_entry.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
(...skipping 17 matching lines...) Expand all
40 IPC_STRUCT_TRAITS_MEMBER(has_overscan) 41 IPC_STRUCT_TRAITS_MEMBER(has_overscan)
41 IPC_STRUCT_TRAITS_MEMBER(display_name) 42 IPC_STRUCT_TRAITS_MEMBER(display_name)
42 IPC_STRUCT_TRAITS_MEMBER(modes) 43 IPC_STRUCT_TRAITS_MEMBER(modes)
43 IPC_STRUCT_TRAITS_MEMBER(has_current_mode) 44 IPC_STRUCT_TRAITS_MEMBER(has_current_mode)
44 IPC_STRUCT_TRAITS_MEMBER(current_mode) 45 IPC_STRUCT_TRAITS_MEMBER(current_mode)
45 IPC_STRUCT_TRAITS_MEMBER(has_native_mode) 46 IPC_STRUCT_TRAITS_MEMBER(has_native_mode)
46 IPC_STRUCT_TRAITS_MEMBER(native_mode) 47 IPC_STRUCT_TRAITS_MEMBER(native_mode)
47 IPC_STRUCT_TRAITS_MEMBER(string_representation) 48 IPC_STRUCT_TRAITS_MEMBER(string_representation)
48 IPC_STRUCT_TRAITS_END() 49 IPC_STRUCT_TRAITS_END()
49 50
51 IPC_STRUCT_TRAITS_BEGIN(ui::GammaRampRGBEntry)
52 IPC_STRUCT_TRAITS_MEMBER(r)
dcheng 2015/04/30 20:40:24 Nit: indent. clang-format doesn't handle this corr
53 IPC_STRUCT_TRAITS_MEMBER(g)
54 IPC_STRUCT_TRAITS_MEMBER(b)
55 IPC_STRUCT_TRAITS_END()
56
50 //------------------------------------------------------------------------------ 57 //------------------------------------------------------------------------------
51 // GPU Messages 58 // GPU Messages
52 // These are messages from the browser to the GPU process. 59 // These are messages from the browser to the GPU process.
53 60
54 // Update the HW cursor bitmap & move to specified location. 61 // Update the HW cursor bitmap & move to specified location.
55 IPC_MESSAGE_CONTROL4(OzoneGpuMsg_CursorSet, 62 IPC_MESSAGE_CONTROL4(OzoneGpuMsg_CursorSet,
56 gfx::AcceleratedWidget, 63 gfx::AcceleratedWidget,
57 std::vector<SkBitmap>, 64 std::vector<SkBitmap>,
58 gfx::Point /* location */, 65 gfx::Point /* location */,
59 int /* frame_delay_ms */) 66 int /* frame_delay_ms */)
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 102
96 IPC_MESSAGE_CONTROL1(OzoneGpuMsg_RemoveGraphicsDevice, 103 IPC_MESSAGE_CONTROL1(OzoneGpuMsg_RemoveGraphicsDevice,
97 base::FilePath /* device_path */) 104 base::FilePath /* device_path */)
98 105
99 // Take control of the display 106 // Take control of the display
100 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_TakeDisplayControl) 107 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_TakeDisplayControl)
101 108
102 // Let other entity control the display 109 // Let other entity control the display
103 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_RelinquishDisplayControl) 110 IPC_MESSAGE_CONTROL0(OzoneGpuMsg_RelinquishDisplayControl)
104 111
112 // Provides the gamma ramp for display adjustment.
113 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetGammaRamp,
114 int64_t, // display ID,
115 std::vector<ui::GammaRampRGBEntry>) // lut
116
105 //------------------------------------------------------------------------------ 117 //------------------------------------------------------------------------------
106 // Browser Messages 118 // Browser Messages
107 // These messages are from the GPU to the browser process. 119 // These messages are from the GPU to the browser process.
108 120
109 // Updates the list of active displays. 121 // Updates the list of active displays.
110 IPC_MESSAGE_CONTROL1(OzoneHostMsg_UpdateNativeDisplays, 122 IPC_MESSAGE_CONTROL1(OzoneHostMsg_UpdateNativeDisplays,
111 std::vector<ui::DisplaySnapshot_Params>) 123 std::vector<ui::DisplaySnapshot_Params>)
112 124
113 IPC_MESSAGE_CONTROL2(OzoneHostMsg_DisplayConfigured, 125 IPC_MESSAGE_CONTROL2(OzoneHostMsg_DisplayConfigured,
114 int64_t /* display_id */, 126 int64_t /* display_id */,
115 bool /* status */) 127 bool /* status */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698