| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 ~TwoPointConicalGradientContext() {} | 53 ~TwoPointConicalGradientContext() {} |
| 54 | 54 |
| 55 virtual void shadeSpan(int x, int y, SkPMColor dstC[], int count) SK_OVE
RRIDE; | 55 virtual void shadeSpan(int x, int y, SkPMColor dstC[], int count) SK_OVE
RRIDE; |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 typedef SkGradientShaderBase::GradientShaderBaseContext INHERITED; | 58 typedef SkGradientShaderBase::GradientShaderBaseContext INHERITED; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 virtual BitmapType asABitmap(SkBitmap* bitmap, | 61 virtual BitmapType asABitmap(SkBitmap* bitmap, |
| 62 SkMatrix* matrix, | 62 SkMatrix* matrix, |
| 63 TileMode* xy) const; | 63 TileMode* xy) const SK_OVERRIDE; |
| 64 virtual SkShader::GradientType asAGradient(GradientInfo* info) const SK_OVE
RRIDE; | 64 virtual SkShader::GradientType asAGradient(GradientInfo* info) const SK_OVE
RRIDE; |
| 65 virtual bool asFragmentProcessor(GrContext*, const SkPaint&, const SkMatrix*
, GrColor*, | 65 virtual bool asFragmentProcessor(GrContext*, const SkPaint&, const SkMatrix*
, GrColor*, |
| 66 GrFragmentProcessor**) const SK_OVERRIDE; | 66 GrFragmentProcessor**) const SK_OVERRIDE; |
| 67 virtual bool isOpaque() const SK_OVERRIDE; | 67 virtual bool isOpaque() const SK_OVERRIDE; |
| 68 | 68 |
| 69 SkScalar getCenterX1() const { return SkPoint::Distance(fCenter1, fCenter2);
} | 69 SkScalar getCenterX1() const { return SkPoint::Distance(fCenter1, fCenter2);
} |
| 70 SkScalar getStartRadius() const { return fRadius1; } | 70 SkScalar getStartRadius() const { return fRadius1; } |
| 71 SkScalar getDiffRadius() const { return fRadius2 - fRadius1; } | 71 SkScalar getDiffRadius() const { return fRadius2 - fRadius1; } |
| 72 const SkPoint& getStartCenter() const { return fCenter1; } | 72 const SkPoint& getStartCenter() const { return fCenter1; } |
| 73 const SkPoint& getEndCenter() const { return fCenter2; } | 73 const SkPoint& getEndCenter() const { return fCenter2; } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 87 SkPoint fCenter2; | 87 SkPoint fCenter2; |
| 88 SkScalar fRadius1; | 88 SkScalar fRadius1; |
| 89 SkScalar fRadius2; | 89 SkScalar fRadius2; |
| 90 bool fFlippedGrad; | 90 bool fFlippedGrad; |
| 91 | 91 |
| 92 friend class SkGradientShader; | 92 friend class SkGradientShader; |
| 93 typedef SkGradientShaderBase INHERITED; | 93 typedef SkGradientShaderBase INHERITED; |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 #endif | 96 #endif |
| OLD | NEW |