OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_GL_GL_BINDINGS_SKIA_IN_PROCESS_H_ | 5 #ifndef UI_GFX_GL_GL_BINDINGS_SKIA_IN_PROCESS_H_ |
6 #define UI_GFX_GL_GL_BINDINGS_SKIA_IN_PROCESS_H_ | 6 #define UI_GFX_GL_GL_BINDINGS_SKIA_IN_PROCESS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ui/gfx/gl/gl_export.h" | 9 #include "ui/gfx/gl/gl_export.h" |
10 | 10 |
| 11 struct GrGLInterface; |
| 12 |
11 namespace gfx { | 13 namespace gfx { |
12 | 14 |
13 // The GPU back-end for skia requires pointers to GL functions. This function | 15 // The GPU back-end for skia requires pointers to GL functions. This function |
14 // binds skia-gpu to the in-process GL | 16 // binds skia-gpu to the in-process GL |
15 GL_EXPORT void BindSkiaToInProcessGL(); | 17 GL_EXPORT GrGLInterface* GetInProcessSkiaGLBinding(); |
16 | 18 |
17 } | 19 } |
18 | 20 |
19 #endif // UI_GFX_GL_GL_BINDINGS_SKIA_IN_PROCESS_H_ | 21 #endif // UI_GFX_GL_GL_BINDINGS_SKIA_IN_PROCESS_H_ |
20 | 22 |
OLD | NEW |