| 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 29 matching lines...) Expand all Loading... |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 | 42 |
| 43 class SkTwoPointConicalGradient : public SkGradientShaderBase { | 43 class SkTwoPointConicalGradient : public SkGradientShaderBase { |
| 44 TwoPtRadial fRec; | 44 TwoPtRadial fRec; |
| 45 void init(); | 45 void init(); |
| 46 | 46 |
| 47 public: | 47 public: |
| 48 SkTwoPointConicalGradient(const SkPoint& start, SkScalar startRadius, | 48 SkTwoPointConicalGradient(const SkPoint& start, SkScalar startRadius, |
| 49 const SkPoint& end, SkScalar endRadius, | 49 const SkPoint& end, SkScalar endRadius, |
| 50 const SkColor colors[], const SkScalar pos[], | 50 const Descriptor&); |
| 51 int colorCount, SkShader::TileMode mode, | |
| 52 SkUnitMapper* mapper); | |
| 53 | 51 |
| 54 virtual void shadeSpan(int x, int y, SkPMColor* dstCParam, | 52 virtual void shadeSpan(int x, int y, SkPMColor* dstCParam, |
| 55 int count) SK_OVERRIDE; | 53 int count) SK_OVERRIDE; |
| 56 virtual bool setContext(const SkBitmap& device, | 54 virtual bool setContext(const SkBitmap& device, |
| 57 const SkPaint& paint, | 55 const SkPaint& paint, |
| 58 const SkMatrix& matrix) SK_OVERRIDE; | 56 const SkMatrix& matrix) SK_OVERRIDE; |
| 59 | 57 |
| 60 virtual BitmapType asABitmap(SkBitmap* bitmap, | 58 virtual BitmapType asABitmap(SkBitmap* bitmap, |
| 61 SkMatrix* matrix, | 59 SkMatrix* matrix, |
| 62 TileMode* xy) const; | 60 TileMode* xy) const; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 77 | 75 |
| 78 private: | 76 private: |
| 79 typedef SkGradientShaderBase INHERITED; | 77 typedef SkGradientShaderBase INHERITED; |
| 80 const SkPoint fCenter1; | 78 const SkPoint fCenter1; |
| 81 const SkPoint fCenter2; | 79 const SkPoint fCenter2; |
| 82 const SkScalar fRadius1; | 80 const SkScalar fRadius1; |
| 83 const SkScalar fRadius2; | 81 const SkScalar fRadius2; |
| 84 }; | 82 }; |
| 85 | 83 |
| 86 #endif | 84 #endif |
| OLD | NEW |