| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |