Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: include/gpu/gl/GrGLInterface.h

Issue 1357823003: SK_API for include/gpu/gl/GrGLInterface.h (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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();
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 SK_API const GrGLInterface* GrGLCreateANGLEInterface();
58 #endif 58 #endif
59 59
60 #if SK_COMMAND_BUFFER 60 #if SK_COMMAND_BUFFER
61 /** 61 /**
62 * Creates a GrGLInterface for a Command Buffer context. 62 * Creates a GrGLInterface for a Command Buffer context.
63 */ 63 */
64 const GrGLInterface* GrGLCreateCommandBufferInterface(); 64 SK_API const GrGLInterface* GrGLCreateCommandBufferInterface();
65 #endif 65 #endif
66 66
67 /** 67 /**
68 * Creates a null GrGLInterface that doesn't draw anything. Used for measuring 68 * Creates a null GrGLInterface that doesn't draw anything. Used for measuring
69 * CPU overhead. 69 * CPU overhead.
70 */ 70 */
71 const SK_API GrGLInterface* GrGLCreateNullInterface(); 71 const SK_API GrGLInterface* GrGLCreateNullInterface();
bsalomon 2015/09/21 15:17:18 should we make this be "SK_API const"?
72 72
73 /** 73 /**
74 * Creates a debugging GrGLInterface that doesn't draw anything. Used for 74 * Creates a debugging GrGLInterface that doesn't draw anything. Used for
75 * finding memory leaks and invalid memory accesses. 75 * finding memory leaks and invalid memory accesses.
76 */ 76 */
77 const GrGLInterface* GrGLCreateDebugInterface(); 77 const GrGLInterface* GrGLCreateDebugInterface();
78 78
79 #if GR_GL_PER_GL_FUNC_CALLBACK 79 #if GR_GL_PER_GL_FUNC_CALLBACK
80 typedef void (*GrGLInterfaceCallbackProc)(const GrGLInterface*); 80 typedef void (*GrGLInterfaceCallbackProc)(const GrGLInterface*);
81 typedef intptr_t GrGLInterfaceCallbackData; 81 typedef intptr_t GrGLInterfaceCallbackData;
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698