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

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

Issue 793763003: Gradient shaders: make fPtsToUnit const, pre-cache getType(). (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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 SkTwoPointRadialGradient_DEFINED 9 #ifndef SkTwoPointRadialGradient_DEFINED
10 #define SkTwoPointRadialGradient_DEFINED 10 #define SkTwoPointRadialGradient_DEFINED
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_ OVERRIDE; 49 virtual Context* onCreateContext(const ContextRec&, void* storage) const SK_ OVERRIDE;
50 50
51 private: 51 private:
52 const SkPoint fCenter1; 52 const SkPoint fCenter1;
53 const SkPoint fCenter2; 53 const SkPoint fCenter2;
54 const SkScalar fRadius1; 54 const SkScalar fRadius1;
55 const SkScalar fRadius2; 55 const SkScalar fRadius2;
56 SkPoint fDiff; 56 SkPoint fDiff;
57 SkScalar fStartRadius, fDiffRadius, fSr2D2, fA, fOneOverTwoA; 57 SkScalar fStartRadius, fDiffRadius, fSr2D2, fA, fOneOverTwoA;
58 58
59 void init();
60
61 friend class SkGradientShader; 59 friend class SkGradientShader;
62 typedef SkGradientShaderBase INHERITED; 60 typedef SkGradientShaderBase INHERITED;
63 }; 61 };
64 62
65 #endif 63 #endif
OLDNEW
« no previous file with comments | « src/effects/gradients/SkTwoPointConicalGradient.cpp ('k') | src/effects/gradients/SkTwoPointRadialGradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698