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 MOJO_SKIA_GL_BINDINGS_SKIA_H_ | 5 #ifndef MOJO_SKIA_GL_BINDINGS_SKIA_H_ |
6 #define MOJO_SKIA_GL_BINDINGS_SKIA_H_ | 6 #define MOJO_SKIA_GL_BINDINGS_SKIA_H_ |
7 | 7 |
| 8 #include "third_party/skia/include/core/SkRefCnt.h" |
8 #include "third_party/skia/include/core/SkTypes.h" | 9 #include "third_party/skia/include/core/SkTypes.h" |
9 | 10 |
10 struct GrGLInterface; | 11 struct GrGLInterface; |
11 | 12 |
12 namespace mojo { | 13 namespace mojo { |
13 namespace skia { | 14 namespace skia { |
14 | 15 |
15 // The GPU back-end for skia requires pointers to GL functions. This function | 16 // The GPU back-end for skia requires pointers to GL functions. This function |
16 // returns a binding for skia-gpu to the Mojo C GL entry points. | 17 // returns a binding for skia-gpu to the Mojo C GL entry points. |
17 GrGLInterface* CreateMojoSkiaGLBinding(); | 18 sk_sp<GrGLInterface> CreateMojoSkiaGLBinding(); |
18 | 19 |
19 } // namespace skia | 20 } // namespace skia |
20 } // namespace mojo | 21 } // namespace mojo |
21 | 22 |
22 #endif // MOJO_SKIA_GL_BINDINGS_SKIA_H_ | 23 #endif // MOJO_SKIA_GL_BINDINGS_SKIA_H_ |
OLD | NEW |