| Index: ui/gfx/ozone/dri/hardware_display_controller.h
|
| diff --git a/ui/gfx/ozone/dri/hardware_display_controller.h b/ui/gfx/ozone/dri/hardware_display_controller.h
|
| index cae8a6ba821f49dc4cdfd23e7f562ae9851b34a9..952834b5a8c770a1cafea24fe13d76de8d138e01 100644
|
| --- a/ui/gfx/ozone/dri/hardware_display_controller.h
|
| +++ b/ui/gfx/ozone/dri/hardware_display_controller.h
|
| @@ -17,7 +17,7 @@
|
|
|
| namespace gfx {
|
|
|
| -class DriSurface;
|
| +class ScanoutSurface;
|
|
|
| // The HDCOz will handle modesettings and scannout operations for hardware
|
| // devices.
|
| @@ -115,7 +115,20 @@ class GFX_EXPORT HardwareDisplayController {
|
| drmModeModeInfo mode);
|
|
|
| // Associate the HDCO with a surface implementation and initialize it.
|
| - bool BindSurfaceToController(scoped_ptr<DriSurface> surface);
|
| + bool BindSurfaceToController(scoped_ptr<ScanoutSurface> surface);
|
| +
|
| + // Register the framebuffer with handle |handle| with the CRTC. On successful
|
| + // registration an ID will be associated with it. The ID will be stored in
|
| + // |framebuffer_id|. The ID will be used when the HDCO will scan out the
|
| + // framebuffer.
|
| + bool AddFramebuffer(uint8_t depth,
|
| + uint8_t bpp,
|
| + uint32_t stride,
|
| + uint32_t handle,
|
| + uint32_t* framebuffer_id);
|
| +
|
| + // Remove the association for the framebuffer with ID |framebuffer_id|.
|
| + bool RemoveFramebuffer(uint32_t framebuffer_id);
|
|
|
| // Schedules the |surface_|'s framebuffer to be displayed on the next vsync
|
| // event. The event will be posted on the graphics card file descriptor |fd_|
|
| @@ -151,7 +164,7 @@ class GFX_EXPORT HardwareDisplayController {
|
|
|
| const drmModeModeInfo& get_mode() const { return mode_; };
|
|
|
| - DriSurface* get_surface() const { return surface_.get(); };
|
| + ScanoutSurface* get_surface() const { return surface_.get(); };
|
|
|
| uint64_t get_time_of_last_flip() const {
|
| return time_of_last_flip_;
|
| @@ -178,7 +191,7 @@ class GFX_EXPORT HardwareDisplayController {
|
|
|
| State state_;
|
|
|
| - scoped_ptr<DriSurface> surface_;
|
| + scoped_ptr<ScanoutSurface> surface_;
|
|
|
| uint64_t time_of_last_flip_;
|
|
|
|
|