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

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

Issue 395603002: Simplify flattening to just write enough to call the factory (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 4 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 SkTwoPointRadialGradient_DEFINED 9 #ifndef SkTwoPointRadialGradient_DEFINED
10 #define SkTwoPointRadialGradient_DEFINED 10 #define SkTwoPointRadialGradient_DEFINED
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(); 59 void init();
60 60
61 friend class SkGradientShader;
61 typedef SkGradientShaderBase INHERITED; 62 typedef SkGradientShaderBase INHERITED;
62 }; 63 };
63 64
64 #endif 65 #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