OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef GrGLInterface_DEFINED | 8 #ifndef GrGLInterface_DEFINED |
9 #define GrGLInterface_DEFINED | 9 #define GrGLInterface_DEFINED |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... | |
34 | 34 |
35 struct GrGLInterface; | 35 struct GrGLInterface; |
36 | 36 |
37 const GrGLInterface* GrGLDefaultInterface(); | 37 const GrGLInterface* GrGLDefaultInterface(); |
38 | 38 |
39 /** | 39 /** |
40 * Creates a GrGLInterface for a "native" GL context (e.g. WGL on windows, | 40 * Creates a GrGLInterface for a "native" GL context (e.g. WGL on windows, |
41 * GLX on linux, AGL on Mac). The interface is only valid for the GL context | 41 * GLX on linux, AGL on Mac). The interface is only valid for the GL context |
42 * that is current when the interface is created. | 42 * that is current when the interface is created. |
43 */ | 43 */ |
44 const GrGLInterface* GrGLCreateNativeInterface(); | 44 SK_API const GrGLInterface* GrGLCreateNativeInterface(); |
mtklein
2015/09/17 13:58:22
Uh, either these all should be SK_API or none shou
hal.canary
2015/09/17 14:19:25
I'm pretty sure they should all be SK_API, since y
| |
45 | 45 |
46 #if SK_MESA | 46 #if SK_MESA |
47 /** | 47 /** |
48 * Creates a GrGLInterface for an OSMesa context. | 48 * Creates a GrGLInterface for an OSMesa context. |
49 */ | 49 */ |
50 const GrGLInterface* GrGLCreateMesaInterface(); | 50 SK_API const GrGLInterface* GrGLCreateMesaInterface(); |
51 #endif | 51 #endif |
52 | 52 |
53 #if SK_ANGLE | 53 #if SK_ANGLE |
54 /** | 54 /** |
55 * Creates a GrGLInterface for an ANGLE context. | 55 * Creates a GrGLInterface for an ANGLE context. |
56 */ | 56 */ |
57 const GrGLInterface* GrGLCreateANGLEInterface(); | 57 const GrGLInterface* GrGLCreateANGLEInterface(); |
58 #endif | 58 #endif |
59 | 59 |
60 #if SK_COMMAND_BUFFER | 60 #if SK_COMMAND_BUFFER |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
505 #if GR_GL_PER_GL_FUNC_CALLBACK | 505 #if GR_GL_PER_GL_FUNC_CALLBACK |
506 GrGLInterfaceCallbackProc fCallback; | 506 GrGLInterfaceCallbackProc fCallback; |
507 GrGLInterfaceCallbackData fCallbackData; | 507 GrGLInterfaceCallbackData fCallbackData; |
508 #endif | 508 #endif |
509 | 509 |
510 // This exists for internal testing. | 510 // This exists for internal testing. |
511 virtual void abandon() const {} | 511 virtual void abandon() const {} |
512 }; | 512 }; |
513 | 513 |
514 #endif | 514 #endif |
OLD | NEW |