Chromium Code Reviews| Index: ui/ozone/common/gpu/ozone_gpu_messages.h |
| diff --git a/ui/ozone/common/gpu/ozone_gpu_messages.h b/ui/ozone/common/gpu/ozone_gpu_messages.h |
| index 14d2a10761e11063e18921471765292c37023570..2c8e2a143833f28b74cbb0297062fe123d2a4ac8 100644 |
| --- a/ui/ozone/common/gpu/ozone_gpu_messages.h |
| +++ b/ui/ozone/common/gpu/ozone_gpu_messages.h |
| @@ -10,6 +10,7 @@ |
| #include "base/file_descriptor_posix.h" |
| #include "ipc/ipc_message_macros.h" |
| #include "third_party/skia/include/core/SkBitmap.h" |
| +#include "ui/display/types/gamma_ramp_rgb_entry.h" |
| #include "ui/gfx/geometry/point.h" |
| #include "ui/gfx/geometry/rect.h" |
| #include "ui/gfx/ipc/gfx_param_traits.h" |
| @@ -47,6 +48,12 @@ IPC_STRUCT_TRAITS_BEGIN(ui::DisplaySnapshot_Params) |
| IPC_STRUCT_TRAITS_MEMBER(string_representation) |
| IPC_STRUCT_TRAITS_END() |
| +IPC_STRUCT_TRAITS_BEGIN(ui::GammaRampRGBEntry) |
| +IPC_STRUCT_TRAITS_MEMBER(r) |
|
dcheng
2015/04/30 20:40:24
Nit: indent. clang-format doesn't handle this corr
|
| +IPC_STRUCT_TRAITS_MEMBER(g) |
| +IPC_STRUCT_TRAITS_MEMBER(b) |
| +IPC_STRUCT_TRAITS_END() |
| + |
| //------------------------------------------------------------------------------ |
| // GPU Messages |
| // These are messages from the browser to the GPU process. |
| @@ -102,6 +109,11 @@ IPC_MESSAGE_CONTROL0(OzoneGpuMsg_TakeDisplayControl) |
| // Let other entity control the display |
| IPC_MESSAGE_CONTROL0(OzoneGpuMsg_RelinquishDisplayControl) |
| +// Provides the gamma ramp for display adjustment. |
| +IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetGammaRamp, |
| + int64_t, // display ID, |
| + std::vector<ui::GammaRampRGBEntry>) // lut |
| + |
| //------------------------------------------------------------------------------ |
| // Browser Messages |
| // These messages are from the GPU to the browser process. |