Chromium Code Reviews| Index: ui/gl/init/ozone_util.h |
| diff --git a/ui/gl/init/ozone_util.h b/ui/gl/init/ozone_util.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..38f6f6930d30ad6466b5d8ea5a32df61d3db7fcb |
| --- /dev/null |
| +++ b/ui/gl/init/ozone_util.h |
| @@ -0,0 +1,32 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef UI_GL_INIT_OZONE_UTIL_H_ |
| +#define UI_GL_INIT_OZONE_UTIL_H_ |
| + |
| +#include "base/macros.h" |
| +#include "ui/gl/gl_implementation.h" |
| +#include "ui/ozone/public/gl_ozone.h" |
| +#include "ui/ozone/public/surface_factory_ozone.h" |
| + |
| +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.
|
| + |
| +ui::SurfaceFactoryOzone* GetSurfaceFactory(); |
| + |
| +// Returns true if there is an GLOzone for the specified GL implementation. |
| +bool HasGLOzone(GLImplementation impl); |
| + |
| +// Returns true if there is an GLOzone for the set GL implementation. |
| +bool HasGLOzone(); |
| + |
| +// Returns the GLOzone for the specified GL implementation or null if none |
| +// exists. |
| +ui::GLOzone* GetGLOzone(GLImplementation impl); |
| + |
| +// Returns the GLOzone for the set GL implementation or null if none exists. |
| +ui::GLOzone* GetGLOzone(); |
| + |
| +} // namespace gl |
| + |
| +#endif // UI_GL_INIT_OZONE_UTIL_H_ |