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

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

Issue 21359002: path ops work in progress (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: remove space Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/pathops/SkPathOpsOp.cpp ('k') | src/pathops/SkPathOpsQuad.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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 return result; 152 return result;
153 } 153 }
154 154
155 double moreRoughlyEqual(const SkDPoint& a) const { 155 double moreRoughlyEqual(const SkDPoint& a) const {
156 return more_roughly_equal(a.fY, fY) && more_roughly_equal(a.fX, fX); 156 return more_roughly_equal(a.fY, fY) && more_roughly_equal(a.fX, fX);
157 } 157 }
158 158
159 double roughlyEqual(const SkDPoint& a) const { 159 double roughlyEqual(const SkDPoint& a) const {
160 return roughly_equal(a.fY, fY) && roughly_equal(a.fX, fX); 160 return roughly_equal(a.fY, fY) && roughly_equal(a.fX, fX);
161 } 161 }
162
163 #ifdef SK_DEBUG
164 void dump() {
165 SkDebugf("{");
166 DebugDumpDouble(fX);
167 SkDebugf(", ");
168 DebugDumpDouble(fY);
169 SkDebugf("}");
170 }
171
172 static void DumpSkPoint(const SkPoint& pt) {
173 SkDebugf("{");
174 DebugDumpFloat(pt.fX);
175 SkDebugf(", ");
176 DebugDumpFloat(pt.fY);
177 SkDebugf("}");
178 }
179 #endif
162 }; 180 };
163 181
164 #endif 182 #endif
OLDNEW
« no previous file with comments | « src/pathops/SkPathOpsOp.cpp ('k') | src/pathops/SkPathOpsQuad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698