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 e83169b2a559a4376246bfcc9157f54cc4f745e5..441279ef60c02231f649b0c7117d8e1328337566 100644 |
--- a/ui/ozone/common/gpu/ozone_gpu_messages.h |
+++ b/ui/ozone/common/gpu/ozone_gpu_messages.h |
@@ -29,8 +29,12 @@ IPC_ENUM_TRAITS_MAX_VALUE(ui::DisplayConnectionType, |
IPC_ENUM_TRAITS_MAX_VALUE(ui::HDCPState, ui::HDCP_STATE_LAST) |
-// clang-format off |
+IPC_ENUM_TRAITS_MAX_VALUE(gfx::OverlayTransform, gfx::OVERLAY_TRANSFORM_LAST) |
+ |
+IPC_ENUM_TRAITS_MAX_VALUE(ui::SurfaceFactoryOzone::BufferFormat, |
+ ui::SurfaceFactoryOzone::BUFFER_FORMAT_LAST) |
+// clang-format off |
IPC_STRUCT_TRAITS_BEGIN(ui::DisplayMode_Params) |
IPC_STRUCT_TRAITS_MEMBER(size) |
IPC_STRUCT_TRAITS_MEMBER(is_interlaced) |
@@ -60,6 +64,13 @@ IPC_STRUCT_TRAITS_BEGIN(ui::GammaRampRGBEntry) |
IPC_STRUCT_TRAITS_MEMBER(b) |
IPC_STRUCT_TRAITS_END() |
+IPC_STRUCT_TRAITS_BEGIN(ui::OverlayCheck_Params) |
+ IPC_STRUCT_TRAITS_MEMBER(buffer_size) |
+ IPC_STRUCT_TRAITS_MEMBER(transform) |
+ IPC_STRUCT_TRAITS_MEMBER(format) |
+ IPC_STRUCT_TRAITS_MEMBER(display_rect) |
+ IPC_STRUCT_TRAITS_MEMBER(plane_z_order) |
+IPC_STRUCT_TRAITS_END() |
// clang-format on |
//------------------------------------------------------------------------------ |
@@ -128,6 +139,11 @@ IPC_MESSAGE_CONTROL2(OzoneGpuMsg_SetGammaRamp, |
int64_t, // display ID, |
std::vector<ui::GammaRampRGBEntry>) // lut |
+IPC_MESSAGE_CONTROL3(OzoneGpuMsg_CheckOverlayCapabilities, |
+ gfx::AcceleratedWidget /* widget */, |
+ uint32_t /* request_id */, |
+ std::vector<ui::OverlayCheck_Params> /* overlays */) |
+ |
//------------------------------------------------------------------------------ |
// Browser Messages |
// These messages are from the GPU to the browser process. |
@@ -150,3 +166,9 @@ IPC_MESSAGE_CONTROL3(OzoneHostMsg_HDCPStateReceived, |
IPC_MESSAGE_CONTROL2(OzoneHostMsg_HDCPStateUpdated, |
int64_t /* display_id */, |
bool /* success */) |
+ |
+// Response for OzoneGpuMsg_CheckOverlayCapabilities |
+IPC_MESSAGE_CONTROL3(OzoneHostMsg_OverlayCapabilitiesReceived, |
+ gfx::AcceleratedWidget /* widget */, |
+ uint32_t /* request_id */, |
+ bool /* result */) |