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

Unified Diff: ui/ozone/platform/dri/hardware_display_controller.h

Issue 371813004: ozone: gbm: Add overlay support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test build Created 6 years, 5 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/dri/gbm_surface_factory.cc ('k') | ui/ozone/platform/dri/hardware_display_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/hardware_display_controller.h
diff --git a/ui/ozone/platform/dri/hardware_display_controller.h b/ui/ozone/platform/dri/hardware_display_controller.h
index 472dbd6696de6f7c6303a704780e0e6c89c0c3ab..cee71f8b0e389fd9991dd401a2f7ab055d1877b9 100644
--- a/ui/ozone/platform/dri/hardware_display_controller.h
+++ b/ui/ozone/platform/dri/hardware_display_controller.h
@@ -21,8 +21,26 @@ class Point;
namespace ui {
+class NativePixmap;
class ScanoutSurface;
+typedef std::vector<scoped_refptr<NativePixmap> > NativePixmapList;
+
+struct OzoneOverlayPlane {
+ OzoneOverlayPlane(ScanoutSurface* scanout,
+ int z_order,
+ gfx::OverlayTransform plane_transform,
+ const gfx::Rect& display_bounds,
+ const gfx::RectF& crop_rect);
+
+ ScanoutSurface* scanout;
+ int z_order;
+ gfx::OverlayTransform plane_transform;
+ gfx::Rect display_bounds;
+ gfx::RectF crop_rect;
+ int overlay_plane;
+};
+
// The HDCOz will handle modesettings and scannout operations for hardware
// devices.
//
@@ -114,7 +132,8 @@ class HardwareDisplayController
// called again before the page flip occurrs.
//
// Returns true if the page flip was successfully registered, false otherwise.
- bool SchedulePageFlip();
+ bool SchedulePageFlip(const std::vector<OzoneOverlayPlane>& overlays,
+ NativePixmapList* references);
// TODO(dnicoara) This should be on the MessageLoop when Ozone can have
// BeginFrame can be triggered explicitly by Ozone.
@@ -150,6 +169,11 @@ class HardwareDisplayController
};
private:
+ ScanoutSurface* GetPrimaryPlane(
+ const std::vector<OzoneOverlayPlane>& overlays);
+
+ NativePixmapList current_overlay_references_;
+
// Object containing the connection to the graphics device and wraps the API
// calls to control it.
DriWrapper* drm_;
« no previous file with comments | « ui/ozone/platform/dri/gbm_surface_factory.cc ('k') | ui/ozone/platform/dri/hardware_display_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698