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

Unified Diff: ui/ozone/common/gpu/ozone_gpu_messages.h

Issue 1157793004: ozone: Add overlay candidate implementation that queries support via IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
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 */)

Powered by Google App Engine
This is Rietveld 408576698