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 SkTwoPointRadialGradient_DEFINED | 9 #ifndef SkTwoPointRadialGradient_DEFINED |
10 #define SkTwoPointRadialGradient_DEFINED | 10 #define SkTwoPointRadialGradient_DEFINED |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_
OVERRIDE; | 49 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_
OVERRIDE; |
50 | 50 |
51 private: | 51 private: |
52 const SkPoint fCenter1; | 52 const SkPoint fCenter1; |
53 const SkPoint fCenter2; | 53 const SkPoint fCenter2; |
54 const SkScalar fRadius1; | 54 const SkScalar fRadius1; |
55 const SkScalar fRadius2; | 55 const SkScalar fRadius2; |
56 SkPoint fDiff; | 56 SkPoint fDiff; |
57 SkScalar fStartRadius, fDiffRadius, fSr2D2, fA, fOneOverTwoA; | 57 SkScalar fStartRadius, fDiffRadius, fSr2D2, fA, fOneOverTwoA; |
58 | 58 |
59 void init(); | |
60 | |
61 friend class SkGradientShader; | 59 friend class SkGradientShader; |
62 typedef SkGradientShaderBase INHERITED; | 60 typedef SkGradientShaderBase INHERITED; |
63 }; | 61 }; |
64 | 62 |
65 #endif | 63 #endif |
OLD | NEW |