Index: ui/ozone/platform/dri/dri_surface_factory.h |
diff --git a/ui/ozone/platform/dri/dri_surface_factory.h b/ui/ozone/platform/dri/dri_surface_factory.h |
index 690c4d13c82361ddbc8dbaa3cd8d81dcfc300393..83ce8cf6039c104c98a8177c49d3c15f7ffb0d7f 100644 |
--- a/ui/ozone/platform/dri/dri_surface_factory.h |
+++ b/ui/ozone/platform/dri/dri_surface_factory.h |
@@ -30,9 +30,19 @@ class DriSurfaceFactory : public ui::SurfaceFactoryOzone, |
DriSurfaceFactory(DriWrapper* drm, ScreenManager* screen_manager); |
virtual ~DriSurfaceFactory(); |
- // SurfaceFactoryOzone overrides: |
- virtual HardwareState InitializeHardware() OVERRIDE; |
- virtual void ShutdownHardware() OVERRIDE; |
+ // Describes the state of the hardware after initialization. |
+ enum HardwareState { |
+ UNINITIALIZED, |
+ INITIALIZED, |
+ FAILED, |
+ }; |
+ |
+ // Open the display device. |
+ virtual HardwareState InitializeHardware(); |
+ |
+ // Close the display device. |
+ virtual void ShutdownHardware(); |
+ |
virtual scoped_ptr<ui::SurfaceOzoneCanvas> CreateCanvasForWidget( |
gfx::AcceleratedWidget w) OVERRIDE; |
virtual bool LoadEGLGLES2Bindings( |