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

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

Issue 1724283003: Revert of Simple cleanups related to SkFixed. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: 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
« no previous file with comments | « src/core/SkPaint.cpp ('k') | tests/PaintBreakTextTest.cpp » ('j') | 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
11 11
12 #include "SkGradientShaderPriv.h" 12 #include "SkGradientShaderPriv.h"
13 13
14 // TODO(dominikg): Worth making it truly immutable (i.e. set values in construct or)? 14 // TODO(dominikg): Worth making it truly immutable (i.e. set values in construct or)?
15 // Should only be initialized once via init(). Immutable afterwards. 15 // Should only be initialized once via init(). Immutable afterwards.
16 struct TwoPtRadial { 16 struct TwoPtRadial {
17 enum { 17 enum {
18 // This value is outside the range SK_FixedMin to SK_FixedMax.
19 kDontDrawT = 0x80000000 18 kDontDrawT = 0x80000000
20 }; 19 };
21 20
22 float fCenterX, fCenterY; 21 float fCenterX, fCenterY;
23 float fDCenterX, fDCenterY; 22 float fDCenterX, fDCenterY;
24 float fRadius; 23 float fRadius;
25 float fDRadius; 24 float fDRadius;
26 float fA; 25 float fA;
27 float fRadius2; 26 float fRadius2;
28 float fRDR; 27 float fRDR;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 SkPoint fCenter2; 88 SkPoint fCenter2;
90 SkScalar fRadius1; 89 SkScalar fRadius1;
91 SkScalar fRadius2; 90 SkScalar fRadius2;
92 bool fFlippedGrad; 91 bool fFlippedGrad;
93 92
94 friend class SkGradientShader; 93 friend class SkGradientShader;
95 typedef SkGradientShaderBase INHERITED; 94 typedef SkGradientShaderBase INHERITED;
96 }; 95 };
97 96
98 #endif 97 #endif
OLDNEW
« no previous file with comments | « src/core/SkPaint.cpp ('k') | tests/PaintBreakTextTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698