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

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

Issue 1683743005: 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
« src/core/SkPaint.cpp ('K') | « src/core/SkScan_Hairline.cpp ('k') | no next file » | 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 kDontDrawT = 0x80000000 18 kDontDrawT = SK_FixedMin
19 }; 19 };
20 20
21 float fCenterX, fCenterY; 21 float fCenterX, fCenterY;
22 float fDCenterX, fDCenterY; 22 float fDCenterX, fDCenterY;
23 float fRadius; 23 float fRadius;
24 float fDRadius; 24 float fDRadius;
25 float fA; 25 float fA;
26 float fRadius2; 26 float fRadius2;
27 float fRDR; 27 float fRDR;
28 bool fFlipped; 28 bool fFlipped;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
« src/core/SkPaint.cpp ('K') | « src/core/SkScan_Hairline.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698