jvanverth@google.com | d830d13 | 2013-11-11 20:54:09 +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 GrDistanceFieldTextureEffect_DEFINED |
| 9 | #define GrDistanceFieldTextureEffect_DEFINED |
| 10 | |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 11 | #include "GrProcessor.h" |
joshualitt | 249af15 | 2014-09-15 11:41:13 -0700 | [diff] [blame] | 12 | #include "GrGeometryProcessor.h" |
jvanverth@google.com | d830d13 | 2013-11-11 20:54:09 +0000 | [diff] [blame] | 13 | |
| 14 | class GrGLDistanceFieldTextureEffect; |
jvanverth | fa38a30 | 2014-10-06 05:59:05 -0700 | [diff] [blame] | 15 | class GrGLDistanceFieldNoGammaTextureEffect; |
commit-bot@chromium.org | 609ced4 | 2014-04-03 18:25:48 +0000 | [diff] [blame] | 16 | class GrGLDistanceFieldLCDTextureEffect; |
egdaniel | 605dd0f | 2014-11-12 08:35:25 -0800 | [diff] [blame] | 17 | class GrInvariantOutput; |
jvanverth@google.com | d830d13 | 2013-11-11 20:54:09 +0000 | [diff] [blame] | 18 | |
jvanverth | 78f0718 | 2014-07-30 06:17:59 -0700 | [diff] [blame] | 19 | enum GrDistanceFieldEffectFlags { |
| 20 | kSimilarity_DistanceFieldEffectFlag = 0x01, // ctm is similarity matrix |
| 21 | kRectToRect_DistanceFieldEffectFlag = 0x02, // ctm maps rects to rects |
| 22 | kUseLCD_DistanceFieldEffectFlag = 0x04, // use lcd text |
| 23 | kBGR_DistanceFieldEffectFlag = 0x08, // lcd display has bgr order |
| 24 | kPortrait_DistanceFieldEffectFlag = 0x10, // lcd display is in portrait mode (not used yet) |
joshualitt | 2dd1ae0 | 2014-12-03 06:24:10 -0800 | [diff] [blame] | 25 | kColorAttr_DistanceFieldEffectFlag = 0x20, // color vertex attribute |
jvanverth | 6d22eca | 2014-10-28 11:10:48 -0700 | [diff] [blame] | 26 | |
| 27 | kInvalid_DistanceFieldEffectFlag = 0x80, // invalid state (for initialization) |
jvanverth | 78f0718 | 2014-07-30 06:17:59 -0700 | [diff] [blame] | 28 | |
| 29 | kUniformScale_DistanceFieldEffectMask = kSimilarity_DistanceFieldEffectFlag | |
| 30 | kRectToRect_DistanceFieldEffectFlag, |
| 31 | // The subset of the flags relevant to GrDistanceFieldTextureEffect |
joshualitt | 2dd1ae0 | 2014-12-03 06:24:10 -0800 | [diff] [blame] | 32 | kNonLCD_DistanceFieldEffectMask = kSimilarity_DistanceFieldEffectFlag | |
| 33 | kColorAttr_DistanceFieldEffectFlag, |
jvanverth | 78f0718 | 2014-07-30 06:17:59 -0700 | [diff] [blame] | 34 | // The subset of the flags relevant to GrDistanceFieldLCDTextureEffect |
| 35 | kLCD_DistanceFieldEffectMask = kSimilarity_DistanceFieldEffectFlag | |
| 36 | kRectToRect_DistanceFieldEffectFlag | |
| 37 | kUseLCD_DistanceFieldEffectFlag | |
| 38 | kBGR_DistanceFieldEffectFlag, |
| 39 | }; |
| 40 | |
jvanverth@google.com | d830d13 | 2013-11-11 20:54:09 +0000 | [diff] [blame] | 41 | /** |
skia.committer@gmail.com | 11a253b | 2013-11-12 07:02:05 +0000 | [diff] [blame] | 42 | * The output color of this effect is a modulation of the input color and a sample from a |
jvanverth@google.com | d830d13 | 2013-11-11 20:54:09 +0000 | [diff] [blame] | 43 | * distance field texture (using a smoothed step function near 0.5). |
| 44 | * It allows explicit specification of the filtering and wrap modes (GrTextureParams). The input |
jvanverth | 2d2a68c | 2014-06-10 06:42:56 -0700 | [diff] [blame] | 45 | * coords are a custom attribute. Gamma correction is handled via a texture LUT. |
jvanverth@google.com | d830d13 | 2013-11-11 20:54:09 +0000 | [diff] [blame] | 46 | */ |
joshualitt | 249af15 | 2014-09-15 11:41:13 -0700 | [diff] [blame] | 47 | class GrDistanceFieldTextureEffect : public GrGeometryProcessor { |
jvanverth@google.com | d830d13 | 2013-11-11 20:54:09 +0000 | [diff] [blame] | 48 | public: |
jvanverth | 2d2a68c | 2014-06-10 06:42:56 -0700 | [diff] [blame] | 49 | #ifdef SK_GAMMA_APPLY_TO_A8 |
joshualitt | 2e3b3e3 | 2014-12-09 13:31:14 -0800 | [diff] [blame] | 50 | static GrGeometryProcessor* Create(GrColor color, GrTexture* tex, const GrTextureParams& params, |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 51 | GrTexture* gamma, const GrTextureParams& gammaParams, |
joshualitt | 56995b5 | 2014-12-11 15:44:02 -0800 | [diff] [blame] | 52 | float lum, uint32_t flags, bool opaqueVertexColors) { |
joshualitt | 2e3b3e3 | 2014-12-09 13:31:14 -0800 | [diff] [blame] | 53 | return SkNEW_ARGS(GrDistanceFieldTextureEffect, (color, tex, params, gamma, gammaParams, lum, |
joshualitt | 56995b5 | 2014-12-11 15:44:02 -0800 | [diff] [blame] | 54 | flags, opaqueVertexColors)); |
bsalomon | 55fad7a | 2014-07-08 07:34:20 -0700 | [diff] [blame] | 55 | } |
jvanverth | 2d2a68c | 2014-06-10 06:42:56 -0700 | [diff] [blame] | 56 | #else |
joshualitt | 2e3b3e3 | 2014-12-09 13:31:14 -0800 | [diff] [blame] | 57 | static GrGeometryProcessor* Create(GrColor color, GrTexture* tex, const GrTextureParams& params, |
joshualitt | 56995b5 | 2014-12-11 15:44:02 -0800 | [diff] [blame] | 58 | uint32_t flags, bool opaqueVertexColors) { |
| 59 | return SkNEW_ARGS(GrDistanceFieldTextureEffect, (color, tex, params, flags, |
| 60 | opaqueVertexColors)); |
jvanverth@google.com | d830d13 | 2013-11-11 20:54:09 +0000 | [diff] [blame] | 61 | } |
bsalomon | 55fad7a | 2014-07-08 07:34:20 -0700 | [diff] [blame] | 62 | #endif |
jvanverth@google.com | d830d13 | 2013-11-11 20:54:09 +0000 | [diff] [blame] | 63 | |
| 64 | virtual ~GrDistanceFieldTextureEffect() {} |
| 65 | |
joshualitt | eb2a676 | 2014-12-04 11:35:33 -0800 | [diff] [blame] | 66 | virtual const char* name() const SK_OVERRIDE { return "DistanceFieldTexture"; } |
jvanverth@google.com | d830d13 | 2013-11-11 20:54:09 +0000 | [diff] [blame] | 67 | |
joshualitt | 2dd1ae0 | 2014-12-03 06:24:10 -0800 | [diff] [blame] | 68 | const GrAttribute* inPosition() const { return fInPosition; } |
| 69 | const GrAttribute* inColor() const { return fInColor; } |
| 70 | const GrAttribute* inTextureCoords() const { return fInTextureCoords; } |
jvanverth | 2d2a68c | 2014-06-10 06:42:56 -0700 | [diff] [blame] | 71 | #ifdef SK_GAMMA_APPLY_TO_A8 |
| 72 | float getLuminance() const { return fLuminance; } |
| 73 | #endif |
jvanverth | 78f0718 | 2014-07-30 06:17:59 -0700 | [diff] [blame] | 74 | uint32_t getFlags() const { return fFlags; } |
jvanverth@google.com | d830d13 | 2013-11-11 20:54:09 +0000 | [diff] [blame] | 75 | |
joshualitt | eb2a676 | 2014-12-04 11:35:33 -0800 | [diff] [blame] | 76 | virtual void getGLProcessorKey(const GrBatchTracker& bt, |
| 77 | const GrGLCaps& caps, |
| 78 | GrProcessorKeyBuilder* b) const SK_OVERRIDE; |
jvanverth@google.com | d830d13 | 2013-11-11 20:54:09 +0000 | [diff] [blame] | 79 | |
joshualitt | eb2a676 | 2014-12-04 11:35:33 -0800 | [diff] [blame] | 80 | virtual GrGLGeometryProcessor* createGLInstance(const GrBatchTracker& bt) const SK_OVERRIDE; |
jvanverth@google.com | d830d13 | 2013-11-11 20:54:09 +0000 | [diff] [blame] | 81 | |
joshualitt | 9b98932 | 2014-12-15 14:16:27 -0800 | [diff] [blame] | 82 | void initBatchTracker(GrBatchTracker* bt, const InitBT& init) const SK_OVERRIDE; |
| 83 | |
| 84 | bool onCanMakeEqual(const GrBatchTracker&, const GrBatchTracker&) const SK_OVERRIDE; |
| 85 | |
jvanverth@google.com | d830d13 | 2013-11-11 20:54:09 +0000 | [diff] [blame] | 86 | private: |
joshualitt | 2e3b3e3 | 2014-12-09 13:31:14 -0800 | [diff] [blame] | 87 | GrDistanceFieldTextureEffect(GrColor, GrTexture* texture, const GrTextureParams& params, |
jvanverth | 2d2a68c | 2014-06-10 06:42:56 -0700 | [diff] [blame] | 88 | #ifdef SK_GAMMA_APPLY_TO_A8 |
| 89 | GrTexture* gamma, const GrTextureParams& gammaParams, float lum, |
| 90 | #endif |
joshualitt | 56995b5 | 2014-12-11 15:44:02 -0800 | [diff] [blame] | 91 | uint32_t flags, bool opaqueVertexColors); |
jvanverth@google.com | d830d13 | 2013-11-11 20:54:09 +0000 | [diff] [blame] | 92 | |
bsalomon | 0e08fc1 | 2014-10-15 08:19:04 -0700 | [diff] [blame] | 93 | virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; |
jvanverth@google.com | d830d13 | 2013-11-11 20:54:09 +0000 | [diff] [blame] | 94 | |
joshualitt | 56995b5 | 2014-12-11 15:44:02 -0800 | [diff] [blame] | 95 | virtual void onGetInvariantOutputCoverage(GrInitInvariantOutput*) const SK_OVERRIDE; |
egdaniel | 1a8ecdf | 2014-10-03 06:24:12 -0700 | [diff] [blame] | 96 | |
joshualitt | 249af15 | 2014-09-15 11:41:13 -0700 | [diff] [blame] | 97 | GrTextureAccess fTextureAccess; |
jvanverth | 2d2a68c | 2014-06-10 06:42:56 -0700 | [diff] [blame] | 98 | #ifdef SK_GAMMA_APPLY_TO_A8 |
joshualitt | 249af15 | 2014-09-15 11:41:13 -0700 | [diff] [blame] | 99 | GrTextureAccess fGammaTextureAccess; |
| 100 | float fLuminance; |
jvanverth | 2d2a68c | 2014-06-10 06:42:56 -0700 | [diff] [blame] | 101 | #endif |
joshualitt | 249af15 | 2014-09-15 11:41:13 -0700 | [diff] [blame] | 102 | uint32_t fFlags; |
joshualitt | 2dd1ae0 | 2014-12-03 06:24:10 -0800 | [diff] [blame] | 103 | const GrAttribute* fInPosition; |
| 104 | const GrAttribute* fInColor; |
| 105 | const GrAttribute* fInTextureCoords; |
jvanverth@google.com | d830d13 | 2013-11-11 20:54:09 +0000 | [diff] [blame] | 106 | |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 107 | GR_DECLARE_GEOMETRY_PROCESSOR_TEST; |
jvanverth@google.com | d830d13 | 2013-11-11 20:54:09 +0000 | [diff] [blame] | 108 | |
jvanverth | fa38a30 | 2014-10-06 05:59:05 -0700 | [diff] [blame] | 109 | typedef GrGeometryProcessor INHERITED; |
| 110 | }; |
| 111 | |
| 112 | |
| 113 | /** |
| 114 | * The output color of this effect is a modulation of the input color and a sample from a |
| 115 | * distance field texture (using a smoothed step function near 0.5). |
| 116 | * It allows explicit specification of the filtering and wrap modes (GrTextureParams). The input |
| 117 | * coords are a custom attribute. No gamma correct blending is applied. |
| 118 | */ |
| 119 | class GrDistanceFieldNoGammaTextureEffect : public GrGeometryProcessor { |
| 120 | public: |
joshualitt | 2e3b3e3 | 2014-12-09 13:31:14 -0800 | [diff] [blame] | 121 | static GrGeometryProcessor* Create(GrColor color, GrTexture* tex, const GrTextureParams& params, |
joshualitt | 56995b5 | 2014-12-11 15:44:02 -0800 | [diff] [blame] | 122 | uint32_t flags, bool opaqueVertexColors) { |
| 123 | return SkNEW_ARGS(GrDistanceFieldNoGammaTextureEffect, (color, tex, params, flags, |
| 124 | opaqueVertexColors)); |
jvanverth | fa38a30 | 2014-10-06 05:59:05 -0700 | [diff] [blame] | 125 | } |
| 126 | |
| 127 | virtual ~GrDistanceFieldNoGammaTextureEffect() {} |
| 128 | |
joshualitt | eb2a676 | 2014-12-04 11:35:33 -0800 | [diff] [blame] | 129 | virtual const char* name() const SK_OVERRIDE { return "DistanceFieldTexture"; } |
jvanverth | fa38a30 | 2014-10-06 05:59:05 -0700 | [diff] [blame] | 130 | |
joshualitt | 2dd1ae0 | 2014-12-03 06:24:10 -0800 | [diff] [blame] | 131 | const GrAttribute* inPosition() const { return fInPosition; } |
| 132 | const GrAttribute* inColor() const { return fInColor; } |
| 133 | const GrAttribute* inTextureCoords() const { return fInTextureCoords; } |
jvanverth | fa38a30 | 2014-10-06 05:59:05 -0700 | [diff] [blame] | 134 | uint32_t getFlags() const { return fFlags; } |
| 135 | |
joshualitt | eb2a676 | 2014-12-04 11:35:33 -0800 | [diff] [blame] | 136 | virtual void getGLProcessorKey(const GrBatchTracker& bt, |
| 137 | const GrGLCaps& caps, |
| 138 | GrProcessorKeyBuilder* b) const SK_OVERRIDE; |
jvanverth | fa38a30 | 2014-10-06 05:59:05 -0700 | [diff] [blame] | 139 | |
joshualitt | eb2a676 | 2014-12-04 11:35:33 -0800 | [diff] [blame] | 140 | virtual GrGLGeometryProcessor* createGLInstance(const GrBatchTracker& bt) const SK_OVERRIDE; |
jvanverth | fa38a30 | 2014-10-06 05:59:05 -0700 | [diff] [blame] | 141 | |
joshualitt | 9b98932 | 2014-12-15 14:16:27 -0800 | [diff] [blame] | 142 | void initBatchTracker(GrBatchTracker* bt, const InitBT& init) const SK_OVERRIDE; |
| 143 | |
| 144 | bool onCanMakeEqual(const GrBatchTracker&, const GrBatchTracker&) const SK_OVERRIDE; |
| 145 | |
jvanverth | fa38a30 | 2014-10-06 05:59:05 -0700 | [diff] [blame] | 146 | private: |
joshualitt | 2e3b3e3 | 2014-12-09 13:31:14 -0800 | [diff] [blame] | 147 | GrDistanceFieldNoGammaTextureEffect(GrColor, GrTexture* texture, const GrTextureParams& params, |
joshualitt | 56995b5 | 2014-12-11 15:44:02 -0800 | [diff] [blame] | 148 | uint32_t flags, bool opaqueVertexColors); |
jvanverth | fa38a30 | 2014-10-06 05:59:05 -0700 | [diff] [blame] | 149 | |
bsalomon | 0e08fc1 | 2014-10-15 08:19:04 -0700 | [diff] [blame] | 150 | virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; |
jvanverth | fa38a30 | 2014-10-06 05:59:05 -0700 | [diff] [blame] | 151 | |
joshualitt | 56995b5 | 2014-12-11 15:44:02 -0800 | [diff] [blame] | 152 | virtual void onGetInvariantOutputCoverage(GrInitInvariantOutput*) const SK_OVERRIDE; |
jvanverth | fa38a30 | 2014-10-06 05:59:05 -0700 | [diff] [blame] | 153 | |
| 154 | GrTextureAccess fTextureAccess; |
| 155 | uint32_t fFlags; |
joshualitt | 2dd1ae0 | 2014-12-03 06:24:10 -0800 | [diff] [blame] | 156 | const GrAttribute* fInPosition; |
| 157 | const GrAttribute* fInColor; |
| 158 | const GrAttribute* fInTextureCoords; |
jvanverth | fa38a30 | 2014-10-06 05:59:05 -0700 | [diff] [blame] | 159 | |
| 160 | GR_DECLARE_GEOMETRY_PROCESSOR_TEST; |
| 161 | |
| 162 | typedef GrGeometryProcessor INHERITED; |
jvanverth@google.com | d830d13 | 2013-11-11 20:54:09 +0000 | [diff] [blame] | 163 | }; |
| 164 | |
commit-bot@chromium.org | 609ced4 | 2014-04-03 18:25:48 +0000 | [diff] [blame] | 165 | /** |
| 166 | * The output color of this effect is a modulation of the input color and samples from a |
| 167 | * distance field texture (using a smoothed step function near 0.5), adjusted for LCD displays. |
| 168 | * It allows explicit specification of the filtering and wrap modes (GrTextureParams). The input |
jvanverth | 2d2a68c | 2014-06-10 06:42:56 -0700 | [diff] [blame] | 169 | * coords are a custom attribute. Gamma correction is handled via a texture LUT. |
commit-bot@chromium.org | 609ced4 | 2014-04-03 18:25:48 +0000 | [diff] [blame] | 170 | */ |
joshualitt | 249af15 | 2014-09-15 11:41:13 -0700 | [diff] [blame] | 171 | class GrDistanceFieldLCDTextureEffect : public GrGeometryProcessor { |
commit-bot@chromium.org | 609ced4 | 2014-04-03 18:25:48 +0000 | [diff] [blame] | 172 | public: |
joshualitt | 2e3b3e3 | 2014-12-09 13:31:14 -0800 | [diff] [blame] | 173 | static GrGeometryProcessor* Create(GrColor color, GrTexture* tex, const GrTextureParams& params, |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 174 | GrTexture* gamma, const GrTextureParams& gammaParams, |
| 175 | SkColor textColor, uint32_t flags) { |
bsalomon | 55fad7a | 2014-07-08 07:34:20 -0700 | [diff] [blame] | 176 | return SkNEW_ARGS(GrDistanceFieldLCDTextureEffect, |
joshualitt | 2e3b3e3 | 2014-12-09 13:31:14 -0800 | [diff] [blame] | 177 | (color, tex, params, gamma, gammaParams, textColor, flags)); |
commit-bot@chromium.org | 609ced4 | 2014-04-03 18:25:48 +0000 | [diff] [blame] | 178 | } |
| 179 | |
| 180 | virtual ~GrDistanceFieldLCDTextureEffect() {} |
| 181 | |
joshualitt | eb2a676 | 2014-12-04 11:35:33 -0800 | [diff] [blame] | 182 | virtual const char* name() const SK_OVERRIDE { return "DistanceFieldLCDTexture"; } |
commit-bot@chromium.org | 609ced4 | 2014-04-03 18:25:48 +0000 | [diff] [blame] | 183 | |
joshualitt | 2dd1ae0 | 2014-12-03 06:24:10 -0800 | [diff] [blame] | 184 | const GrAttribute* inPosition() const { return fInPosition; } |
| 185 | const GrAttribute* inTextureCoords() const { return fInTextureCoords; } |
jvanverth | 2d2a68c | 2014-06-10 06:42:56 -0700 | [diff] [blame] | 186 | GrColor getTextColor() const { return fTextColor; } |
jvanverth | 78f0718 | 2014-07-30 06:17:59 -0700 | [diff] [blame] | 187 | uint32_t getFlags() const { return fFlags; } |
commit-bot@chromium.org | 609ced4 | 2014-04-03 18:25:48 +0000 | [diff] [blame] | 188 | |
joshualitt | eb2a676 | 2014-12-04 11:35:33 -0800 | [diff] [blame] | 189 | virtual void getGLProcessorKey(const GrBatchTracker& bt, |
| 190 | const GrGLCaps& caps, |
| 191 | GrProcessorKeyBuilder* b) const SK_OVERRIDE; |
commit-bot@chromium.org | 609ced4 | 2014-04-03 18:25:48 +0000 | [diff] [blame] | 192 | |
joshualitt | eb2a676 | 2014-12-04 11:35:33 -0800 | [diff] [blame] | 193 | virtual GrGLGeometryProcessor* createGLInstance(const GrBatchTracker& bt) const SK_OVERRIDE; |
commit-bot@chromium.org | 609ced4 | 2014-04-03 18:25:48 +0000 | [diff] [blame] | 194 | |
joshualitt | 9b98932 | 2014-12-15 14:16:27 -0800 | [diff] [blame] | 195 | void initBatchTracker(GrBatchTracker* bt, const InitBT& init) const SK_OVERRIDE; |
| 196 | |
| 197 | bool onCanMakeEqual(const GrBatchTracker&, const GrBatchTracker&) const SK_OVERRIDE; |
| 198 | |
commit-bot@chromium.org | 609ced4 | 2014-04-03 18:25:48 +0000 | [diff] [blame] | 199 | private: |
joshualitt | 2e3b3e3 | 2014-12-09 13:31:14 -0800 | [diff] [blame] | 200 | GrDistanceFieldLCDTextureEffect(GrColor, GrTexture* texture, const GrTextureParams& params, |
jvanverth | 2d2a68c | 2014-06-10 06:42:56 -0700 | [diff] [blame] | 201 | GrTexture* gamma, const GrTextureParams& gammaParams, |
| 202 | SkColor textColor, |
jvanverth | 78f0718 | 2014-07-30 06:17:59 -0700 | [diff] [blame] | 203 | uint32_t flags); |
commit-bot@chromium.org | 609ced4 | 2014-04-03 18:25:48 +0000 | [diff] [blame] | 204 | |
bsalomon | 0e08fc1 | 2014-10-15 08:19:04 -0700 | [diff] [blame] | 205 | virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; |
commit-bot@chromium.org | 609ced4 | 2014-04-03 18:25:48 +0000 | [diff] [blame] | 206 | |
joshualitt | 56995b5 | 2014-12-11 15:44:02 -0800 | [diff] [blame] | 207 | virtual void onGetInvariantOutputCoverage(GrInitInvariantOutput*) const SK_OVERRIDE; |
egdaniel | 1a8ecdf | 2014-10-03 06:24:12 -0700 | [diff] [blame] | 208 | |
joshualitt | 249af15 | 2014-09-15 11:41:13 -0700 | [diff] [blame] | 209 | GrTextureAccess fTextureAccess; |
| 210 | GrTextureAccess fGammaTextureAccess; |
| 211 | GrColor fTextColor; |
| 212 | uint32_t fFlags; |
joshualitt | 2dd1ae0 | 2014-12-03 06:24:10 -0800 | [diff] [blame] | 213 | const GrAttribute* fInPosition; |
| 214 | const GrAttribute* fInTextureCoords; |
commit-bot@chromium.org | 609ced4 | 2014-04-03 18:25:48 +0000 | [diff] [blame] | 215 | |
joshualitt | b0a8a37 | 2014-09-23 09:50:21 -0700 | [diff] [blame] | 216 | GR_DECLARE_GEOMETRY_PROCESSOR_TEST; |
commit-bot@chromium.org | 609ced4 | 2014-04-03 18:25:48 +0000 | [diff] [blame] | 217 | |
jvanverth | fa38a30 | 2014-10-06 05:59:05 -0700 | [diff] [blame] | 218 | typedef GrGeometryProcessor INHERITED; |
commit-bot@chromium.org | 609ced4 | 2014-04-03 18:25:48 +0000 | [diff] [blame] | 219 | }; |
| 220 | |
jvanverth@google.com | d830d13 | 2013-11-11 20:54:09 +0000 | [diff] [blame] | 221 | #endif |