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

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

Issue 106633002: GBM Ozone implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 10 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/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_;

Powered by Google App Engine
This is Rietveld 408576698