Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_GL_INIT_OZONE_UTIL_H_ | |
| 6 #define UI_GL_INIT_OZONE_UTIL_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "ui/gl/gl_implementation.h" | |
| 10 #include "ui/ozone/public/gl_ozone.h" | |
| 11 #include "ui/ozone/public/surface_factory_ozone.h" | |
| 12 | |
| 13 namespace gl { | |
|
rjkroege
2016/08/26 19:55:53
Can you remind me of the layering? I think it shou
kylechar
2016/08/29 15:38:14
Yep, that's exactly it.
| |
| 14 | |
| 15 ui::SurfaceFactoryOzone* GetSurfaceFactory(); | |
| 16 | |
| 17 // Returns true if there is an GLOzone for the specified GL implementation. | |
| 18 bool HasGLOzone(GLImplementation impl); | |
| 19 | |
| 20 // Returns true if there is an GLOzone for the set GL implementation. | |
| 21 bool HasGLOzone(); | |
| 22 | |
| 23 // Returns the GLOzone for the specified GL implementation or null if none | |
| 24 // exists. | |
| 25 ui::GLOzone* GetGLOzone(GLImplementation impl); | |
| 26 | |
| 27 // Returns the GLOzone for the set GL implementation or null if none exists. | |
| 28 ui::GLOzone* GetGLOzone(); | |
| 29 | |
| 30 } // namespace gl | |
| 31 | |
| 32 #endif // UI_GL_INIT_OZONE_UTIL_H_ | |
| OLD | NEW |