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

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

Issue 2426173002: fix fuzzers (Closed)
Patch Set: fix dm Created 4 years, 2 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.h ('k') | src/pathops/SkPathOpsTSect.h » ('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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 setBounds(curve, curve, 0, 1); 57 setBounds(curve, curve, 0, 1);
58 } 58 }
59 59
60 void setBounds(const SkDCubic& curve, const SkDCubic& sub, double tStart, do uble tEnd); 60 void setBounds(const SkDCubic& curve, const SkDCubic& sub, double tStart, do uble tEnd);
61 61
62 void setBounds(const SkDQuad& curve) { 62 void setBounds(const SkDQuad& curve) {
63 setBounds(curve, curve, 0, 1); 63 setBounds(curve, curve, 0, 1);
64 } 64 }
65 65
66 void setBounds(const SkDQuad& curve, const SkDQuad& sub, double tStart, doub le tEnd); 66 void setBounds(const SkDQuad& curve, const SkDQuad& sub, double tStart, doub le tEnd);
67
68 bool valid() const {
69 return fLeft <= fRight && fTop <= fBottom;
70 }
67 }; 71 };
68 72
69 #endif 73 #endif
OLDNEW
« no previous file with comments | « src/pathops/SkPathOpsQuad.h ('k') | src/pathops/SkPathOpsTSect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698