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 kDontDrawT = 0x80000000 | 18 kDontDrawT = SK_FixedMin |
19 }; | 19 }; |
20 | 20 |
21 float fCenterX, fCenterY; | 21 float fCenterX, fCenterY; |
22 float fDCenterX, fDCenterY; | 22 float fDCenterX, fDCenterY; |
23 float fRadius; | 23 float fRadius; |
24 float fDRadius; | 24 float fDRadius; |
25 float fA; | 25 float fA; |
26 float fRadius2; | 26 float fRadius2; |
27 float fRDR; | 27 float fRDR; |
28 bool fFlipped; | 28 bool fFlipped; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 SkPoint fCenter2; | 88 SkPoint fCenter2; |
89 SkScalar fRadius1; | 89 SkScalar fRadius1; |
90 SkScalar fRadius2; | 90 SkScalar fRadius2; |
91 bool fFlippedGrad; | 91 bool fFlippedGrad; |
92 | 92 |
93 friend class SkGradientShader; | 93 friend class SkGradientShader; |
94 typedef SkGradientShaderBase INHERITED; | 94 typedef SkGradientShaderBase INHERITED; |
95 }; | 95 }; |
96 | 96 |
97 #endif | 97 #endif |
OLD | NEW |