| 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 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 | 39 |
| 40 class SkTwoPointConicalGradient : public SkGradientShaderBase { | 40 class SkTwoPointConicalGradient : public SkGradientShaderBase { |
| 41 TwoPtRadial fRec; | 41 TwoPtRadial fRec; |
| 42 public: | 42 public: |
| 43 SkTwoPointConicalGradient(const SkPoint& start, SkScalar startRadius, | 43 SkTwoPointConicalGradient(const SkPoint& start, SkScalar startRadius, |
| 44 const SkPoint& end, SkScalar endRadius, | 44 const SkPoint& end, SkScalar endRadius, |
| 45 bool flippedGrad, const Descriptor&); | 45 bool flippedGrad, const Descriptor&); |
| 46 | 46 |
| 47 | 47 |
| 48 size_t contextSize() const override; | 48 size_t contextSize(const ContextRec&) const override; |
| 49 | 49 |
| 50 class TwoPointConicalGradientContext : public SkGradientShaderBase::Gradient
ShaderBaseContext { | 50 class TwoPointConicalGradientContext : public SkGradientShaderBase::Gradient
ShaderBaseContext { |
| 51 public: | 51 public: |
| 52 TwoPointConicalGradientContext(const SkTwoPointConicalGradient&, const C
ontextRec&); | 52 TwoPointConicalGradientContext(const SkTwoPointConicalGradient&, const C
ontextRec&); |
| 53 ~TwoPointConicalGradientContext() {} | 53 ~TwoPointConicalGradientContext() {} |
| 54 | 54 |
| 55 void shadeSpan(int x, int y, SkPMColor dstC[], int count) override; | 55 void shadeSpan(int x, int y, SkPMColor dstC[], int count) override; |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 typedef SkGradientShaderBase::GradientShaderBaseContext INHERITED; | 58 typedef SkGradientShaderBase::GradientShaderBaseContext INHERITED; |
| (...skipping 29 matching lines...) Expand all 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 |