OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 GPU_SKIA_BINDINGS_GL_BINDINGS_SKIA_CMD_BUFFER_H_ | 5 #ifndef GPU_SKIA_BINDINGS_GL_BINDINGS_SKIA_CMD_BUFFER_H_ |
6 #define GPU_SKIA_BINDINGS_GL_BINDINGS_SKIA_CMD_BUFFER_H_ | 6 #define GPU_SKIA_BINDINGS_GL_BINDINGS_SKIA_CMD_BUFFER_H_ |
7 | 7 |
8 #include "third_party/skia/include/core/SkTypes.h" | 8 #include "third_party/skia/include/core/SkTypes.h" |
9 | 9 |
10 struct GrGLInterface; | 10 struct GrGLInterface; |
11 | 11 |
12 namespace skia_bindings { | 12 namespace skia_bindings { |
13 | 13 |
14 // The GPU back-end for skia requires pointers to GL functions. This function | 14 // The GPU back-end for skia requires pointers to GL functions. This function |
15 // returns a binding for skia-gpu to the cmd buffers GL. | 15 // initializes bindings for skia-gpu to the cmd buffers GL. |
16 GrGLInterface* CreateCommandBufferSkiaGLBinding(); | 16 void InitCommandBufferSkiaGLBinding(GrGLInterface*); |
17 | 17 |
18 } // namespace skia | 18 } // namespace skia |
19 | 19 |
20 #endif // GPU_SKIA_BINDINGS_GL_BINDINGS_SKIA_CMD_BUFFER_H_ | 20 #endif // GPU_SKIA_BINDINGS_GL_BINDINGS_SKIA_CMD_BUFFER_H_ |
OLD | NEW |