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

Side by Side Diff: ui/gfx/ozone/surface_factory_ozone.h

Issue 26849004: [Ozone] Adding a software rendering implementation of SurfaceFactoryOzone (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated SSO unittest Created 7 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/gfx/ozone/impl/software_surface_ozone_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/gfx/ozone/impl/software_surface_ozone_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698