| // Copyright 2015 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_ANGLE_PLATFORM_IMPL_H_ |
| #define UI_GL_ANGLE_PLATFORM_IMPL_H_ |
| |
| // Implements the ANGLE platform interface, for functionality like |
| // histograms and trace profiling. |
| |
| #include "base/callback_forward.h" |
| #include "ui/gl/gl_context_egl.h" |
| #include "ui/gl/gl_export.h" |
| |
| namespace angle { |
| |
| GL_EXPORT bool InitializePlatform(EGLDisplay display); |
| GL_EXPORT void ResetPlatform(EGLDisplay display); |
| |
| using CacheProgramCallback = |
| base::RepeatingCallback<void(const std::string&, const std::string&)>; |
| GL_EXPORT void SetCacheProgramCallback(CacheProgramCallback callback); |
| GL_EXPORT void ResetCacheProgramCallback(); |
| |
| } // namespace angle |
| |
| #endif // UI_GL_ANGLE_PLATFORM_IMPL_H_ |