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 | |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 11 | #include "GrDrawTargetCaps.h" |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 12 | #include "GrProcessor.h" |
joshualitt | 249af15 | 2014-09-15 11:41:13 -0700 | [diff] [blame] | 13 | #include "GrGeometryProcessor.h" |
commit-bot@chromium.org | cabf4b2 | 2014-03-05 18:27:43 +0000 | [diff] [blame] | 14 | #include "GrTypesPriv.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: |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 60 | static GrGeometryProcessor* Create(const GrPrimitiveEdgeType edgeType, |
| 61 | const GrDrawTargetCaps& caps) { |
| 62 | GR_CREATE_STATIC_GEOMETRY_PROCESSOR(gConicFillAA, GrConicEffect, |
| 63 | (kFillAA_GrProcessorEdgeType)); |
| 64 | GR_CREATE_STATIC_GEOMETRY_PROCESSOR(gConicHairAA, GrConicEffect, |
| 65 | (kHairlineAA_GrProcessorEdgeType)); |
| 66 | GR_CREATE_STATIC_GEOMETRY_PROCESSOR(gConicFillBW, GrConicEffect, |
| 67 | (kFillBW_GrProcessorEdgeType)); |
commit-bot@chromium.org | cabf4b2 | 2014-03-05 18:27:43 +0000 | [diff] [blame] | 68 | switch (edgeType) { |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 69 | case kFillAA_GrProcessorEdgeType: |
commit-bot@chromium.org | cabf4b2 | 2014-03-05 18:27:43 +0000 | [diff] [blame] | 70 | if (!caps.shaderDerivativeSupport()) { |
| 71 | return NULL; |
| 72 | } |
| 73 | gConicFillAA->ref(); |
| 74 | return gConicFillAA; |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 75 | case kHairlineAA_GrProcessorEdgeType: |
commit-bot@chromium.org | cabf4b2 | 2014-03-05 18:27:43 +0000 | [diff] [blame] | 76 | if (!caps.shaderDerivativeSupport()) { |
| 77 | return NULL; |
| 78 | } |
| 79 | gConicHairAA->ref(); |
| 80 | return gConicHairAA; |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 81 | case kFillBW_GrProcessorEdgeType: |
commit-bot@chromium.org | cabf4b2 | 2014-03-05 18:27:43 +0000 | [diff] [blame] | 82 | gConicFillBW->ref(); |
| 83 | return gConicFillBW; |
| 84 | default: |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 85 | return NULL; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 86 | } |
| 87 | } |
| 88 | |
| 89 | virtual ~GrConicEffect(); |
| 90 | |
| 91 | static const char* Name() { return "Conic"; } |
| 92 | |
joshualitt | 249af15 | 2014-09-15 11:41:13 -0700 | [diff] [blame] | 93 | inline const GrShaderVar& inConicCoeffs() const { return fInConicCoeffs; } |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 94 | inline bool isAntiAliased() const { return GrProcessorEdgeTypeIsAA(fEdgeType); } |
| 95 | inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType); } |
| 96 | inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; } |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 97 | |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 98 | typedef GrGLConicEffect GLProcessor; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 99 | |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 100 | virtual const GrBackendGeometryProcessorFactory& getFactory() const SK_OVERRIDE; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 101 | |
| 102 | private: |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 103 | GrConicEffect(GrPrimitiveEdgeType); |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 104 | |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 105 | virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 106 | |
egdaniel | 1a8ecdf | 2014-10-03 06:24:12 -0700 | [diff] [blame^] | 107 | virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE { |
| 108 | inout->fValidFlags = 0; |
| 109 | inout->fIsSingleComponent = false; |
| 110 | } |
| 111 | |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 112 | GrPrimitiveEdgeType fEdgeType; |
joshualitt | 249af15 | 2014-09-15 11:41:13 -0700 | [diff] [blame] | 113 | const GrShaderVar& fInConicCoeffs; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 114 | |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 115 | GR_DECLARE_GEOMETRY_PROCESSOR_TEST; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 116 | |
joshualitt | 249af15 | 2014-09-15 11:41:13 -0700 | [diff] [blame] | 117 | typedef GrGeometryProcessor INHERITED; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 118 | }; |
| 119 | |
| 120 | /////////////////////////////////////////////////////////////////////////////// |
| 121 | /** |
| 122 | * The output of this effect is a hairline edge for quadratics. |
| 123 | * Quadratic specified by 0=u^2-v canonical coords. u and v are the first |
| 124 | * two components of the vertex attribute. At the three control points that define |
| 125 | * the Quadratic, u, v have the values {0,0}, {1/2, 0}, and {1, 1} respectively. |
| 126 | * Coverage for AA is min(0, 1-distance). 3rd & 4th cimponent unused. |
| 127 | * Requires shader derivative instruction support. |
| 128 | */ |
| 129 | class GrGLQuadEffect; |
| 130 | |
joshualitt | 249af15 | 2014-09-15 11:41:13 -0700 | [diff] [blame] | 131 | class GrQuadEffect : public GrGeometryProcessor { |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 132 | public: |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 133 | static GrGeometryProcessor* Create(const GrPrimitiveEdgeType edgeType, |
| 134 | const GrDrawTargetCaps& caps) { |
| 135 | GR_CREATE_STATIC_GEOMETRY_PROCESSOR(gQuadFillAA, GrQuadEffect, |
| 136 | (kFillAA_GrProcessorEdgeType)); |
| 137 | GR_CREATE_STATIC_GEOMETRY_PROCESSOR(gQuadHairAA, GrQuadEffect, |
| 138 | (kHairlineAA_GrProcessorEdgeType)); |
| 139 | GR_CREATE_STATIC_GEOMETRY_PROCESSOR(gQuadFillBW, GrQuadEffect, |
| 140 | (kFillBW_GrProcessorEdgeType)); |
commit-bot@chromium.org | cabf4b2 | 2014-03-05 18:27:43 +0000 | [diff] [blame] | 141 | switch (edgeType) { |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 142 | case kFillAA_GrProcessorEdgeType: |
commit-bot@chromium.org | cabf4b2 | 2014-03-05 18:27:43 +0000 | [diff] [blame] | 143 | if (!caps.shaderDerivativeSupport()) { |
| 144 | return NULL; |
| 145 | } |
| 146 | gQuadFillAA->ref(); |
| 147 | return gQuadFillAA; |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 148 | case kHairlineAA_GrProcessorEdgeType: |
commit-bot@chromium.org | cabf4b2 | 2014-03-05 18:27:43 +0000 | [diff] [blame] | 149 | if (!caps.shaderDerivativeSupport()) { |
| 150 | return NULL; |
| 151 | } |
| 152 | gQuadHairAA->ref(); |
| 153 | return gQuadHairAA; |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 154 | case kFillBW_GrProcessorEdgeType: |
commit-bot@chromium.org | cabf4b2 | 2014-03-05 18:27:43 +0000 | [diff] [blame] | 155 | gQuadFillBW->ref(); |
| 156 | return gQuadFillBW; |
| 157 | default: |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 158 | return NULL; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 159 | } |
| 160 | } |
| 161 | |
| 162 | virtual ~GrQuadEffect(); |
| 163 | |
| 164 | static const char* Name() { return "Quad"; } |
| 165 | |
joshualitt | 249af15 | 2014-09-15 11:41:13 -0700 | [diff] [blame] | 166 | inline const GrShaderVar& inHairQuadEdge() const { return fInHairQuadEdge; } |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 167 | inline bool isAntiAliased() const { return GrProcessorEdgeTypeIsAA(fEdgeType); } |
| 168 | inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType); } |
| 169 | inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; } |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 170 | |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 171 | typedef GrGLQuadEffect GLProcessor; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 172 | |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 173 | virtual const GrBackendGeometryProcessorFactory& getFactory() const SK_OVERRIDE; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 174 | |
| 175 | private: |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 176 | GrQuadEffect(GrPrimitiveEdgeType); |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 177 | |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 178 | virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 179 | |
egdaniel | 1a8ecdf | 2014-10-03 06:24:12 -0700 | [diff] [blame^] | 180 | virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE { |
| 181 | inout->fValidFlags = 0; |
| 182 | inout->fIsSingleComponent = false; |
| 183 | } |
| 184 | |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 185 | GrPrimitiveEdgeType fEdgeType; |
joshualitt | 249af15 | 2014-09-15 11:41:13 -0700 | [diff] [blame] | 186 | const GrShaderVar& fInHairQuadEdge; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 187 | |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 188 | GR_DECLARE_GEOMETRY_PROCESSOR_TEST; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 189 | |
joshualitt | 249af15 | 2014-09-15 11:41:13 -0700 | [diff] [blame] | 190 | typedef GrGeometryProcessor INHERITED; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 191 | }; |
| 192 | |
| 193 | ////////////////////////////////////////////////////////////////////////////// |
| 194 | /** |
| 195 | * Shader is based off of "Resolution Independent Curve Rendering using |
| 196 | * Programmable Graphics Hardware" by Loop and Blinn. |
| 197 | * The output of this effect is a hairline edge for non rational cubics. |
| 198 | * Cubics are specified by implicit equation K^3 - LM. |
| 199 | * K, L, and M, are the first three values of the vertex attribute, |
| 200 | * the fourth value is not used. Distance is calculated using a |
| 201 | * first order approximation from the taylor series. |
| 202 | * Coverage for AA is max(0, 1-distance). |
| 203 | */ |
| 204 | class GrGLCubicEffect; |
| 205 | |
joshualitt | 249af15 | 2014-09-15 11:41:13 -0700 | [diff] [blame] | 206 | class GrCubicEffect : public GrGeometryProcessor { |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 207 | public: |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 208 | static GrGeometryProcessor* Create(const GrPrimitiveEdgeType edgeType, |
| 209 | const GrDrawTargetCaps& caps) { |
| 210 | GR_CREATE_STATIC_GEOMETRY_PROCESSOR(gCubicFillAA, GrCubicEffect, |
| 211 | (kFillAA_GrProcessorEdgeType)); |
| 212 | GR_CREATE_STATIC_GEOMETRY_PROCESSOR(gCubicHairAA, GrCubicEffect, |
| 213 | (kHairlineAA_GrProcessorEdgeType)); |
| 214 | GR_CREATE_STATIC_GEOMETRY_PROCESSOR(gCubicFillBW, GrCubicEffect, |
| 215 | (kFillBW_GrProcessorEdgeType)); |
commit-bot@chromium.org | cabf4b2 | 2014-03-05 18:27:43 +0000 | [diff] [blame] | 216 | switch (edgeType) { |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 217 | case kFillAA_GrProcessorEdgeType: |
commit-bot@chromium.org | cabf4b2 | 2014-03-05 18:27:43 +0000 | [diff] [blame] | 218 | if (!caps.shaderDerivativeSupport()) { |
| 219 | return NULL; |
| 220 | } |
| 221 | gCubicFillAA->ref(); |
| 222 | return gCubicFillAA; |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 223 | case kHairlineAA_GrProcessorEdgeType: |
commit-bot@chromium.org | cabf4b2 | 2014-03-05 18:27:43 +0000 | [diff] [blame] | 224 | if (!caps.shaderDerivativeSupport()) { |
| 225 | return NULL; |
| 226 | } |
| 227 | gCubicHairAA->ref(); |
| 228 | return gCubicHairAA; |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 229 | case kFillBW_GrProcessorEdgeType: |
commit-bot@chromium.org | cabf4b2 | 2014-03-05 18:27:43 +0000 | [diff] [blame] | 230 | gCubicFillBW->ref(); |
| 231 | return gCubicFillBW; |
| 232 | default: |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 233 | return NULL; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 234 | } |
| 235 | } |
| 236 | |
| 237 | virtual ~GrCubicEffect(); |
| 238 | |
| 239 | static const char* Name() { return "Cubic"; } |
| 240 | |
joshualitt | 249af15 | 2014-09-15 11:41:13 -0700 | [diff] [blame] | 241 | inline const GrShaderVar& inCubicCoeffs() const { return fInCubicCoeffs; } |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 242 | inline bool isAntiAliased() const { return GrProcessorEdgeTypeIsAA(fEdgeType); } |
| 243 | inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType); } |
| 244 | inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; } |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 245 | |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 246 | typedef GrGLCubicEffect GLProcessor; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 247 | |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 248 | virtual const GrBackendGeometryProcessorFactory& getFactory() const SK_OVERRIDE; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 249 | |
| 250 | private: |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 251 | GrCubicEffect(GrPrimitiveEdgeType); |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 252 | |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 253 | virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 254 | |
egdaniel | 1a8ecdf | 2014-10-03 06:24:12 -0700 | [diff] [blame^] | 255 | virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE { |
| 256 | inout->fValidFlags = 0; |
| 257 | inout->fIsSingleComponent = false; |
| 258 | } |
| 259 | |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 260 | GrPrimitiveEdgeType fEdgeType; |
joshualitt | 249af15 | 2014-09-15 11:41:13 -0700 | [diff] [blame] | 261 | const GrShaderVar& fInCubicCoeffs; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 262 | |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 263 | GR_DECLARE_GEOMETRY_PROCESSOR_TEST; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 264 | |
joshualitt | 249af15 | 2014-09-15 11:41:13 -0700 | [diff] [blame] | 265 | typedef GrGeometryProcessor INHERITED; |
commit-bot@chromium.org | 07e1c3f | 2013-08-22 20:41:15 +0000 | [diff] [blame] | 266 | }; |
| 267 | |
| 268 | #endif |