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

Side by Side Diff: src/utils/debugger/SkObjectParser.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/utils/debugger/SkDebugCanvas.cpp ('k') | src/utils/mac/SkStream_mac.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 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "SkObjectParser.h" 9 #include "SkObjectParser.h"
10 #include "SkData.h" 10 #include "SkData.h"
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 mPath->append(")"); 194 mPath->append(")");
195 } 195 }
196 196
197 mPath->append(" "); 197 mPath->append(" ");
198 } 198 }
199 199
200 SkString* boundStr = SkObjectParser::RectToString(path.getBounds(), " Bou nd: "); 200 SkString* boundStr = SkObjectParser::RectToString(path.getBounds(), " Bou nd: ");
201 201
202 if (boundStr) { 202 if (boundStr) {
203 mPath->append(*boundStr); 203 mPath->append(*boundStr);
204 SkDELETE(boundStr); 204 delete boundStr;
205 } 205 }
206 206
207 return mPath; 207 return mPath;
208 } 208 }
209 209
210 SkString* SkObjectParser::PointsToString(const SkPoint pts[], size_t count) { 210 SkString* SkObjectParser::PointsToString(const SkPoint pts[], size_t count) {
211 SkString* mPoints = new SkString("SkPoints pts[]: "); 211 SkString* mPoints = new SkString("SkPoints pts[]: ");
212 for (unsigned int i = 0; i < count; i++) { 212 for (unsigned int i = 0; i < count; i++) {
213 mPoints->append("("); 213 mPoints->append("(");
214 mPoints->appendScalar(pts[i].fX); 214 mPoints->appendScalar(pts[i].fX);
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 } 384 }
385 break; 385 break;
386 } 386 }
387 default: 387 default:
388 decodedText->append("Unknown text encoding."); 388 decodedText->append("Unknown text encoding.");
389 break; 389 break;
390 } 390 }
391 391
392 return decodedText; 392 return decodedText;
393 } 393 }
OLDNEW
« no previous file with comments | « src/utils/debugger/SkDebugCanvas.cpp ('k') | src/utils/mac/SkStream_mac.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698