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/SkPathOpsDebug.cpp

Issue 1214603003: Revert of Remove SkThread.h, include SkMutex.h or SkAtomics.h as appropriate. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 5 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/lazy/SkDiscardableMemoryPool.cpp ('k') | src/ports/SkFontConfigInterface_direct.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 "SkMutex.h" 8 #include "SkPathOpsDebug.h"
9 #include "SkPath.h" 9 #include "SkPath.h"
10 #include "SkPathOpsDebug.h"
11 #include "SkString.h" 10 #include "SkString.h"
11 #include "SkThread.h"
12 12
13 #if DEBUG_VALIDATE 13 #if DEBUG_VALIDATE
14 extern bool FLAGS_runFail; 14 extern bool FLAGS_runFail;
15 #endif 15 #endif
16 16
17 #if DEBUG_SORT 17 #if DEBUG_SORT
18 int SkPathOpsDebug::gSortCountDefault = SK_MaxS32; 18 int SkPathOpsDebug::gSortCountDefault = SK_MaxS32;
19 int SkPathOpsDebug::gSortCount; 19 int SkPathOpsDebug::gSortCount;
20 #endif 20 #endif
21 21
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 result.printf(CONIC_DEBUG_STR " id=%d", 297 result.printf(CONIC_DEBUG_STR " id=%d",
298 CONIC_DEBUG_DATA(fCurvePart, fCurvePart.fConic.fWeight), 298 CONIC_DEBUG_DATA(fCurvePart, fCurvePart.fConic.fWeight),
299 this->segment()->debugID()); 299 this->segment()->debugID());
300 break; 300 break;
301 case SkPath::kCubic_Verb: 301 case SkPath::kCubic_Verb:
302 result.printf(CUBIC_DEBUG_STR " id=%d", CUBIC_DEBUG_DATA(fCurvePart) , 302 result.printf(CUBIC_DEBUG_STR " id=%d", CUBIC_DEBUG_DATA(fCurvePart) ,
303 this->segment()->debugID()); 303 this->segment()->debugID());
304 break; 304 break;
305 default: 305 default:
306 SkASSERT(0); 306 SkASSERT(0);
307 } 307 }
308 return result; 308 return result;
309 } 309 }
310 #endif 310 #endif
311 311
312 #if DEBUG_SORT 312 #if DEBUG_SORT
313 void SkOpAngle::debugLoop() const { 313 void SkOpAngle::debugLoop() const {
314 const SkOpAngle* first = this; 314 const SkOpAngle* first = this;
315 const SkOpAngle* next = this; 315 const SkOpAngle* next = this;
316 do { 316 do {
317 next->dumpOne(true); 317 next->dumpOne(true);
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 #endif 655 #endif
656 SkPath::FillType fillType = path.getFillType(); 656 SkPath::FillType fillType = path.getFillType();
657 SkASSERT(fillType >= SkPath::kWinding_FillType && fillType <= SkPath::kInver seEvenOdd_FillType); 657 SkASSERT(fillType >= SkPath::kWinding_FillType && fillType <= SkPath::kInver seEvenOdd_FillType);
658 if (includeDeclaration) { 658 if (includeDeclaration) {
659 SkDebugf(" SkPath %s;\n", name); 659 SkDebugf(" SkPath %s;\n", name);
660 } 660 }
661 SkDebugf(" %s.setFillType(SkPath::%s);\n", name, gFillTypeStr[fillType]); 661 SkDebugf(" %s.setFillType(SkPath::%s);\n", name, gFillTypeStr[fillType]);
662 iter.setPath(path); 662 iter.setPath(path);
663 showPathContours(iter, name); 663 showPathContours(iter, name);
664 } 664 }
OLDNEW
« no previous file with comments | « src/lazy/SkDiscardableMemoryPool.cpp ('k') | src/ports/SkFontConfigInterface_direct.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698