OLD | NEW |
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 Loading... |
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 |
OLD | NEW |