Index: ui/ozone/platform/dri/screen_manager.h |
diff --git a/ui/ozone/platform/dri/screen_manager.h b/ui/ozone/platform/dri/screen_manager.h |
index 252f706bd3f22230bacb70cf2429b66fabb4a557..fbe7bbb75df26394f591a80feefd0f6b9fa63a60 100644 |
--- a/ui/ozone/platform/dri/screen_manager.h |
+++ b/ui/ozone/platform/dri/screen_manager.h |
@@ -23,11 +23,12 @@ class Size; |
namespace ui { |
class DriWrapper; |
+class ScanoutSurfaceGenerator; |
// Responsible for keeping track of active displays and configuring them. |
class OZONE_EXPORT ScreenManager { |
public: |
- ScreenManager(DriWrapper* dri); |
+ ScreenManager(DriWrapper* dri, ScanoutSurfaceGenerator* surface_generator); |
virtual ~ScreenManager(); |
// Remove a display controller from the list of active controllers. The |
@@ -68,9 +69,8 @@ class OZONE_EXPORT ScreenManager { |
// to initialize a display. |
virtual void ForceInitializationOfPrimaryDisplay(); |
- virtual DriSurface* CreateSurface(const gfx::Size& size); |
- |
DriWrapper* dri_; // Not owned. |
+ ScanoutSurfaceGenerator* surface_generator_; // Not owned. |
// Mapping between an accelerated widget and an active display. |
HardwareDisplayControllerMap controllers_; |
gfx::AcceleratedWidget last_added_widget_; |