| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_OZONE_COMMON_EGL_UTIL_H_ | 5 #ifndef UI_OZONE_COMMON_EGL_UTIL_H_ |
| 6 #define UI_OZONE_COMMON_EGL_UTIL_H_ | 6 #define UI_OZONE_COMMON_EGL_UTIL_H_ |
| 7 | 7 |
| 8 #include "ui/ozone/public/surface_factory_ozone.h" | 8 #include "ui/ozone/public/surface_factory_ozone.h" |
| 9 #include "ui/ozone/public/surface_ozone_egl.h" | 9 #include "ui/ozone/public/surface_ozone_egl.h" |
| 10 | 10 |
| 11 namespace ui { | 11 namespace ui { |
| 12 | 12 |
| 13 bool LoadDefaultEGLGLES2Bindings( | 13 bool LoadDefaultEGLGLES2Bindings( |
| 14 SurfaceFactoryOzone::AddGLLibraryCallback add_gl_library, | 14 SurfaceFactoryOzone::AddGLLibraryCallback add_gl_library, |
| 15 SurfaceFactoryOzone::SetGLGetProcAddressProcCallback | 15 SurfaceFactoryOzone::SetGLGetProcAddressProcCallback |
| 16 set_gl_get_proc_address); | 16 set_gl_get_proc_address); |
| 17 | 17 |
| 18 bool LoadEGLGLES2Bindings( | 18 bool LoadEGLGLES2Bindings( |
| 19 SurfaceFactoryOzone::AddGLLibraryCallback add_gl_library, | 19 SurfaceFactoryOzone::AddGLLibraryCallback add_gl_library, |
| 20 SurfaceFactoryOzone::SetGLGetProcAddressProcCallback | 20 SurfaceFactoryOzone::SetGLGetProcAddressProcCallback |
| 21 set_gl_get_proc_address, | 21 set_gl_get_proc_address, |
| 22 const char* egl_library_name, | 22 const char* egl_library_name, |
| 23 const char* gles_library_name); | 23 const char* gles_library_name); |
| 24 | 24 |
| 25 void* /* EGLConfig */ ChooseEGLConfig(void* /* EGLConfig */ display, |
| 26 const int32_t* attributes); |
| 27 |
| 28 // TODO(kylechar): This is deprecated, delete when all callers are gone. |
| 25 void* /* EGLConfig */ ChooseEGLConfig(const EglConfigCallbacks& egl, | 29 void* /* EGLConfig */ ChooseEGLConfig(const EglConfigCallbacks& egl, |
| 26 const int32_t* attributes); | 30 const int32_t* attributes); |
| 27 | 31 |
| 28 } // namespace ui | 32 } // namespace ui |
| 29 | 33 |
| 30 #endif // UI_OZONE_COMMON_EGL_UTIL_H_ | 34 #endif // UI_OZONE_COMMON_EGL_UTIL_H_ |
| OLD | NEW |