Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(540)

Side by Side Diff: src/effects/gradients/SkTwoPointConicalGradient.h

Issue 1216433005: style nit cleanups. e.g. remove 'virtual' on override declarations (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address code review issues Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/effects/gradients/SkSweepGradient.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
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;
59 }; 59 };
60 60
61 virtual BitmapType asABitmap(SkBitmap* bitmap, 61 BitmapType asABitmap(SkBitmap* bitmap, SkMatrix* matrix, TileMode* xy) const override;
62 SkMatrix* matrix,
63 TileMode* xy) const override;
64 SkShader::GradientType asAGradient(GradientInfo* info) const override; 62 SkShader::GradientType asAGradient(GradientInfo* info) const override;
65 virtual bool asFragmentProcessor(GrContext*, const SkPaint&, const SkMatrix& , const SkMatrix*, 63 bool asFragmentProcessor(GrContext*, const SkPaint&, const SkMatrix&, const SkMatrix*,
66 GrColor*, GrFragmentProcessor**) const over ride; 64 GrColor*, GrFragmentProcessor**) const override;
67 bool isOpaque() const override; 65 bool isOpaque() const override;
68 66
69 SkScalar getCenterX1() const { return SkPoint::Distance(fCenter1, fCenter2); } 67 SkScalar getCenterX1() const { return SkPoint::Distance(fCenter1, fCenter2); }
70 SkScalar getStartRadius() const { return fRadius1; } 68 SkScalar getStartRadius() const { return fRadius1; }
71 SkScalar getDiffRadius() const { return fRadius2 - fRadius1; } 69 SkScalar getDiffRadius() const { return fRadius2 - fRadius1; }
72 const SkPoint& getStartCenter() const { return fCenter1; } 70 const SkPoint& getStartCenter() const { return fCenter1; }
73 const SkPoint& getEndCenter() const { return fCenter2; } 71 const SkPoint& getEndCenter() const { return fCenter2; }
74 SkScalar getEndRadius() const { return fRadius2; } 72 SkScalar getEndRadius() const { return fRadius2; }
75 bool isFlippedGrad() const { return fFlippedGrad; } 73 bool isFlippedGrad() const { return fFlippedGrad; }
76 74
(...skipping 10 matching lines...) Expand all
87 SkPoint fCenter2; 85 SkPoint fCenter2;
88 SkScalar fRadius1; 86 SkScalar fRadius1;
89 SkScalar fRadius2; 87 SkScalar fRadius2;
90 bool fFlippedGrad; 88 bool fFlippedGrad;
91 89
92 friend class SkGradientShader; 90 friend class SkGradientShader;
93 typedef SkGradientShaderBase INHERITED; 91 typedef SkGradientShaderBase INHERITED;
94 }; 92 };
95 93
96 #endif 94 #endif
OLDNEW
« no previous file with comments | « src/effects/gradients/SkSweepGradient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698