| 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 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 | 39 |
| 40 class SkTwoPointConicalGradient : public SkGradientShaderBase { | 40 class SkTwoPointConicalGradient : public SkGradientShaderBase { |
| 41 TwoPtRadial fRec; | 41 TwoPtRadial fRec; |
| 42 void init(); | 42 void init(); |
| 43 | 43 |
| 44 public: | 44 public: |
| 45 SkTwoPointConicalGradient(const SkPoint& start, SkScalar startRadius, | 45 SkTwoPointConicalGradient(const SkPoint& start, SkScalar startRadius, |
| 46 const SkPoint& end, SkScalar endRadius, | 46 const SkPoint& end, SkScalar endRadius, |
| 47 bool flippedGrad, const Descriptor&, | 47 bool flippedGrad, const Descriptor&); |
| 48 const SkMatrix* localMatrix); | |
| 49 | 48 |
| 50 | 49 |
| 51 virtual size_t contextSize() const SK_OVERRIDE; | 50 virtual size_t contextSize() const SK_OVERRIDE; |
| 52 | 51 |
| 53 class TwoPointConicalGradientContext : public SkGradientShaderBase::Gradient
ShaderBaseContext { | 52 class TwoPointConicalGradientContext : public SkGradientShaderBase::Gradient
ShaderBaseContext { |
| 54 public: | 53 public: |
| 55 TwoPointConicalGradientContext(const SkTwoPointConicalGradient&, const C
ontextRec&); | 54 TwoPointConicalGradientContext(const SkTwoPointConicalGradient&, const C
ontextRec&); |
| 56 ~TwoPointConicalGradientContext() {} | 55 ~TwoPointConicalGradientContext() {} |
| 57 | 56 |
| 58 virtual void shadeSpan(int x, int y, SkPMColor dstC[], int count) SK_OVE
RRIDE; | 57 virtual void shadeSpan(int x, int y, SkPMColor dstC[], int count) SK_OVE
RRIDE; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 89 SkPoint fCenter1; | 88 SkPoint fCenter1; |
| 90 SkPoint fCenter2; | 89 SkPoint fCenter2; |
| 91 SkScalar fRadius1; | 90 SkScalar fRadius1; |
| 92 SkScalar fRadius2; | 91 SkScalar fRadius2; |
| 93 bool fFlippedGrad; | 92 bool fFlippedGrad; |
| 94 | 93 |
| 95 typedef SkGradientShaderBase INHERITED; | 94 typedef SkGradientShaderBase INHERITED; |
| 96 }; | 95 }; |
| 97 | 96 |
| 98 #endif | 97 #endif |
| OLD | NEW |