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

Side by Side Diff: src/pathops/SkPathOpsRect.h

Issue 1107353004: align top and bounds computations (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: clean up code Created 5 years, 7 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/pathops/SkPathOpsQuad.cpp ('k') | src/pathops/SkPathOpsRect.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 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 #ifndef SkPathOpsRect_DEFINED 7 #ifndef SkPathOpsRect_DEFINED
8 #define SkPathOpsRect_DEFINED 8 #define SkPathOpsRect_DEFINED
9 9
10 #include "SkPathOpsPoint.h" 10 #include "SkPathOpsPoint.h"
(...skipping 30 matching lines...) Expand all
41 } 41 }
42 42
43 double width() const { 43 double width() const {
44 return fRight - fLeft; 44 return fRight - fLeft;
45 } 45 }
46 46
47 double height() const { 47 double height() const {
48 return fBottom - fTop; 48 return fBottom - fTop;
49 } 49 }
50 50
51 void setBounds(const SkDConic&); 51 void setBounds(const SkDConic& curve) {
52 void setBounds(const SkDCubic&); 52 setBounds(curve, curve, 0, 1);
53 void setBounds(const SkDQuad&); 53 }
54
55 void setBounds(const SkDConic& curve, const SkDConic& sub, double tStart, do uble tEnd);
56
57 void setBounds(const SkDCubic& curve) {
58 setBounds(curve, curve, 0, 1);
59 }
60
61 void setBounds(const SkDCubic& curve, const SkDCubic& sub, double tStart, do uble tEnd);
62
63 void setBounds(const SkDQuad& curve) {
64 setBounds(curve, curve, 0, 1);
65 }
66
67 void setBounds(const SkDQuad& curve, const SkDQuad& sub, double tStart, doub le tEnd);
54 }; 68 };
55 69
56 #endif 70 #endif
OLDNEW
« no previous file with comments | « src/pathops/SkPathOpsQuad.cpp ('k') | src/pathops/SkPathOpsRect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698