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 "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/native_library.h" | 10 #include "base/native_library.h" |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider( | 130 virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider( |
131 gfx::AcceleratedWidget w) = 0; | 131 gfx::AcceleratedWidget w) = 0; |
132 | 132 |
133 // Returns an array of EGL properties, which can be used in any EGL function | 133 // Returns an array of EGL properties, which can be used in any EGL function |
134 // used to select a display configuration. Note that all properties should be | 134 // used to select a display configuration. Note that all properties should be |
135 // immediately followed by the corresponding desired value and array should be | 135 // immediately followed by the corresponding desired value and array should be |
136 // terminated with EGL_NONE. Ownership of the array is not transferred to | 136 // terminated with EGL_NONE. Ownership of the array is not transferred to |
137 // caller. desired_list contains list of desired EGL properties and values. | 137 // caller. desired_list contains list of desired EGL properties and values. |
138 virtual const int32* GetEGLSurfaceProperties(const int32* desired_list); | 138 virtual const int32* GetEGLSurfaceProperties(const int32* desired_list); |
139 | 139 |
140 // Create a default SufaceFactoryOzone implementation useful for tests. | |
141 static SurfaceFactoryOzone* CreateTestHelper(); | |
142 | |
143 private: | 140 private: |
144 static SurfaceFactoryOzone* impl_; // not owned | 141 static SurfaceFactoryOzone* impl_; // not owned |
145 }; | 142 }; |
146 | 143 |
147 } // namespace gfx | 144 } // namespace gfx |
148 | 145 |
149 #endif // UI_GFX_OZONE_SURFACE_LNUX_FACTORY_OZONE_H_ | 146 #endif // UI_GFX_OZONE_SURFACE_LNUX_FACTORY_OZONE_H_ |
OLD | NEW |