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

Issue 1316123003: Style Change: SkNEW->new; SkDELETE->delete (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-26 (Wednesday) 15:59:00 EDT Created 5 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
« no previous file with comments | « src/opts/opts_check_x86.cpp ('k') | src/pathops/SkPathOpsTSect.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 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 "SkMutex.h"
9 #include "SkPath.h" 9 #include "SkPath.h"
10 #include "SkPathOpsDebug.h" 10 #include "SkPathOpsDebug.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 if (wind == SK_MinS32) { 68 if (wind == SK_MinS32) {
69 SkDebugf("?"); 69 SkDebugf("?");
70 } else { 70 } else {
71 SkDebugf("%d", wind); 71 SkDebugf("%d", wind);
72 } 72 }
73 } 73 }
74 #endif // defined SK_DEBUG || !FORCE_RELEASE 74 #endif // defined SK_DEBUG || !FORCE_RELEASE
75 75
76 76
77 #if DEBUG_SHOW_TEST_NAME 77 #if DEBUG_SHOW_TEST_NAME
78 void* SkPathOpsDebug::CreateNameStr() { 78 void* SkPathOpsDebug::CreateNameStr() { return new char[DEBUG_FILENAME_STRING_LE NGTH]; }
79 return SkNEW_ARRAY(char, DEBUG_FILENAME_STRING_LENGTH);
80 }
81 79
82 void SkPathOpsDebug::DeleteNameStr(void* v) { 80 void SkPathOpsDebug::DeleteNameStr(void* v) { delete[] reinterpret_cast<char*>(v ); }
83 SkDELETE_ARRAY(reinterpret_cast<char* >(v));
84 }
85 81
86 void SkPathOpsDebug::BumpTestName(char* test) { 82 void SkPathOpsDebug::BumpTestName(char* test) {
87 char* num = test + strlen(test); 83 char* num = test + strlen(test);
88 while (num[-1] >= '0' && num[-1] <= '9') { 84 while (num[-1] >= '0' && num[-1] <= '9') {
89 --num; 85 --num;
90 } 86 }
91 if (num[0] == '\0') { 87 if (num[0] == '\0') {
92 return; 88 return;
93 } 89 }
94 int dec = atoi(num); 90 int dec = atoi(num);
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 #endif 663 #endif
668 SkPath::FillType fillType = path.getFillType(); 664 SkPath::FillType fillType = path.getFillType();
669 SkASSERT(fillType >= SkPath::kWinding_FillType && fillType <= SkPath::kInver seEvenOdd_FillType); 665 SkASSERT(fillType >= SkPath::kWinding_FillType && fillType <= SkPath::kInver seEvenOdd_FillType);
670 if (includeDeclaration) { 666 if (includeDeclaration) {
671 SkDebugf(" SkPath %s;\n", name); 667 SkDebugf(" SkPath %s;\n", name);
672 } 668 }
673 SkDebugf(" %s.setFillType(SkPath::%s);\n", name, gFillTypeStr[fillType]); 669 SkDebugf(" %s.setFillType(SkPath::%s);\n", name, gFillTypeStr[fillType]);
674 iter.setPath(path); 670 iter.setPath(path);
675 showPathContours(iter, name); 671 showPathContours(iter, name);
676 } 672 }
OLDNEW
« no previous file with comments | « src/opts/opts_check_x86.cpp ('k') | src/pathops/SkPathOpsTSect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698