OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #ifndef SkTwoPointConicalGradient_DEFINED | 9 #ifndef SkTwoPointConicalGradient_DEFINED |
10 #define SkTwoPointConicalGradient_DEFINED | 10 #define SkTwoPointConicalGradient_DEFINED |
11 | 11 |
12 #include "SkGradientShaderPriv.h" | 12 #include "SkGradientShaderPriv.h" |
13 | 13 |
14 // TODO(dominikg): Worth making it truly immutable (i.e. set values in construct
or)? | 14 // TODO(dominikg): Worth making it truly immutable (i.e. set values in construct
or)? |
15 // Should only be initialized once via init(). Immutable afterwards. | 15 // Should only be initialized once via init(). Immutable afterwards. |
16 struct TwoPtRadial { | 16 struct TwoPtRadial { |
17 enum { | 17 enum { |
| 18 // This value is outside the range SK_FixedMin to SK_FixedMax. |
18 kDontDrawT = 0x80000000 | 19 kDontDrawT = 0x80000000 |
19 }; | 20 }; |
20 | 21 |
21 float fCenterX, fCenterY; | 22 float fCenterX, fCenterY; |
22 float fDCenterX, fDCenterY; | 23 float fDCenterX, fDCenterY; |
23 float fRadius; | 24 float fRadius; |
24 float fDRadius; | 25 float fDRadius; |
25 float fA; | 26 float fA; |
26 float fRadius2; | 27 float fRadius2; |
27 float fRDR; | 28 float fRDR; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 SkPoint fCenter2; | 89 SkPoint fCenter2; |
89 SkScalar fRadius1; | 90 SkScalar fRadius1; |
90 SkScalar fRadius2; | 91 SkScalar fRadius2; |
91 bool fFlippedGrad; | 92 bool fFlippedGrad; |
92 | 93 |
93 friend class SkGradientShader; | 94 friend class SkGradientShader; |
94 typedef SkGradientShaderBase INHERITED; | 95 typedef SkGradientShaderBase INHERITED; |
95 }; | 96 }; |
96 | 97 |
97 #endif | 98 #endif |
OLD | NEW |