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

Unified Diff: ui/ozone/platform/drm/gpu/crtc_controller.h

Issue 1091253003: [ozone] Keep the queue of surfaceless buffers inside gl_surface_ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/platform/drm/gpu/crtc_controller.h
diff --git a/ui/ozone/platform/drm/gpu/crtc_controller.h b/ui/ozone/platform/drm/gpu/crtc_controller.h
index 4404bfa25d9b24d9c0e8f070ba07caafebc5b2d7..f18e6cb624923ede51d98421a1df9d1027ed349b 100644
--- a/ui/ozone/platform/drm/gpu/crtc_controller.h
+++ b/ui/ozone/platform/drm/gpu/crtc_controller.h
@@ -19,7 +19,7 @@
namespace ui {
class DrmDevice;
-class PageFlipObserver;
+class PageFlipRequest;
// Wrapper around a CRTC.
//
@@ -52,7 +52,8 @@ class OZONE_EXPORT CrtcController
// Schedule a page flip event and present the overlays in |planes|.
bool SchedulePageFlip(HardwareDisplayPlaneList* plane_list,
- const OverlayPlaneList& planes);
+ const OverlayPlaneList& planes,
+ scoped_refptr<PageFlipRequest> page_flip_request);
// Called if the page flip for this CRTC fails after being scheduled.
void PageFlipFailed();
@@ -70,9 +71,6 @@ class OZONE_EXPORT CrtcController
bool SetCursor(const scoped_refptr<ScanoutBuffer>& buffer);
bool MoveCursor(const gfx::Point& location);
- void AddObserver(PageFlipObserver* observer);
- void RemoveObserver(PageFlipObserver* observer);
-
private:
bool ResetCursor();
@@ -85,6 +83,7 @@ class OZONE_EXPORT CrtcController
OverlayPlaneList current_planes_;
OverlayPlaneList pending_planes_;
scoped_refptr<ScanoutBuffer> cursor_buffer_;
+ scoped_refptr<PageFlipRequest> page_flip_request_;
uint32_t crtc_;
@@ -108,8 +107,6 @@ class OZONE_EXPORT CrtcController
// The time of the last page flip event as reported by the kernel callback.
uint64_t time_of_last_flip_;
- ObserverList<PageFlipObserver> observers_;
-
DISALLOW_COPY_AND_ASSIGN(CrtcController);
};

Powered by Google App Engine
This is Rietveld 408576698