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

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: Revert changes to src/core/SkScan_Hairline.cpp; causes one layout test to regress. 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.
18 kDontDrawT = 0x80000000 19 kDontDrawT = 0x80000000
19 }; 20 };
20 21
21 float fCenterX, fCenterY; 22 float fCenterX, fCenterY;
22 float fDCenterX, fDCenterY; 23 float fDCenterX, fDCenterY;
23 float fRadius; 24 float fRadius;
24 float fDRadius; 25 float fDRadius;
25 float fA; 26 float fA;
26 float fRadius2; 27 float fRadius2;
27 float fRDR; 28 float fRDR;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 SkPoint fCenter2; 89 SkPoint fCenter2;
89 SkScalar fRadius1; 90 SkScalar fRadius1;
90 SkScalar fRadius2; 91 SkScalar fRadius2;
91 bool fFlippedGrad; 92 bool fFlippedGrad;
92 93
93 friend class SkGradientShader; 94 friend class SkGradientShader;
94 typedef SkGradientShaderBase INHERITED; 95 typedef SkGradientShaderBase INHERITED;
95 }; 96 };
96 97
97 #endif 98 #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