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

Side by Side Diff: src/pathops/SkPathOpsDebug.cpp

Issue 52653002: pathops work in progress (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: add raster vs gpu test Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/pathops/SkPathOpsCommon.cpp ('k') | src/pathops/SkPathOpsOp.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 2013 Google Inc. 2 * Copyright 2013 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 7
8 #include "SkPathOpsDebug.h" 8 #include "SkPathOpsDebug.h"
9 #include "SkPath.h" 9 #include "SkPath.h"
10 10
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 angles[index]->dump(); 96 angles[index]->dump();
97 } 97 }
98 } 98 }
99 #endif // SK_DEBUG || !FORCE_RELEASE 99 #endif // SK_DEBUG || !FORCE_RELEASE
100 100
101 #ifdef SK_DEBUG 101 #ifdef SK_DEBUG
102 void SkOpSpan::dump() const { 102 void SkOpSpan::dump() const {
103 SkDebugf("t="); 103 SkDebugf("t=");
104 DebugDumpDouble(fT); 104 DebugDumpDouble(fT);
105 SkDebugf(" pt="); 105 SkDebugf(" pt=");
106 SkDPoint::DumpSkPoint(fPt); 106 SkDPoint::dump(fPt);
107 SkDebugf(" other.fID=%d", fOther->debugID()); 107 SkDebugf(" other.fID=%d", fOther->debugID());
108 SkDebugf(" [%d] otherT=", fOtherIndex); 108 SkDebugf(" [%d] otherT=", fOtherIndex);
109 DebugDumpDouble(fOtherT); 109 DebugDumpDouble(fOtherT);
110 SkDebugf(" windSum="); 110 SkDebugf(" windSum=");
111 SkPathOpsDebug::WindingPrintf(fWindSum); 111 SkPathOpsDebug::WindingPrintf(fWindSum);
112 if (SkPathOpsDebug::ValidWind(fOppSum) || fOppValue != 0) { 112 if (SkPathOpsDebug::ValidWind(fOppSum) || fOppValue != 0) {
113 SkDebugf(" oppSum="); 113 SkDebugf(" oppSum=");
114 SkPathOpsDebug::WindingPrintf(fOppSum); 114 SkPathOpsDebug::WindingPrintf(fOppSum);
115 } 115 }
116 SkDebugf(" windValue=%d", fWindValue); 116 SkDebugf(" windValue=%d", fWindValue);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 void Dump(const SkTArray<class SkOpAngle, true>* angles) { 151 void Dump(const SkTArray<class SkOpAngle, true>* angles) {
152 SkPathOpsDebug::DumpAngles(*angles); 152 SkPathOpsDebug::DumpAngles(*angles);
153 } 153 }
154 154
155 void Dump(const SkTArray<class SkOpAngle* , true>* angles) { 155 void Dump(const SkTArray<class SkOpAngle* , true>* angles) {
156 SkPathOpsDebug::DumpAngles(*angles); 156 SkPathOpsDebug::DumpAngles(*angles);
157 } 157 }
158 158
159 #endif 159 #endif
160
161 #if !FORCE_RELEASE && 0 // enable when building without extended test
162 void SkPathOpsDebug::ShowPath(const SkPath& one, const SkPath& two, SkPathOp op, const char* name) {
163 }
164 #endif
OLDNEW
« no previous file with comments | « src/pathops/SkPathOpsCommon.cpp ('k') | src/pathops/SkPathOpsOp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698