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

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

Issue 916733002: Support multiple null GL contexts on a thread. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: include reorder Created 5 years, 10 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
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 #endif 49 #endif
50 50
51 #if SK_ANGLE 51 #if SK_ANGLE
52 /** 52 /**
53 * Creates a GrGLInterface for an ANGLE context. 53 * Creates a GrGLInterface for an ANGLE context.
54 */ 54 */
55 const GrGLInterface* GrGLCreateANGLEInterface(); 55 const GrGLInterface* GrGLCreateANGLEInterface();
56 #endif 56 #endif
57 57
58 /** 58 /**
59 * Creates a null GrGLInterface that doesn't draw anything. Used for measuring
60 * CPU overhead.
61 */
62 const SK_API GrGLInterface* GrGLCreateNullInterface();
63
64 /**
65 * Creates a debugging GrGLInterface that doesn't draw anything. Used for 59 * Creates a debugging GrGLInterface that doesn't draw anything. Used for
66 * finding memory leaks and invalid memory accesses. 60 * finding memory leaks and invalid memory accesses.
67 */ 61 */
68 const GrGLInterface* GrGLCreateDebugInterface(); 62 const GrGLInterface* GrGLCreateDebugInterface();
69 63
70 #if GR_GL_PER_GL_FUNC_CALLBACK 64 #if GR_GL_PER_GL_FUNC_CALLBACK
71 typedef void (*GrGLInterfaceCallbackProc)(const GrGLInterface*); 65 typedef void (*GrGLInterfaceCallbackProc)(const GrGLInterface*);
72 typedef intptr_t GrGLInterfaceCallbackData; 66 typedef intptr_t GrGLInterfaceCallbackData;
73 #endif 67 #endif
74 68
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 #if GR_GL_PER_GL_FUNC_CALLBACK 348 #if GR_GL_PER_GL_FUNC_CALLBACK
355 GrGLInterfaceCallbackProc fCallback; 349 GrGLInterfaceCallbackProc fCallback;
356 GrGLInterfaceCallbackData fCallbackData; 350 GrGLInterfaceCallbackData fCallbackData;
357 #endif 351 #endif
358 352
359 // This exists for internal testing. 353 // This exists for internal testing.
360 virtual void abandon() const {} 354 virtual void abandon() const {}
361 }; 355 };
362 356
363 #endif 357 #endif
OLDNEW
« no previous file with comments | « gyp/gpu.gypi ('k') | include/gpu/gl/SkNullGLContext.h » ('j') | src/gpu/gl/SkNullGLContext.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698