| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |