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

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

Issue 1228683002: rename GrShaderDataManager -> GrProcessorDataManager (Closed) Base URL: https://skia.googlesource.com/skia.git@grfixuptests
Patch Set: rebase onto origin/master 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
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 BitmapType asABitmap(SkBitmap* bitmap, SkMatrix* matrix, TileMode* xy) const override; 61 BitmapType asABitmap(SkBitmap* bitmap, SkMatrix* matrix, TileMode* xy) const override;
62 SkShader::GradientType asAGradient(GradientInfo* info) const override; 62 SkShader::GradientType asAGradient(GradientInfo* info) const override;
63 bool asFragmentProcessor(GrContext*, const SkPaint&, const SkMatrix&, const SkMatrix*, 63 bool asFragmentProcessor(GrContext*, const SkPaint&, const SkMatrix&, const SkMatrix*,
64 GrColor*, GrShaderDataManager*, 64 GrColor*, GrProcessorDataManager*,
65 GrFragmentProcessor**) const override; 65 GrFragmentProcessor**) const override;
66 bool isOpaque() const override; 66 bool isOpaque() const override;
67 67
68 SkScalar getCenterX1() const { return SkPoint::Distance(fCenter1, fCenter2); } 68 SkScalar getCenterX1() const { return SkPoint::Distance(fCenter1, fCenter2); }
69 SkScalar getStartRadius() const { return fRadius1; } 69 SkScalar getStartRadius() const { return fRadius1; }
70 SkScalar getDiffRadius() const { return fRadius2 - fRadius1; } 70 SkScalar getDiffRadius() const { return fRadius2 - fRadius1; }
71 const SkPoint& getStartCenter() const { return fCenter1; } 71 const SkPoint& getStartCenter() const { return fCenter1; }
72 const SkPoint& getEndCenter() const { return fCenter2; } 72 const SkPoint& getEndCenter() const { return fCenter2; }
73 SkScalar getEndRadius() const { return fRadius2; } 73 SkScalar getEndRadius() const { return fRadius2; }
74 bool isFlippedGrad() const { return fFlippedGrad; } 74 bool isFlippedGrad() const { return fFlippedGrad; }
(...skipping 11 matching lines...) Expand all
86 SkPoint fCenter2; 86 SkPoint fCenter2;
87 SkScalar fRadius1; 87 SkScalar fRadius1;
88 SkScalar fRadius2; 88 SkScalar fRadius2;
89 bool fFlippedGrad; 89 bool fFlippedGrad;
90 90
91 friend class SkGradientShader; 91 friend class SkGradientShader;
92 typedef SkGradientShaderBase INHERITED; 92 typedef SkGradientShaderBase INHERITED;
93 }; 93 };
94 94
95 #endif 95 #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