| 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);
|
| };
|
|
|
|
|