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/native_library.h" | 9 #include "base/native_library.h" |
10 #include "ui/gfx/gfx_export.h" | 10 #include "ui/gfx/gfx_export.h" |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
128 // in InitializeHardware. Returns NULL on error. | 128 // in InitializeHardware. Returns NULL on error. |
129 virtual gfx::VSyncProvider* GetVSyncProvider(gfx::AcceleratedWidget w) = 0; | 129 virtual gfx::VSyncProvider* GetVSyncProvider(gfx::AcceleratedWidget w) = 0; |
130 | 130 |
131 // Returns an array of EGL properties, which can be used in any EGL function | 131 // Returns an array of EGL properties, which can be used in any EGL function |
132 // used to select a display configuration. Note that all properties should be | 132 // used to select a display configuration. Note that all properties should be |
133 // immediately followed by the corresponding desired value and array should be | 133 // immediately followed by the corresponding desired value and array should be |
134 // terminated with EGL_NONE. Ownership of the array is not transferred to | 134 // terminated with EGL_NONE. Ownership of the array is not transferred to |
135 // caller. desired_list contains list of desired EGL properties and values. | 135 // caller. desired_list contains list of desired EGL properties and values. |
136 virtual const int32* GetEGLSurfaceProperties(const int32* desired_list); | 136 virtual const int32* GetEGLSurfaceProperties(const int32* desired_list); |
137 | 137 |
138 virtual void* GetFunctionPointerFromNativeLibrary(base::NativeLibrary library, | |
rjkroege
2014/01/10 19:14:04
Why? this doesn't seem to belong here.
dnicoara
2014/01/21 21:22:42
Ignore this. This is legacy from the hacked GBM ba
| |
139 const char* name); | |
140 | |
141 virtual void SetOverlayPlane(int plane_id, | |
rjkroege
2014/01/10 19:14:04
what does this do?
dnicoara
2014/01/21 21:22:42
This may need to have another gfx::AcceleratedWidg
| |
142 gfx::AcceleratedWidget handle, | |
143 const gfx::Rect& bounds); | |
144 | |
145 virtual gfx::AcceleratedWidget CreateNativeBuffer(gfx::Size size, | |
dnicoara
2014/01/21 21:22:42
Would we need to use this for anything other than
| |
146 unsigned internalformat); | |
147 | |
138 // Create a default SufaceFactoryOzone implementation useful for tests. | 148 // Create a default SufaceFactoryOzone implementation useful for tests. |
139 static SurfaceFactoryOzone* CreateTestHelper(); | 149 static SurfaceFactoryOzone* CreateTestHelper(); |
140 | 150 |
141 private: | 151 private: |
142 static SurfaceFactoryOzone* impl_; // not owned | 152 static SurfaceFactoryOzone* impl_; // not owned |
143 }; | 153 }; |
144 | 154 |
145 } // namespace gfx | 155 } // namespace gfx |
146 | 156 |
147 #endif // UI_GFX_OZONE_SURFACE_LNUX_FACTORY_OZONE_H_ | 157 #endif // UI_GFX_OZONE_SURFACE_LNUX_FACTORY_OZONE_H_ |
OLD | NEW |