OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 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 Sk4fGradientBase_DEFINED | 8 #ifndef Sk4fGradientBase_DEFINED |
9 #define Sk4fGradientBase_DEFINED | 9 #define Sk4fGradientBase_DEFINED |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 SkMatrix fDstToPos; | 48 SkMatrix fDstToPos; |
49 SkMatrix::MapXYProc fDstToPosProc; | 49 SkMatrix::MapXYProc fDstToPosProc; |
50 uint8_t fDstToPosClass; | 50 uint8_t fDstToPosClass; |
51 uint8_t fFlags; | 51 uint8_t fFlags; |
52 bool fDither; | 52 bool fDither; |
53 bool fColorsArePremul; | 53 bool fColorsArePremul; |
54 | 54 |
55 private: | 55 private: |
56 using INHERITED = SkShader::Context; | 56 using INHERITED = SkShader::Context; |
57 | 57 |
| 58 void addMirrorIntervals(const SkGradientShaderBase&, const Sk4f& componentSc
ale, |
| 59 bool dx_is_pos); |
| 60 |
58 mutable const Interval* fCachedInterval; | 61 mutable const Interval* fCachedInterval; |
59 }; | 62 }; |
60 | 63 |
61 #endif // Sk4fGradientBase_DEFINED | 64 #endif // Sk4fGradientBase_DEFINED |
OLD | NEW |