Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 11 matching lines...) Expand all Loading... | |
| 22 #undef IPC_MESSAGE_EXPORT | 22 #undef IPC_MESSAGE_EXPORT |
| 23 #define IPC_MESSAGE_EXPORT OZONE_EXPORT | 23 #define IPC_MESSAGE_EXPORT OZONE_EXPORT |
| 24 | 24 |
| 25 #define IPC_MESSAGE_START OzoneGpuMsgStart | 25 #define IPC_MESSAGE_START OzoneGpuMsgStart |
| 26 | 26 |
| 27 IPC_ENUM_TRAITS_MAX_VALUE(ui::DisplayConnectionType, | 27 IPC_ENUM_TRAITS_MAX_VALUE(ui::DisplayConnectionType, |
| 28 ui::DISPLAY_CONNECTION_TYPE_LAST) | 28 ui::DISPLAY_CONNECTION_TYPE_LAST) |
| 29 | 29 |
| 30 IPC_ENUM_TRAITS_MAX_VALUE(ui::HDCPState, ui::HDCP_STATE_LAST) | 30 IPC_ENUM_TRAITS_MAX_VALUE(ui::HDCPState, ui::HDCP_STATE_LAST) |
| 31 | 31 |
| 32 IPC_ENUM_TRAITS_MAX_VALUE(gfx::OverlayTransform, gfx::OVERLAY_TRANSFORM_LAST) | |
| 33 | |
| 34 IPC_ENUM_TRAITS_MAX_VALUE(ui::SurfaceFactoryOzone::BufferFormat, | |
| 35 ui::SurfaceFactoryOzone::BUFFER_FORMAT_LAST) | |
| 36 | |
| 32 // clang-format off | 37 // clang-format off |
| 33 | |
| 34 IPC_STRUCT_TRAITS_BEGIN(ui::DisplayMode_Params) | 38 IPC_STRUCT_TRAITS_BEGIN(ui::DisplayMode_Params) |
| 35 IPC_STRUCT_TRAITS_MEMBER(size) | 39 IPC_STRUCT_TRAITS_MEMBER(size) |
| 36 IPC_STRUCT_TRAITS_MEMBER(is_interlaced) | 40 IPC_STRUCT_TRAITS_MEMBER(is_interlaced) |
| 37 IPC_STRUCT_TRAITS_MEMBER(refresh_rate) | 41 IPC_STRUCT_TRAITS_MEMBER(refresh_rate) |
| 38 IPC_STRUCT_TRAITS_END() | 42 IPC_STRUCT_TRAITS_END() |
| 39 | 43 |
| 40 IPC_STRUCT_TRAITS_BEGIN(ui::DisplaySnapshot_Params) | 44 IPC_STRUCT_TRAITS_BEGIN(ui::DisplaySnapshot_Params) |
| 41 IPC_STRUCT_TRAITS_MEMBER(display_id) | 45 IPC_STRUCT_TRAITS_MEMBER(display_id) |
| 42 IPC_STRUCT_TRAITS_MEMBER(origin) | 46 IPC_STRUCT_TRAITS_MEMBER(origin) |
| 43 IPC_STRUCT_TRAITS_MEMBER(physical_size) | 47 IPC_STRUCT_TRAITS_MEMBER(physical_size) |
| 44 IPC_STRUCT_TRAITS_MEMBER(type) | 48 IPC_STRUCT_TRAITS_MEMBER(type) |
| 45 IPC_STRUCT_TRAITS_MEMBER(is_aspect_preserving_scaling) | 49 IPC_STRUCT_TRAITS_MEMBER(is_aspect_preserving_scaling) |
| 46 IPC_STRUCT_TRAITS_MEMBER(has_overscan) | 50 IPC_STRUCT_TRAITS_MEMBER(has_overscan) |
| 47 IPC_STRUCT_TRAITS_MEMBER(display_name) | 51 IPC_STRUCT_TRAITS_MEMBER(display_name) |
| 48 IPC_STRUCT_TRAITS_MEMBER(modes) | 52 IPC_STRUCT_TRAITS_MEMBER(modes) |
| 49 IPC_STRUCT_TRAITS_MEMBER(has_current_mode) | 53 IPC_STRUCT_TRAITS_MEMBER(has_current_mode) |
| 50 IPC_STRUCT_TRAITS_MEMBER(current_mode) | 54 IPC_STRUCT_TRAITS_MEMBER(current_mode) |
| 51 IPC_STRUCT_TRAITS_MEMBER(has_native_mode) | 55 IPC_STRUCT_TRAITS_MEMBER(has_native_mode) |
| 52 IPC_STRUCT_TRAITS_MEMBER(native_mode) | 56 IPC_STRUCT_TRAITS_MEMBER(native_mode) |
| 53 IPC_STRUCT_TRAITS_MEMBER(product_id) | 57 IPC_STRUCT_TRAITS_MEMBER(product_id) |
| 54 IPC_STRUCT_TRAITS_MEMBER(string_representation) | 58 IPC_STRUCT_TRAITS_MEMBER(string_representation) |
| 55 IPC_STRUCT_TRAITS_END() | 59 IPC_STRUCT_TRAITS_END() |
| 56 | 60 |
| 57 IPC_STRUCT_TRAITS_BEGIN(ui::GammaRampRGBEntry) | 61 IPC_STRUCT_TRAITS_BEGIN(ui::GammaRampRGBEntry) |
| 58 IPC_STRUCT_TRAITS_MEMBER(r) | 62 IPC_STRUCT_TRAITS_MEMBER(r) |
| 59 IPC_STRUCT_TRAITS_MEMBER(g) | 63 IPC_STRUCT_TRAITS_MEMBER(g) |
| 60 IPC_STRUCT_TRAITS_MEMBER(b) | 64 IPC_STRUCT_TRAITS_MEMBER(b) |
| 61 IPC_STRUCT_TRAITS_END() | 65 IPC_STRUCT_TRAITS_END() |
| 62 | 66 |
| 67 IPC_STRUCT_TRAITS_BEGIN(ui::OverlayCheck_Params) | |
| 68 IPC_STRUCT_TRAITS_MEMBER(buffer_size) | |
| 69 IPC_STRUCT_TRAITS_MEMBER(transform) | |
| 70 IPC_STRUCT_TRAITS_MEMBER(format) | |
| 71 IPC_STRUCT_TRAITS_MEMBER(display_rect) | |
| 72 IPC_STRUCT_TRAITS_MEMBER(plane_z_order) | |
| 73 IPC_STRUCT_TRAITS_END() | |
|
spang
2015/06/01 18:54:21
newline
achaulk
2015/06/01 20:43:08
Done.
| |
| 63 // clang-format on | 74 // clang-format on |
| 64 | 75 |
| 65 //------------------------------------------------------------------------------ | 76 //------------------------------------------------------------------------------ |
| 66 // GPU Messages | 77 // GPU Messages |
| 67 // These are messages from the browser to the GPU process. | 78 // These are messages from the browser to the GPU process. |
| 68 | 79 |
| 69 // Update the HW cursor bitmap & move to specified location. | 80 // Update the HW cursor bitmap & move to specified location. |
| 70 IPC_MESSAGE_CONTROL4(OzoneGpuMsg_CursorSet, | 81 IPC_MESSAGE_CONTROL4(OzoneGpuMsg_CursorSet, |
| 71 gfx::AcceleratedWidget, | 82 gfx::AcceleratedWidget, |
| 72 std::vector<SkBitmap>, | 83 std::vector<SkBitmap>, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 121 | 132 |
| 122 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetHDCPState, | 133 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetHDCPState, |
| 123 int64_t /* display_id */, | 134 int64_t /* display_id */, |
| 124 ui::HDCPState /* state */) | 135 ui::HDCPState /* state */) |
| 125 | 136 |
| 126 // Provides the gamma ramp for display adjustment. | 137 // Provides the gamma ramp for display adjustment. |
| 127 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetGammaRamp, | 138 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetGammaRamp, |
| 128 int64_t, // display ID, | 139 int64_t, // display ID, |
| 129 std::vector<ui::GammaRampRGBEntry>) // lut | 140 std::vector<ui::GammaRampRGBEntry>) // lut |
| 130 | 141 |
| 142 IPC_MESSAGE_CONTROL2(OzoneGpuMsg_CheckOverlayCapabilities, | |
| 143 gfx::AcceleratedWidget /* widget */, | |
| 144 std::vector<ui::OverlayCheck_Params> /* overlays */) | |
| 145 | |
| 131 //------------------------------------------------------------------------------ | 146 //------------------------------------------------------------------------------ |
| 132 // Browser Messages | 147 // Browser Messages |
| 133 // These messages are from the GPU to the browser process. | 148 // These messages are from the GPU to the browser process. |
| 134 | 149 |
| 135 // Updates the list of active displays. | 150 // Updates the list of active displays. |
| 136 IPC_MESSAGE_CONTROL1(OzoneHostMsg_UpdateNativeDisplays, | 151 IPC_MESSAGE_CONTROL1(OzoneHostMsg_UpdateNativeDisplays, |
| 137 std::vector<ui::DisplaySnapshot_Params>) | 152 std::vector<ui::DisplaySnapshot_Params>) |
| 138 | 153 |
| 139 IPC_MESSAGE_CONTROL2(OzoneHostMsg_DisplayConfigured, | 154 IPC_MESSAGE_CONTROL2(OzoneHostMsg_DisplayConfigured, |
| 140 int64_t /* display_id */, | 155 int64_t /* display_id */, |
| 141 bool /* status */) | 156 bool /* status */) |
| 142 | 157 |
| 143 // Response for OzoneGpuMsg_GetHDCPState. | 158 // Response for OzoneGpuMsg_GetHDCPState. |
| 144 IPC_MESSAGE_CONTROL3(OzoneHostMsg_HDCPStateReceived, | 159 IPC_MESSAGE_CONTROL3(OzoneHostMsg_HDCPStateReceived, |
| 145 int64_t /* display_id */, | 160 int64_t /* display_id */, |
| 146 bool /* success */, | 161 bool /* success */, |
| 147 ui::HDCPState /* state */) | 162 ui::HDCPState /* state */) |
| 148 | 163 |
| 149 // Response for OzoneGpuMsg_SetHDCPState. | 164 // Response for OzoneGpuMsg_SetHDCPState. |
| 150 IPC_MESSAGE_CONTROL2(OzoneHostMsg_HDCPStateUpdated, | 165 IPC_MESSAGE_CONTROL2(OzoneHostMsg_HDCPStateUpdated, |
| 151 int64_t /* display_id */, | 166 int64_t /* display_id */, |
| 152 bool /* success */) | 167 bool /* success */) |
| 168 | |
| 169 // Response for OzoneGpuMsg_CheckOverlayCapabilities | |
| 170 IPC_MESSAGE_CONTROL2(OzoneHostMsg_OverlayCapabilitiesReceived, | |
| 171 gfx::AcceleratedWidget /* widget */, | |
| 172 bool /* result */) | |
| OLD | NEW |