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

Side by Side Diff: src/gpu/gl/GrGLPathRendering.h

Issue 570733002: Add support for glMemoryGlyphIndexArrayNV (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix windows warning Created 6 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 | « src/gpu/gl/GrGLInterface.cpp ('k') | src/gpu/gl/GrGLPathRendering.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 2014 Google Inc. 2 * Copyright 2014 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 GrGLPathRendering_DEFINED 8 #ifndef GrGLPathRendering_DEFINED
9 #define GrGLPathRendering_DEFINED 9 #define GrGLPathRendering_DEFINED
10 10
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 GrGLvoid deletePaths(GrGLuint path, GrGLsizei range); 92 GrGLvoid deletePaths(GrGLuint path, GrGLsizei range);
93 93
94 private: 94 private:
95 /** 95 /**
96 * Mark certain functionality as not supported if the driver version is too 96 * Mark certain functionality as not supported if the driver version is too
97 * old and a backup implementation is not practical. 97 * old and a backup implementation is not practical.
98 */ 98 */
99 struct Caps { 99 struct Caps {
100 bool stencilThenCoverSupport : 1; 100 bool stencilThenCoverSupport : 1;
101 bool fragmentInputGenSupport : 1; 101 bool fragmentInputGenSupport : 1;
102 bool glyphLoadingSupport : 1;
102 }; 103 };
103 const Caps& caps() const { return fCaps; } 104 const Caps& caps() const { return fCaps; }
104 105
105 void flushPathStencilSettings(SkPath::FillType fill); 106 void flushPathStencilSettings(SkPath::FillType fill);
106 107
107 // NV_path_rendering v1.2 108 // NV_path_rendering v1.2
108 void stencilThenCoverFillPath(GrGLuint path, GrGLenum fillMode, 109 void stencilThenCoverFillPath(GrGLuint path, GrGLenum fillMode,
109 GrGLuint mask, GrGLenum coverMode); 110 GrGLuint mask, GrGLenum coverMode);
110 111
111 void stencilThenCoverStrokePath(GrGLuint path, GrGLint reference, 112 void stencilThenCoverStrokePath(GrGLuint path, GrGLint reference,
(...skipping 17 matching lines...) Expand all
129 struct PathTexGenData { 130 struct PathTexGenData {
130 GrGLenum fMode; 131 GrGLenum fMode;
131 GrGLint fNumComponents; 132 GrGLint fNumComponents;
132 GrGLfloat fCoefficients[3 * 3]; 133 GrGLfloat fCoefficients[3 * 3];
133 }; 134 };
134 int fHWActivePathTexGenSets; 135 int fHWActivePathTexGenSets;
135 SkTArray<PathTexGenData, true> fHWPathTexGenSettings; 136 SkTArray<PathTexGenData, true> fHWPathTexGenSettings;
136 }; 137 };
137 138
138 #endif 139 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLInterface.cpp ('k') | src/gpu/gl/GrGLPathRendering.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698