| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 SkGradientShaderPriv_DEFINED | 8 #ifndef SkGradientShaderPriv_DEFINED |
| 9 #define SkGradientShaderPriv_DEFINED | 9 #define SkGradientShaderPriv_DEFINED |
| 10 | 10 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 /// This value is used to *read* the dither cache; it may be 0 | 125 /// This value is used to *read* the dither cache; it may be 0 |
| 126 /// if dithering is disabled. | 126 /// if dithering is disabled. |
| 127 kDitherStride32 = kCache32Count, | 127 kDitherStride32 = kCache32Count, |
| 128 kDitherStride16 = kCache16Count, | 128 kDitherStride16 = kCache16Count, |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 | 131 |
| 132 protected: | 132 protected: |
| 133 SkGradientShaderBase(SkReadBuffer& ); | 133 SkGradientShaderBase(SkReadBuffer& ); |
| 134 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; | 134 virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
| 135 SK_DEVELOPER_TO_STRING() | 135 SK_TO_STRING_OVERRIDE() |
| 136 | 136 |
| 137 SkUnitMapper* fMapper; | 137 SkUnitMapper* fMapper; |
| 138 SkMatrix fPtsToUnit; // set by subclass | 138 SkMatrix fPtsToUnit; // set by subclass |
| 139 SkMatrix fDstToIndex; | 139 SkMatrix fDstToIndex; |
| 140 SkMatrix::MapXYProc fDstToIndexProc; | 140 SkMatrix::MapXYProc fDstToIndexProc; |
| 141 TileMode fTileMode; | 141 TileMode fTileMode; |
| 142 TileProc fTileProc; | 142 TileProc fTileProc; |
| 143 int fColorCount; | 143 int fColorCount; |
| 144 uint8_t fDstToIndexClass; | 144 uint8_t fDstToIndexClass; |
| 145 uint8_t fFlags; | 145 uint8_t fFlags; |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 GrGLUniformManager::UniformHandle fColorStartUni; | 381 GrGLUniformManager::UniformHandle fColorStartUni; |
| 382 GrGLUniformManager::UniformHandle fColorMidUni; | 382 GrGLUniformManager::UniformHandle fColorMidUni; |
| 383 GrGLUniformManager::UniformHandle fColorEndUni; | 383 GrGLUniformManager::UniformHandle fColorEndUni; |
| 384 | 384 |
| 385 typedef GrGLEffect INHERITED; | 385 typedef GrGLEffect INHERITED; |
| 386 }; | 386 }; |
| 387 | 387 |
| 388 #endif | 388 #endif |
| 389 | 389 |
| 390 #endif | 390 #endif |
| OLD | NEW |