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

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

Issue 409793007: Add plane manager to the atomic swap path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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/dri.gypi ('k') | ui/ozone/platform/dri/hardware_display_plane.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_plane.h
diff --git a/ui/ozone/platform/dri/hardware_display_plane.h b/ui/ozone/platform/dri/hardware_display_plane.h
index 1a37b486265f0733521807e4d08b54f3b99d479f..dd79f7680233dfb151b83b5437d2ec4b7e02101e 100644
--- a/ui/ozone/platform/dri/hardware_display_plane.h
+++ b/ui/ozone/platform/dri/hardware_display_plane.h
@@ -30,11 +30,15 @@ class HardwareDisplayPlane {
bool Initialize();
+ bool CanUseForCrtc(uint32_t crtc_id);
bool SetPlaneData(uint32_t crtc_id,
uint32_t framebuffer,
const gfx::Rect& crtc_rect,
const gfx::Rect& src_rect);
+ bool in_use() const { return in_use_; }
+ void set_in_use(bool in_use) { in_use_ = in_use; }
+
private:
struct Property {
Property();
@@ -52,6 +56,7 @@ class HardwareDisplayPlane {
ScopedDrmPlanePtr plane_;
uint32_t plane_id_;
+ bool in_use_;
Property crtc_prop_;
Property fb_prop_;
« no previous file with comments | « ui/ozone/platform/dri/dri.gypi ('k') | ui/ozone/platform/dri/hardware_display_plane.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698