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

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

Issue 633393002: harden pathops for pathological test (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: exclude new test that asserts in debug Created 6 years, 1 month 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/SkPathOpsOp.cpp ('k') | src/pathops/SkPathOpsTypes.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 SkPathOpsPoint_DEFINED 7 #ifndef SkPathOpsPoint_DEFINED
8 #define SkPathOpsPoint_DEFINED 8 #define SkPathOpsPoint_DEFINED
9 9
10 #include "SkPathOpsTypes.h" 10 #include "SkPathOpsTypes.h"
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 return RoughlyEqualUlps(largest, largest + dist); // is the dist within ULPS tolerance? 220 return RoughlyEqualUlps(largest, largest + dist); // is the dist within ULPS tolerance?
221 } 221 }
222 222
223 bool roughlyEqual(const SkDPoint& a) const { 223 bool roughlyEqual(const SkDPoint& a) const {
224 return roughly_equal(a.fY, fY) && roughly_equal(a.fX, fX); 224 return roughly_equal(a.fY, fY) && roughly_equal(a.fX, fX);
225 } 225 }
226 226
227 // utilities callable by the user from the debugger when the implementation code is linked in 227 // utilities callable by the user from the debugger when the implementation code is linked in
228 void dump() const; 228 void dump() const;
229 static void Dump(const SkPoint& pt); 229 static void Dump(const SkPoint& pt);
230 static void DumpHex(const SkPoint& pt);
230 }; 231 };
231 232
232 #endif 233 #endif
OLDNEW
« no previous file with comments | « src/pathops/SkPathOpsOp.cpp ('k') | src/pathops/SkPathOpsTypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698