| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_GFX_OZONE_SURFACE_LNUX_FACTORY_OZONE_H_ | 5 #ifndef UI_GFX_OZONE_SURFACE_LNUX_FACTORY_OZONE_H_ |
| 6 #define UI_GFX_OZONE_SURFACE_LNUX_FACTORY_OZONE_H_ | 6 #define UI_GFX_OZONE_SURFACE_LNUX_FACTORY_OZONE_H_ |
| 7 | 7 |
| 8 #include "ui/gfx/gfx_export.h" | 8 #include "ui/gfx/gfx_export.h" |
| 9 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
| 10 #include "ui/gfx/rect.h" | 10 #include "ui/gfx/rect.h" |
| 11 | 11 |
| 12 namespace gfx { | 12 namespace gfx { |
| 13 class Screen; | 13 class Screen; |
| 14 class VSyncProvider; | 14 class VSyncProvider; |
| 15 | 15 |
| 16 class GFX_EXPORT SurfaceFactoryOzone { | 16 class GFX_EXPORT SurfaceFactoryOzone { |
| 17 public: | 17 public: |
| 18 // Describes the state of the hardware after initialization. | 18 // Describes the state of the hardware after initialization. |
| 19 enum HardwareState { | 19 enum HardwareState { |
| 20 UNINITIALIZED, |
| 20 INITIALIZED, | 21 INITIALIZED, |
| 21 FAILED, | 22 FAILED, |
| 22 }; | 23 }; |
| 23 | 24 |
| 24 SurfaceFactoryOzone(); | 25 SurfaceFactoryOzone(); |
| 25 virtual ~SurfaceFactoryOzone(); | 26 virtual ~SurfaceFactoryOzone(); |
| 26 | 27 |
| 27 // Returns the instance | 28 // Returns the instance |
| 28 static SurfaceFactoryOzone* GetInstance(); | 29 static SurfaceFactoryOzone* GetInstance(); |
| 29 | 30 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // Create a default SufaceFactoryOzone implementation useful for tests. | 93 // Create a default SufaceFactoryOzone implementation useful for tests. |
| 93 static SurfaceFactoryOzone* CreateTestHelper(); | 94 static SurfaceFactoryOzone* CreateTestHelper(); |
| 94 | 95 |
| 95 private: | 96 private: |
| 96 static SurfaceFactoryOzone* impl_; // not owned | 97 static SurfaceFactoryOzone* impl_; // not owned |
| 97 }; | 98 }; |
| 98 | 99 |
| 99 } // namespace gfx | 100 } // namespace gfx |
| 100 | 101 |
| 101 #endif // UI_GFX_OZONE_SURFACE_LNUX_FACTORY_OZONE_H_ | 102 #endif // UI_GFX_OZONE_SURFACE_LNUX_FACTORY_OZONE_H_ |
| OLD | NEW |