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

Unified Diff: ui/ozone/platform/drm/gpu/overlay_plane.cc

Issue 1426993003: Ozone: Dont hardcode format to YUV when using Overlay Composition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review fixes Created 4 years, 11 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
« no previous file with comments | « ui/ozone/platform/drm/gpu/overlay_plane.h ('k') | ui/ozone/platform/drm/gpu/screen_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/overlay_plane.cc
diff --git a/ui/ozone/platform/drm/gpu/overlay_plane.cc b/ui/ozone/platform/drm/gpu/overlay_plane.cc
index 6f5917f2420e79fe11ea0a4b3ad559b904ef5e2c..c883eb00aa333468342c728fa6c164d40f0933e0 100644
--- a/ui/ozone/platform/drm/gpu/overlay_plane.cc
+++ b/ui/ozone/platform/drm/gpu/overlay_plane.cc
@@ -30,6 +30,19 @@ OverlayPlane::OverlayPlane(const scoped_refptr<ScanoutBuffer>& buffer,
OverlayPlane::~OverlayPlane() {
}
+OverlayPlane::OverlayPlane(const scoped_refptr<ScanoutBuffer>& buffer,
+ int z_order,
+ gfx::OverlayTransform plane_transform,
+ const gfx::Rect& display_bounds,
+ const gfx::RectF& crop_rect,
+ const ProcessBufferCallback& processing_callback)
+ : buffer(buffer),
+ z_order(z_order),
+ plane_transform(plane_transform),
+ display_bounds(display_bounds),
+ crop_rect(crop_rect),
+ processing_callback(processing_callback) {}
+
bool OverlayPlane::operator<(const OverlayPlane& plane) const {
return std::tie(z_order, display_bounds, crop_rect, plane_transform) <
std::tie(plane.z_order, plane.display_bounds, plane.crop_rect,
« no previous file with comments | « ui/ozone/platform/drm/gpu/overlay_plane.h ('k') | ui/ozone/platform/drm/gpu/screen_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698