commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2013 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #ifndef GrBezierEffect_DEFINED |
skia.committer@gmail.com | 44a77c8 | 2013-08-23 07:01:29 +0000 | [diff] [blame] | 9 | #define GrBezierEffect_DEFINED |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 10 | |
Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 11 | #include "include/private/GrTypesPriv.h" |
| 12 | #include "src/gpu/GrCaps.h" |
| 13 | #include "src/gpu/GrGeometryProcessor.h" |
| 14 | #include "src/gpu/GrProcessor.h" |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 15 | |
| 16 | /** |
| 17 | * Shader is based off of Loop-Blinn Quadratic GPU Rendering |
| 18 | * The output of this effect is a hairline edge for conics. |
| 19 | * Conics specified by implicit equation K^2 - LM. |
| 20 | * K, L, and M, are the first three values of the vertex attribute, |
| 21 | * the fourth value is not used. Distance is calculated using a |
| 22 | * first order approximation from the taylor series. |
| 23 | * Coverage for AA is max(0, 1-distance). |
| 24 | * |
| 25 | * Test were also run using a second order distance approximation. |
| 26 | * There were two versions of the second order approx. The first version |
| 27 | * is of roughly the form: |
| 28 | * f(q) = |f(p)| - ||f'(p)||*||q-p|| - ||f''(p)||*||q-p||^2. |
| 29 | * The second is similar: |
| 30 | * f(q) = |f(p)| + ||f'(p)||*||q-p|| + ||f''(p)||*||q-p||^2. |
| 31 | * The exact version of the equations can be found in the paper |
| 32 | * "Distance Approximations for Rasterizing Implicit Curves" by Gabriel Taubin |
| 33 | * |
| 34 | * In both versions we solve the quadratic for ||q-p||. |
| 35 | * Version 1: |
| 36 | * gFM is magnitude of first partials and gFM2 is magnitude of 2nd partials (as derived from paper) |
| 37 | * builder->fsCodeAppend("\t\tedgeAlpha = (sqrt(gFM*gFM+4.0*func*gF2M) - gFM)/(2.0*gF2M);\n"); |
| 38 | * Version 2: |
| 39 | * builder->fsCodeAppend("\t\tedgeAlpha = (gFM - sqrt(gFM*gFM-4.0*func*gF2M))/(2.0*gF2M);\n"); |
| 40 | * |
| 41 | * Also note that 2nd partials of k,l,m are zero |
| 42 | * |
| 43 | * When comparing the two second order approximations to the first order approximations, |
| 44 | * the following results were found. Version 1 tends to underestimate the distances, thus it |
| 45 | * basically increases all the error that we were already seeing in the first order |
| 46 | * approx. So this version is not the one to use. Version 2 has the opposite effect |
| 47 | * and tends to overestimate the distances. This is much closer to what we are |
| 48 | * looking for. It is able to render ellipses (even thin ones) without the need to chop. |
| 49 | * However, it can not handle thin hyperbolas well and thus would still rely on |
| 50 | * chopping to tighten the clipping. Another side effect of the overestimating is |
| 51 | * that the curves become much thinner and "ropey". If all that was ever rendered |
| 52 | * were "not too thin" curves and ellipses then 2nd order may have an advantage since |
| 53 | * only one geometry would need to be rendered. However no benches were run comparing |
| 54 | * chopped first order and non chopped 2nd order. |
| 55 | */ |
| 56 | class GrGLConicEffect; |
| 57 | |
joshualitt | 249af15 | 2014-09-15 11:41:13 -0700 | [diff] [blame] | 58 | class GrConicEffect : public GrGeometryProcessor { |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 59 | public: |
Brian Osman | cf86085 | 2018-10-31 14:04:39 -0400 | [diff] [blame] | 60 | static sk_sp<GrGeometryProcessor> Make(const SkPMColor4f& color, |
bungeman | 06ca8ec | 2016-06-09 08:01:03 -0700 | [diff] [blame] | 61 | const SkMatrix& viewMatrix, |
Ethan Nicholas | 0f3c732 | 2017-11-09 14:51:17 -0500 | [diff] [blame] | 62 | const GrClipEdgeType edgeType, |
bungeman | 06ca8ec | 2016-06-09 08:01:03 -0700 | [diff] [blame] | 63 | const GrCaps& caps, |
| 64 | const SkMatrix& localMatrix, |
| 65 | bool usesLocalCoords, |
| 66 | uint8_t coverage = 0xff) { |
commit-bot@chromium.org | cabf4b2 | 2014-03-05 18:27:43 +0000 | [diff] [blame] | 67 | switch (edgeType) { |
Ethan Nicholas | 1706f84 | 2017-11-10 11:58:19 -0500 | [diff] [blame] | 68 | case GrClipEdgeType::kFillAA: |
jvanverth | e9c0fc6 | 2015-04-29 11:18:05 -0700 | [diff] [blame] | 69 | if (!caps.shaderCaps()->shaderDerivativeSupport()) { |
halcanary | 96fcdcc | 2015-08-27 07:41:13 -0700 | [diff] [blame] | 70 | return nullptr; |
commit-bot@chromium.org | cabf4b2 | 2014-03-05 18:27:43 +0000 | [diff] [blame] | 71 | } |
bungeman | 06ca8ec | 2016-06-09 08:01:03 -0700 | [diff] [blame] | 72 | return sk_sp<GrGeometryProcessor>( |
Ethan Nicholas | 1706f84 | 2017-11-10 11:58:19 -0500 | [diff] [blame] | 73 | new GrConicEffect(color, viewMatrix, coverage, GrClipEdgeType::kFillAA, |
bungeman | 06ca8ec | 2016-06-09 08:01:03 -0700 | [diff] [blame] | 74 | localMatrix, usesLocalCoords)); |
Ethan Nicholas | 1706f84 | 2017-11-10 11:58:19 -0500 | [diff] [blame] | 75 | case GrClipEdgeType::kHairlineAA: |
jvanverth | e9c0fc6 | 2015-04-29 11:18:05 -0700 | [diff] [blame] | 76 | if (!caps.shaderCaps()->shaderDerivativeSupport()) { |
halcanary | 96fcdcc | 2015-08-27 07:41:13 -0700 | [diff] [blame] | 77 | return nullptr; |
commit-bot@chromium.org | cabf4b2 | 2014-03-05 18:27:43 +0000 | [diff] [blame] | 78 | } |
bungeman | 06ca8ec | 2016-06-09 08:01:03 -0700 | [diff] [blame] | 79 | return sk_sp<GrGeometryProcessor>( |
| 80 | new GrConicEffect(color, viewMatrix, coverage, |
Ethan Nicholas | 1706f84 | 2017-11-10 11:58:19 -0500 | [diff] [blame] | 81 | GrClipEdgeType::kHairlineAA, localMatrix, |
bungeman | 06ca8ec | 2016-06-09 08:01:03 -0700 | [diff] [blame] | 82 | usesLocalCoords)); |
Ethan Nicholas | 1706f84 | 2017-11-10 11:58:19 -0500 | [diff] [blame] | 83 | case GrClipEdgeType::kFillBW: |
bungeman | 06ca8ec | 2016-06-09 08:01:03 -0700 | [diff] [blame] | 84 | return sk_sp<GrGeometryProcessor>( |
Ethan Nicholas | 1706f84 | 2017-11-10 11:58:19 -0500 | [diff] [blame] | 85 | new GrConicEffect(color, viewMatrix, coverage, GrClipEdgeType::kFillBW, |
bungeman | 06ca8ec | 2016-06-09 08:01:03 -0700 | [diff] [blame] | 86 | localMatrix, usesLocalCoords)); |
commit-bot@chromium.org | cabf4b2 | 2014-03-05 18:27:43 +0000 | [diff] [blame] | 87 | default: |
halcanary | 96fcdcc | 2015-08-27 07:41:13 -0700 | [diff] [blame] | 88 | return nullptr; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 89 | } |
| 90 | } |
| 91 | |
Brian Salomon | d3b6597 | 2017-03-22 12:05:03 -0400 | [diff] [blame] | 92 | ~GrConicEffect() override; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 93 | |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 94 | const char* name() const override { return "Conic"; } |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 95 | |
Brian Salomon | 92be2f7 | 2018-06-19 14:33:47 -0400 | [diff] [blame] | 96 | inline const Attribute& inPosition() const { return kAttributes[0]; } |
| 97 | inline const Attribute& inConicCoeffs() const { return kAttributes[1]; } |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 98 | inline bool isAntiAliased() const { return GrProcessorEdgeTypeIsAA(fEdgeType); } |
| 99 | inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType); } |
Ethan Nicholas | 0f3c732 | 2017-11-09 14:51:17 -0500 | [diff] [blame] | 100 | inline GrClipEdgeType getEdgeType() const { return fEdgeType; } |
Brian Osman | cf86085 | 2018-10-31 14:04:39 -0400 | [diff] [blame] | 101 | const SkPMColor4f& color() const { return fColor; } |
joshualitt | e578a95 | 2015-05-14 10:09:13 -0700 | [diff] [blame] | 102 | const SkMatrix& viewMatrix() const { return fViewMatrix; } |
joshualitt | e3ababe | 2015-05-15 07:56:07 -0700 | [diff] [blame] | 103 | const SkMatrix& localMatrix() const { return fLocalMatrix; } |
joshualitt | b8c241a | 2015-05-19 08:23:30 -0700 | [diff] [blame] | 104 | bool usesLocalCoords() const { return fUsesLocalCoords; } |
| 105 | uint8_t coverageScale() const { return fCoverageScale; } |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 106 | |
Brian Salomon | 94efbf5 | 2016-11-29 13:43:05 -0500 | [diff] [blame] | 107 | void getGLSLProcessorKey(const GrShaderCaps& caps, GrProcessorKeyBuilder* b) const override; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 108 | |
Brian Salomon | 94efbf5 | 2016-11-29 13:43:05 -0500 | [diff] [blame] | 109 | GrGLSLPrimitiveProcessor* createGLSLInstance(const GrShaderCaps&) const override; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 110 | |
| 111 | private: |
Brian Osman | cf86085 | 2018-10-31 14:04:39 -0400 | [diff] [blame] | 112 | GrConicEffect(const SkPMColor4f&, const SkMatrix& viewMatrix, uint8_t coverage, GrClipEdgeType, |
joshualitt | b8c241a | 2015-05-19 08:23:30 -0700 | [diff] [blame] | 113 | const SkMatrix& localMatrix, bool usesLocalCoords); |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 114 | |
Brian Osman | cf86085 | 2018-10-31 14:04:39 -0400 | [diff] [blame] | 115 | SkPMColor4f fColor; |
joshualitt | e578a95 | 2015-05-14 10:09:13 -0700 | [diff] [blame] | 116 | SkMatrix fViewMatrix; |
joshualitt | e3ababe | 2015-05-15 07:56:07 -0700 | [diff] [blame] | 117 | SkMatrix fLocalMatrix; |
joshualitt | b8c241a | 2015-05-19 08:23:30 -0700 | [diff] [blame] | 118 | bool fUsesLocalCoords; |
joshualitt | 88c23fc | 2015-05-13 14:18:07 -0700 | [diff] [blame] | 119 | uint8_t fCoverageScale; |
Ethan Nicholas | 0f3c732 | 2017-11-09 14:51:17 -0500 | [diff] [blame] | 120 | GrClipEdgeType fEdgeType; |
Brian Osman | d4c2970 | 2018-09-14 16:16:55 -0400 | [diff] [blame] | 121 | static constexpr Attribute kAttributes[] = { |
| 122 | {"inPosition", kFloat2_GrVertexAttribType, kFloat2_GrSLType}, |
| 123 | {"inConicCoeffs", kFloat4_GrVertexAttribType, kHalf4_GrSLType} |
| 124 | }; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 125 | |
Brian Salomon | 0c26a9d | 2017-07-06 10:09:38 -0400 | [diff] [blame] | 126 | GR_DECLARE_GEOMETRY_PROCESSOR_TEST |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 127 | |
joshualitt | 249af15 | 2014-09-15 11:41:13 -0700 | [diff] [blame] | 128 | typedef GrGeometryProcessor INHERITED; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 129 | }; |
| 130 | |
| 131 | /////////////////////////////////////////////////////////////////////////////// |
| 132 | /** |
| 133 | * The output of this effect is a hairline edge for quadratics. |
| 134 | * Quadratic specified by 0=u^2-v canonical coords. u and v are the first |
| 135 | * two components of the vertex attribute. At the three control points that define |
| 136 | * the Quadratic, u, v have the values {0,0}, {1/2, 0}, and {1, 1} respectively. |
| 137 | * Coverage for AA is min(0, 1-distance). 3rd & 4th cimponent unused. |
| 138 | * Requires shader derivative instruction support. |
| 139 | */ |
| 140 | class GrGLQuadEffect; |
| 141 | |
joshualitt | 249af15 | 2014-09-15 11:41:13 -0700 | [diff] [blame] | 142 | class GrQuadEffect : public GrGeometryProcessor { |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 143 | public: |
Brian Osman | cf86085 | 2018-10-31 14:04:39 -0400 | [diff] [blame] | 144 | static sk_sp<GrGeometryProcessor> Make(const SkPMColor4f& color, |
bungeman | 06ca8ec | 2016-06-09 08:01:03 -0700 | [diff] [blame] | 145 | const SkMatrix& viewMatrix, |
Ethan Nicholas | 0f3c732 | 2017-11-09 14:51:17 -0500 | [diff] [blame] | 146 | const GrClipEdgeType edgeType, |
bungeman | 06ca8ec | 2016-06-09 08:01:03 -0700 | [diff] [blame] | 147 | const GrCaps& caps, |
| 148 | const SkMatrix& localMatrix, |
| 149 | bool usesLocalCoords, |
| 150 | uint8_t coverage = 0xff) { |
commit-bot@chromium.org | cabf4b2 | 2014-03-05 18:27:43 +0000 | [diff] [blame] | 151 | switch (edgeType) { |
Ethan Nicholas | 1706f84 | 2017-11-10 11:58:19 -0500 | [diff] [blame] | 152 | case GrClipEdgeType::kFillAA: |
jvanverth | e9c0fc6 | 2015-04-29 11:18:05 -0700 | [diff] [blame] | 153 | if (!caps.shaderCaps()->shaderDerivativeSupport()) { |
halcanary | 96fcdcc | 2015-08-27 07:41:13 -0700 | [diff] [blame] | 154 | return nullptr; |
commit-bot@chromium.org | cabf4b2 | 2014-03-05 18:27:43 +0000 | [diff] [blame] | 155 | } |
bungeman | 06ca8ec | 2016-06-09 08:01:03 -0700 | [diff] [blame] | 156 | return sk_sp<GrGeometryProcessor>( |
Ethan Nicholas | 1706f84 | 2017-11-10 11:58:19 -0500 | [diff] [blame] | 157 | new GrQuadEffect(color, viewMatrix, coverage, GrClipEdgeType::kFillAA, |
bungeman | 06ca8ec | 2016-06-09 08:01:03 -0700 | [diff] [blame] | 158 | localMatrix, usesLocalCoords)); |
Ethan Nicholas | 1706f84 | 2017-11-10 11:58:19 -0500 | [diff] [blame] | 159 | case GrClipEdgeType::kHairlineAA: |
jvanverth | e9c0fc6 | 2015-04-29 11:18:05 -0700 | [diff] [blame] | 160 | if (!caps.shaderCaps()->shaderDerivativeSupport()) { |
halcanary | 96fcdcc | 2015-08-27 07:41:13 -0700 | [diff] [blame] | 161 | return nullptr; |
commit-bot@chromium.org | cabf4b2 | 2014-03-05 18:27:43 +0000 | [diff] [blame] | 162 | } |
bungeman | 06ca8ec | 2016-06-09 08:01:03 -0700 | [diff] [blame] | 163 | return sk_sp<GrGeometryProcessor>( |
| 164 | new GrQuadEffect(color, viewMatrix, coverage, |
Ethan Nicholas | 1706f84 | 2017-11-10 11:58:19 -0500 | [diff] [blame] | 165 | GrClipEdgeType::kHairlineAA, localMatrix, |
bungeman | 06ca8ec | 2016-06-09 08:01:03 -0700 | [diff] [blame] | 166 | usesLocalCoords)); |
Ethan Nicholas | 1706f84 | 2017-11-10 11:58:19 -0500 | [diff] [blame] | 167 | case GrClipEdgeType::kFillBW: |
bungeman | 06ca8ec | 2016-06-09 08:01:03 -0700 | [diff] [blame] | 168 | return sk_sp<GrGeometryProcessor>( |
Ethan Nicholas | 1706f84 | 2017-11-10 11:58:19 -0500 | [diff] [blame] | 169 | new GrQuadEffect(color, viewMatrix, coverage, GrClipEdgeType::kFillBW, |
bungeman | 06ca8ec | 2016-06-09 08:01:03 -0700 | [diff] [blame] | 170 | localMatrix, usesLocalCoords)); |
commit-bot@chromium.org | cabf4b2 | 2014-03-05 18:27:43 +0000 | [diff] [blame] | 171 | default: |
halcanary | 96fcdcc | 2015-08-27 07:41:13 -0700 | [diff] [blame] | 172 | return nullptr; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 173 | } |
| 174 | } |
| 175 | |
Brian Salomon | d3b6597 | 2017-03-22 12:05:03 -0400 | [diff] [blame] | 176 | ~GrQuadEffect() override; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 177 | |
mtklein | 36352bf | 2015-03-25 18:17:31 -0700 | [diff] [blame] | 178 | const char* name() const override { return "Quad"; } |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 179 | |
Brian Salomon | 92be2f7 | 2018-06-19 14:33:47 -0400 | [diff] [blame] | 180 | inline const Attribute& inPosition() const { return kAttributes[0]; } |
| 181 | inline const Attribute& inHairQuadEdge() const { return kAttributes[1]; } |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 182 | inline bool isAntiAliased() const { return GrProcessorEdgeTypeIsAA(fEdgeType); } |
| 183 | inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType); } |
Ethan Nicholas | 0f3c732 | 2017-11-09 14:51:17 -0500 | [diff] [blame] | 184 | inline GrClipEdgeType getEdgeType() const { return fEdgeType; } |
Brian Osman | cf86085 | 2018-10-31 14:04:39 -0400 | [diff] [blame] | 185 | const SkPMColor4f& color() const { return fColor; } |
joshualitt | e578a95 | 2015-05-14 10:09:13 -0700 | [diff] [blame] | 186 | const SkMatrix& viewMatrix() const { return fViewMatrix; } |
joshualitt | e3ababe | 2015-05-15 07:56:07 -0700 | [diff] [blame] | 187 | const SkMatrix& localMatrix() const { return fLocalMatrix; } |
joshualitt | b8c241a | 2015-05-19 08:23:30 -0700 | [diff] [blame] | 188 | bool usesLocalCoords() const { return fUsesLocalCoords; } |
| 189 | uint8_t coverageScale() const { return fCoverageScale; } |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 190 | |
Brian Salomon | 94efbf5 | 2016-11-29 13:43:05 -0500 | [diff] [blame] | 191 | void getGLSLProcessorKey(const GrShaderCaps& caps, GrProcessorKeyBuilder* b) const override; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 192 | |
Brian Salomon | 94efbf5 | 2016-11-29 13:43:05 -0500 | [diff] [blame] | 193 | GrGLSLPrimitiveProcessor* createGLSLInstance(const GrShaderCaps&) const override; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 194 | |
| 195 | private: |
Brian Osman | cf86085 | 2018-10-31 14:04:39 -0400 | [diff] [blame] | 196 | GrQuadEffect(const SkPMColor4f&, const SkMatrix& viewMatrix, uint8_t coverage, GrClipEdgeType, |
joshualitt | b8c241a | 2015-05-19 08:23:30 -0700 | [diff] [blame] | 197 | const SkMatrix& localMatrix, bool usesLocalCoords); |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 198 | |
Brian Osman | cf86085 | 2018-10-31 14:04:39 -0400 | [diff] [blame] | 199 | SkPMColor4f fColor; |
Brian Salomon | 92be2f7 | 2018-06-19 14:33:47 -0400 | [diff] [blame] | 200 | SkMatrix fViewMatrix; |
| 201 | SkMatrix fLocalMatrix; |
| 202 | bool fUsesLocalCoords; |
| 203 | uint8_t fCoverageScale; |
Ethan Nicholas | 0f3c732 | 2017-11-09 14:51:17 -0500 | [diff] [blame] | 204 | GrClipEdgeType fEdgeType; |
Brian Salomon | 92be2f7 | 2018-06-19 14:33:47 -0400 | [diff] [blame] | 205 | |
Brian Osman | d4c2970 | 2018-09-14 16:16:55 -0400 | [diff] [blame] | 206 | static constexpr Attribute kAttributes[] = { |
| 207 | {"inPosition", kFloat2_GrVertexAttribType, kFloat2_GrSLType}, |
| 208 | {"inHairQuadEdge", kFloat4_GrVertexAttribType, kHalf4_GrSLType} |
| 209 | }; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 210 | |
Brian Salomon | 0c26a9d | 2017-07-06 10:09:38 -0400 | [diff] [blame] | 211 | GR_DECLARE_GEOMETRY_PROCESSOR_TEST |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 212 | |
joshualitt | 249af15 | 2014-09-15 11:41:13 -0700 | [diff] [blame] | 213 | typedef GrGeometryProcessor INHERITED; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 214 | }; |
| 215 | |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 216 | #endif |