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

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

Issue 1882563002: Enable NV_path_rendering in the Null GL. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Rebased to resolve merge conflict Created 4 years, 8 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 | src/gpu/gl/GrGLCreateNullInterface.cpp » ('j') | 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 #if GR_GL_PER_GL_FUNC_CALLBACK 46 #if GR_GL_PER_GL_FUNC_CALLBACK
47 typedef void (*GrGLInterfaceCallbackProc)(const GrGLInterface*); 47 typedef void (*GrGLInterfaceCallbackProc)(const GrGLInterface*);
48 typedef intptr_t GrGLInterfaceCallbackData; 48 typedef intptr_t GrGLInterfaceCallbackData;
49 #endif 49 #endif
50 50
51 /** 51 /**
52 * Creates a null GrGLInterface that doesn't draw anything. Used for measuring 52 * Creates a null GrGLInterface that doesn't draw anything. Used for measuring
53 * CPU overhead. TODO: We would like to move this to tools/gpu/gl/null but curre ntly 53 * CPU overhead. TODO: We would like to move this to tools/gpu/gl/null but curre ntly
54 * Chromium is using it in its unit tests. 54 * Chromium is using it in its unit tests.
55 */ 55 */
56 const SK_API GrGLInterface* GrGLCreateNullInterface(); 56 const SK_API GrGLInterface* GrGLCreateNullInterface(bool enableNVPR = false);
57 57
58 /** Function that returns a new interface identical to "interface" but without s upport for 58 /** Function that returns a new interface identical to "interface" but without s upport for
59 GL_NV_path_rendering. */ 59 GL_NV_path_rendering. */
60 const GrGLInterface* GrGLInterfaceRemoveNVPR(const GrGLInterface*); 60 const GrGLInterface* GrGLInterfaceRemoveNVPR(const GrGLInterface*);
61 61
62 /** Function that returns a new interface identical to "interface" but with supp ort for 62 /** Function that returns a new interface identical to "interface" but with supp ort for
63 test version of GL_EXT_debug_marker. */ 63 test version of GL_EXT_debug_marker. */
64 const GrGLInterface* GrGLInterfaceAddTestDebugMarker(const GrGLInterface*, 64 const GrGLInterface* GrGLInterfaceAddTestDebugMarker(const GrGLInterface*,
65 GrGLInsertEventMarkerProc i nsertEventMarkerFn, 65 GrGLInsertEventMarkerProc i nsertEventMarkerFn,
66 GrGLPushGroupMarkerProc pus hGroupMarkerFn, 66 GrGLPushGroupMarkerProc pus hGroupMarkerFn,
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 /* EGL functions */ 465 /* EGL functions */
466 GrGLFunction<GrEGLCreateImageProc> fEGLCreateImage; 466 GrGLFunction<GrEGLCreateImageProc> fEGLCreateImage;
467 GrGLFunction<GrEGLDestroyImageProc> fEGLDestroyImage; 467 GrGLFunction<GrEGLDestroyImageProc> fEGLDestroyImage;
468 } fFunctions; 468 } fFunctions;
469 469
470 // This exists for internal testing. 470 // This exists for internal testing.
471 virtual void abandon() const {} 471 virtual void abandon() const {}
472 }; 472 };
473 473
474 #endif 474 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/GrGLCreateNullInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698