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

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

Issue 1720933002: Add ContextRec param to SkShader::contextSize() (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: ContextRec plumbing only Created 4 years, 10 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
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 27 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « src/effects/gradients/SkSweepGradient.cpp ('k') | src/effects/gradients/SkTwoPointConicalGradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698