rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2012 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 SkGradientShaderPriv_DEFINED |
| 9 | #define SkGradientShaderPriv_DEFINED |
| 10 | |
| 11 | #include "SkGradientShader.h" |
| 12 | #include "SkClampRange.h" |
| 13 | #include "SkColorPriv.h" |
djsollen@google.com | c73dd5c | 2012-08-07 15:54:32 +0000 | [diff] [blame] | 14 | #include "SkFlattenableBuffers.h" |
rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 15 | #include "SkMallocPixelRef.h" |
| 16 | #include "SkUnitMapper.h" |
| 17 | #include "SkUtils.h" |
| 18 | #include "SkTemplates.h" |
| 19 | #include "SkBitmapCache.h" |
| 20 | #include "SkShader.h" |
rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 21 | |
humper@google.com | 05af1af | 2013-01-07 16:47:43 +0000 | [diff] [blame] | 22 | static inline void sk_memset32_dither(uint32_t dst[], uint32_t v0, uint32_t v1, |
rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 23 | int count) { |
| 24 | if (count > 0) { |
| 25 | if (v0 == v1) { |
| 26 | sk_memset32(dst, v0, count); |
| 27 | } else { |
| 28 | int pairs = count >> 1; |
| 29 | for (int i = 0; i < pairs; i++) { |
| 30 | *dst++ = v0; |
| 31 | *dst++ = v1; |
| 32 | } |
| 33 | if (count & 1) { |
| 34 | *dst = v0; |
| 35 | } |
| 36 | } |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | // Clamp |
| 41 | |
humper@google.com | 05af1af | 2013-01-07 16:47:43 +0000 | [diff] [blame] | 42 | static inline SkFixed clamp_tileproc(SkFixed x) { |
rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 43 | return SkClampMax(x, 0xFFFF); |
| 44 | } |
| 45 | |
| 46 | // Repeat |
| 47 | |
humper@google.com | 05af1af | 2013-01-07 16:47:43 +0000 | [diff] [blame] | 48 | static inline SkFixed repeat_tileproc(SkFixed x) { |
rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 49 | return x & 0xFFFF; |
| 50 | } |
| 51 | |
| 52 | // Mirror |
| 53 | |
| 54 | // Visual Studio 2010 (MSC_VER=1600) optimizes bit-shift code incorrectly. |
| 55 | // See http://code.google.com/p/skia/issues/detail?id=472 |
| 56 | #if defined(_MSC_VER) && (_MSC_VER >= 1600) |
| 57 | #pragma optimize("", off) |
| 58 | #endif |
| 59 | |
| 60 | static inline SkFixed mirror_tileproc(SkFixed x) { |
| 61 | int s = x << 15 >> 31; |
| 62 | return (x ^ s) & 0xFFFF; |
| 63 | } |
| 64 | |
| 65 | #if defined(_MSC_VER) && (_MSC_VER >= 1600) |
| 66 | #pragma optimize("", on) |
| 67 | #endif |
| 68 | |
| 69 | /////////////////////////////////////////////////////////////////////////////// |
| 70 | |
| 71 | typedef SkFixed (*TileProc)(SkFixed); |
| 72 | |
| 73 | /////////////////////////////////////////////////////////////////////////////// |
| 74 | |
| 75 | static const TileProc gTileProcs[] = { |
| 76 | clamp_tileproc, |
| 77 | repeat_tileproc, |
| 78 | mirror_tileproc |
| 79 | }; |
| 80 | |
| 81 | /////////////////////////////////////////////////////////////////////////////// |
| 82 | |
| 83 | class SkGradientShaderBase : public SkShader { |
| 84 | public: |
| 85 | SkGradientShaderBase(const SkColor colors[], const SkScalar pos[], |
| 86 | int colorCount, SkShader::TileMode mode, SkUnitMapper* mapper); |
| 87 | virtual ~SkGradientShaderBase(); |
| 88 | |
rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 89 | virtual bool setContext(const SkBitmap&, const SkPaint&, const SkMatrix&) SK_OVERRIDE; |
| 90 | virtual uint32_t getFlags() SK_OVERRIDE { return fFlags; } |
| 91 | virtual bool isOpaque() const SK_OVERRIDE; |
| 92 | |
| 93 | void getGradientTableBitmap(SkBitmap*) const; |
| 94 | |
| 95 | enum { |
| 96 | /// Seems like enough for visual accuracy. TODO: if pos[] deserves |
| 97 | /// it, use a larger cache. |
| 98 | kCache16Bits = 8, |
reed@google.com | 3c2102c | 2013-02-01 12:59:40 +0000 | [diff] [blame] | 99 | kCache16Count = (1 << kCache16Bits), |
rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 100 | kCache16Shift = 16 - kCache16Bits, |
| 101 | kSqrt16Shift = 8 - kCache16Bits, |
| 102 | |
| 103 | /// Seems like enough for visual accuracy. TODO: if pos[] deserves |
| 104 | /// it, use a larger cache. |
| 105 | kCache32Bits = 8, |
reed@google.com | 6004029 | 2013-02-04 18:21:23 +0000 | [diff] [blame] | 106 | kCache32Count = (1 << kCache32Bits), |
rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 107 | kCache32Shift = 16 - kCache32Bits, |
| 108 | kSqrt32Shift = 8 - kCache32Bits, |
| 109 | |
| 110 | /// This value is used to *read* the dither cache; it may be 0 |
| 111 | /// if dithering is disabled. |
rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 112 | kDitherStride32 = kCache32Count, |
rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 113 | kDitherStride16 = kCache16Count, |
rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 114 | }; |
| 115 | |
| 116 | |
| 117 | protected: |
| 118 | SkGradientShaderBase(SkFlattenableReadBuffer& ); |
| 119 | virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE; |
robertphillips@google.com | 76f9e93 | 2013-01-15 20:17:47 +0000 | [diff] [blame] | 120 | SK_DEVELOPER_TO_STRING() |
rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 121 | |
| 122 | SkUnitMapper* fMapper; |
| 123 | SkMatrix fPtsToUnit; // set by subclass |
| 124 | SkMatrix fDstToIndex; |
| 125 | SkMatrix::MapXYProc fDstToIndexProc; |
| 126 | TileMode fTileMode; |
| 127 | TileProc fTileProc; |
| 128 | int fColorCount; |
| 129 | uint8_t fDstToIndexClass; |
| 130 | uint8_t fFlags; |
| 131 | |
| 132 | struct Rec { |
| 133 | SkFixed fPos; // 0...1 |
| 134 | uint32_t fScale; // (1 << 24) / range |
| 135 | }; |
| 136 | Rec* fRecs; |
| 137 | |
| 138 | const uint16_t* getCache16() const; |
| 139 | const SkPMColor* getCache32() const; |
| 140 | |
| 141 | void commonAsAGradient(GradientInfo*) const; |
| 142 | |
| 143 | private: |
| 144 | enum { |
| 145 | kColorStorageCount = 4, // more than this many colors, and we'll use sk_malloc for the space |
| 146 | |
| 147 | kStorageSize = kColorStorageCount * (sizeof(SkColor) + sizeof(Rec)) |
| 148 | }; |
| 149 | SkColor fStorage[(kStorageSize + 3) >> 2]; |
| 150 | SkColor* fOrigColors; // original colors, before modulation by paint in setContext |
| 151 | bool fColorsAreOpaque; |
| 152 | |
| 153 | mutable uint16_t* fCache16; // working ptr. If this is NULL, we need to recompute the cache values |
| 154 | mutable SkPMColor* fCache32; // working ptr. If this is NULL, we need to recompute the cache values |
| 155 | |
| 156 | mutable uint16_t* fCache16Storage; // storage for fCache16, allocated on demand |
| 157 | mutable SkMallocPixelRef* fCache32PixelRef; |
| 158 | mutable unsigned fCacheAlpha; // the alpha value we used when we computed the cache. larger than 8bits so we can store uninitialized value |
| 159 | |
| 160 | static void Build16bitCache(uint16_t[], SkColor c0, SkColor c1, int count); |
| 161 | static void Build32bitCache(SkPMColor[], SkColor c0, SkColor c1, int count, |
| 162 | U8CPU alpha); |
| 163 | void setCacheAlpha(U8CPU alpha) const; |
| 164 | void initCommon(); |
| 165 | |
| 166 | typedef SkShader INHERITED; |
| 167 | }; |
| 168 | |
reed@google.com | 55853db | 2013-02-01 19:34:59 +0000 | [diff] [blame] | 169 | static inline int init_dither_toggle(int x, int y) { |
reed@google.com | 6004029 | 2013-02-04 18:21:23 +0000 | [diff] [blame] | 170 | x &= 1; |
| 171 | y = (y & 1) << 1; |
| 172 | return (x | y) * SkGradientShaderBase::kDitherStride32; |
reed@google.com | 55853db | 2013-02-01 19:34:59 +0000 | [diff] [blame] | 173 | } |
| 174 | |
| 175 | static inline int next_dither_toggle(int toggle) { |
| 176 | return toggle ^ SkGradientShaderBase::kDitherStride32; |
| 177 | } |
| 178 | |
| 179 | static inline int init_dither_toggle16(int x, int y) { |
| 180 | return ((x ^ y) & 1) * SkGradientShaderBase::kDitherStride16; |
| 181 | } |
| 182 | |
| 183 | static inline int next_dither_toggle16(int toggle) { |
| 184 | return toggle ^ SkGradientShaderBase::kDitherStride16; |
| 185 | } |
| 186 | |
rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 187 | /////////////////////////////////////////////////////////////////////////////// |
| 188 | |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 189 | #if SK_SUPPORT_GPU |
| 190 | |
bsalomon@google.com | d698f77 | 2012-10-25 13:22:00 +0000 | [diff] [blame] | 191 | #include "gl/GrGLEffect.h" |
bsalomon@google.com | d8b5fac | 2012-11-01 17:02:46 +0000 | [diff] [blame] | 192 | #include "gl/GrGLEffectMatrix.h" |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 193 | |
bsalomon@google.com | 08283af | 2012-10-26 13:01:20 +0000 | [diff] [blame] | 194 | class GrEffectStage; |
bsalomon@google.com | 396e61f | 2012-10-25 19:00:29 +0000 | [diff] [blame] | 195 | class GrBackendEffectFactory; |
rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 196 | |
| 197 | /* |
bsalomon@google.com | d8b5fac | 2012-11-01 17:02:46 +0000 | [diff] [blame] | 198 | * The interpretation of the texture matrix depends on the sample mode. The |
rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 199 | * texture matrix is applied both when the texture coordinates are explicit |
| 200 | * and when vertex positions are used as texture coordinates. In the latter |
rmistry@google.com | fbfcd56 | 2012-08-23 18:09:54 +0000 | [diff] [blame] | 201 | * case the texture matrix is applied to the pre-view-matrix position |
rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 202 | * values. |
| 203 | * |
| 204 | * Normal SampleMode |
| 205 | * The post-matrix texture coordinates are in normalize space with (0,0) at |
| 206 | * the top-left and (1,1) at the bottom right. |
| 207 | * RadialGradient |
| 208 | * The matrix specifies the radial gradient parameters. |
| 209 | * (0,0) in the post-matrix space is center of the radial gradient. |
| 210 | * Radial2Gradient |
| 211 | * Matrix transforms to space where first circle is centered at the |
rmistry@google.com | fbfcd56 | 2012-08-23 18:09:54 +0000 | [diff] [blame] | 212 | * origin. The second circle will be centered (x, 0) where x may be |
| 213 | * 0 and is provided by setRadial2Params. The post-matrix space is |
rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 214 | * normalized such that 1 is the second radius - first radius. |
| 215 | * SweepGradient |
| 216 | * The angle from the origin of texture coordinates in post-matrix space |
| 217 | * determines the gradient value. |
| 218 | */ |
| 219 | |
rileya@google.com | b3e50f2 | 2012-08-20 17:43:08 +0000 | [diff] [blame] | 220 | class GrTextureStripAtlas; |
| 221 | |
rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 222 | // Base class for Gr gradient effects |
bsalomon@google.com | a469c28 | 2012-10-24 18:28:34 +0000 | [diff] [blame] | 223 | class GrGradientEffect : public GrEffect { |
rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 224 | public: |
| 225 | |
bsalomon@google.com | 1ce49fc | 2012-09-18 14:14:49 +0000 | [diff] [blame] | 226 | GrGradientEffect(GrContext* ctx, |
| 227 | const SkGradientShaderBase& shader, |
bsalomon@google.com | d8b5fac | 2012-11-01 17:02:46 +0000 | [diff] [blame] | 228 | const SkMatrix& matrix, |
bsalomon@google.com | 1ce49fc | 2012-09-18 14:14:49 +0000 | [diff] [blame] | 229 | SkShader::TileMode tileMode); |
rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 230 | |
| 231 | virtual ~GrGradientEffect(); |
| 232 | |
rileya@google.com | b3e50f2 | 2012-08-20 17:43:08 +0000 | [diff] [blame] | 233 | bool useAtlas() const { return SkToBool(-1 != fRow); } |
bsalomon@google.com | 8171288 | 2012-11-01 17:12:34 +0000 | [diff] [blame] | 234 | SkScalar getYCoord() const { return fYCoord; }; |
bsalomon@google.com | d8b5fac | 2012-11-01 17:02:46 +0000 | [diff] [blame] | 235 | const SkMatrix& getMatrix() const { return fMatrix;} |
rileya@google.com | b3e50f2 | 2012-08-20 17:43:08 +0000 | [diff] [blame] | 236 | |
bsalomon@google.com | 68b58c9 | 2013-01-17 16:50:08 +0000 | [diff] [blame] | 237 | virtual void getConstantColorComponents(GrColor* color, uint32_t* validFlags) const SK_OVERRIDE; |
bsalomon@google.com | 371e105 | 2013-01-11 21:08:55 +0000 | [diff] [blame] | 238 | |
bsalomon@google.com | d472620 | 2012-08-03 14:34:46 +0000 | [diff] [blame] | 239 | protected: |
rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 240 | |
bsalomon@google.com | d472620 | 2012-08-03 14:34:46 +0000 | [diff] [blame] | 241 | /** Populates a pair of arrays with colors and stop info to construct a random gradient. |
| 242 | The function decides whether stop values should be used or not. The return value indicates |
| 243 | the number of colors, which will be capped by kMaxRandomGradientColors. colors should be |
| 244 | sized to be at least kMaxRandomGradientColors. stops is a pointer to an array of at least |
| 245 | size kMaxRandomGradientColors. It may be updated to NULL, indicating that NULL should be |
| 246 | passed to the gradient factory rather than the array. |
| 247 | */ |
| 248 | static const int kMaxRandomGradientColors = 4; |
bsalomon@google.com | 73a9694 | 2013-02-13 16:31:19 +0000 | [diff] [blame] | 249 | static int RandomGradientParams(SkMWCRandom* r, |
bsalomon@google.com | d472620 | 2012-08-03 14:34:46 +0000 | [diff] [blame] | 250 | SkColor colors[kMaxRandomGradientColors], |
| 251 | SkScalar** stops, |
| 252 | SkShader::TileMode* tm); |
| 253 | |
bsalomon@google.com | 8a252f7 | 2013-01-22 20:35:13 +0000 | [diff] [blame] | 254 | virtual bool onIsEqual(const GrEffect& effect) const SK_OVERRIDE; |
bsalomon@google.com | 68b58c9 | 2013-01-17 16:50:08 +0000 | [diff] [blame] | 255 | |
bsalomon@google.com | d472620 | 2012-08-03 14:34:46 +0000 | [diff] [blame] | 256 | private: |
bsalomon@google.com | 68b58c9 | 2013-01-17 16:50:08 +0000 | [diff] [blame] | 257 | |
bsalomon@google.com | 6d003d1 | 2012-09-11 15:45:20 +0000 | [diff] [blame] | 258 | GrTextureAccess fTextureAccess; |
bsalomon@google.com | 8171288 | 2012-11-01 17:12:34 +0000 | [diff] [blame] | 259 | SkScalar fYCoord; |
rileya@google.com | b3e50f2 | 2012-08-20 17:43:08 +0000 | [diff] [blame] | 260 | GrTextureStripAtlas* fAtlas; |
| 261 | int fRow; |
bsalomon@google.com | d8b5fac | 2012-11-01 17:02:46 +0000 | [diff] [blame] | 262 | SkMatrix fMatrix; |
bsalomon@google.com | 371e105 | 2013-01-11 21:08:55 +0000 | [diff] [blame] | 263 | bool fIsOpaque; |
rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 264 | |
bsalomon@google.com | a469c28 | 2012-10-24 18:28:34 +0000 | [diff] [blame] | 265 | typedef GrEffect INHERITED; |
rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 266 | |
| 267 | }; |
| 268 | |
| 269 | /////////////////////////////////////////////////////////////////////////////// |
| 270 | |
bsalomon@google.com | 8ea78d8 | 2012-10-24 20:11:30 +0000 | [diff] [blame] | 271 | // Base class for GL gradient effects |
bsalomon@google.com | f78df33 | 2012-10-29 12:43:38 +0000 | [diff] [blame] | 272 | class GrGLGradientEffect : public GrGLEffect { |
rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 273 | public: |
bsalomon@google.com | 0707c29 | 2012-10-25 21:45:42 +0000 | [diff] [blame] | 274 | GrGLGradientEffect(const GrBackendEffectFactory& factory); |
| 275 | virtual ~GrGLGradientEffect(); |
rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 276 | |
reed@google.com | 67e7cde | 2013-03-20 17:47:16 +0000 | [diff] [blame] | 277 | virtual void setData(const GrGLUniformManager&, const GrEffectStage&) SK_OVERRIDE; |
rileya@google.com | b3e50f2 | 2012-08-20 17:43:08 +0000 | [diff] [blame] | 278 | |
bsalomon@google.com | f78df33 | 2012-10-29 12:43:38 +0000 | [diff] [blame] | 279 | protected: |
bsalomon@google.com | d8b5fac | 2012-11-01 17:02:46 +0000 | [diff] [blame] | 280 | /** |
| 281 | * Subclasses must reserve the lower kMatrixKeyBitCnt of their key for use by |
| 282 | * GrGLGradientEffect. |
| 283 | */ |
| 284 | enum { |
| 285 | kMatrixKeyBitCnt = GrGLEffectMatrix::kKeyBits, |
| 286 | kMatrixKeyMask = (1 << kMatrixKeyBitCnt) - 1, |
| 287 | }; |
| 288 | |
| 289 | /** |
| 290 | * Subclasses must call this. It will return a value restricted to the lower kMatrixKeyBitCnt |
| 291 | * bits. |
| 292 | */ |
reed@google.com | 67e7cde | 2013-03-20 17:47:16 +0000 | [diff] [blame] | 293 | static EffectKey GenMatrixKey(const GrEffectStage& s); |
bsalomon@google.com | d8b5fac | 2012-11-01 17:02:46 +0000 | [diff] [blame] | 294 | |
| 295 | /** |
| 296 | * Inserts code to implement the GrGradientEffect's matrix. This should be called before a |
| 297 | * subclass emits its own code. The name of the 2D coords is output via fsCoordName and already |
| 298 | * incorporates any perspective division. The caller can also optionally retrieve the name of |
| 299 | * the varying inserted in the VS and its type, which may be either vec2f or vec3f depending |
| 300 | * upon whether the matrix has perspective or not. It is not necessary to mask the key before |
| 301 | * calling. |
| 302 | */ |
| 303 | void setupMatrix(GrGLShaderBuilder* builder, |
| 304 | EffectKey key, |
reed@google.com | 67e7cde | 2013-03-20 17:47:16 +0000 | [diff] [blame] | 305 | const char* vertexCoords, |
bsalomon@google.com | d8b5fac | 2012-11-01 17:02:46 +0000 | [diff] [blame] | 306 | const char** fsCoordName, |
| 307 | const char** vsVaryingName = NULL, |
| 308 | GrSLType* vsVaryingType = NULL); |
| 309 | |
bsalomon@google.com | f78df33 | 2012-10-29 12:43:38 +0000 | [diff] [blame] | 310 | // Emits the uniform used as the y-coord to texture samples in derived classes. Subclasses |
| 311 | // should call this method from their emitCode(). |
| 312 | void emitYCoordUniform(GrGLShaderBuilder* builder); |
| 313 | |
| 314 | // emit code that gets a fragment's color from an expression for t; for now this always uses the |
| 315 | // texture, but for simpler cases we'll be able to lerp. Subclasses should call this method from |
| 316 | // their emitCode(). |
bsalomon@google.com | 868a8e7 | 2012-08-30 19:11:34 +0000 | [diff] [blame] | 317 | void emitColorLookup(GrGLShaderBuilder* builder, |
| 318 | const char* gradientTValue, |
| 319 | const char* outputColor, |
| 320 | const char* inputColor, |
bsalomon@google.com | f06df1b | 2012-09-06 20:22:31 +0000 | [diff] [blame] | 321 | const GrGLShaderBuilder::TextureSampler&); |
rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 322 | |
| 323 | private: |
bsalomon@google.com | 8171288 | 2012-11-01 17:12:34 +0000 | [diff] [blame] | 324 | SkScalar fCachedYCoord; |
rileya@google.com | b3e50f2 | 2012-08-20 17:43:08 +0000 | [diff] [blame] | 325 | GrGLUniformManager::UniformHandle fFSYUni; |
bsalomon@google.com | d8b5fac | 2012-11-01 17:02:46 +0000 | [diff] [blame] | 326 | GrGLEffectMatrix fEffectMatrix; |
rileya@google.com | b3e50f2 | 2012-08-20 17:43:08 +0000 | [diff] [blame] | 327 | |
bsalomon@google.com | f78df33 | 2012-10-29 12:43:38 +0000 | [diff] [blame] | 328 | typedef GrGLEffect INHERITED; |
rileya@google.com | 1c6d64b | 2012-07-27 15:49:05 +0000 | [diff] [blame] | 329 | }; |
| 330 | |
| 331 | #endif |
| 332 | |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 333 | #endif |