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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 if (NULL == title) { | 234 if (NULL == title) { |
235 mRRect->append("SkRRect ("); | 235 mRRect->append("SkRRect ("); |
236 if (rrect.isEmpty()) { | 236 if (rrect.isEmpty()) { |
237 mRRect->append("empty"); | 237 mRRect->append("empty"); |
238 } else if (rrect.isRect()) { | 238 } else if (rrect.isRect()) { |
239 mRRect->append("rect"); | 239 mRRect->append("rect"); |
240 } else if (rrect.isOval()) { | 240 } else if (rrect.isOval()) { |
241 mRRect->append("oval"); | 241 mRRect->append("oval"); |
242 } else if (rrect.isSimple()) { | 242 } else if (rrect.isSimple()) { |
243 mRRect->append("simple"); | 243 mRRect->append("simple"); |
244 } else if (rrect.isNinePatch()) { | |
245 mRRect->append("nine-patch"); | |
246 } else { | 244 } else { |
247 SkASSERT(rrect.isComplex()); | 245 SkASSERT(rrect.isComplex()); |
248 mRRect->append("complex"); | 246 mRRect->append("complex"); |
249 } | 247 } |
250 mRRect->append("): "); | 248 mRRect->append("): "); |
251 } else { | 249 } else { |
252 mRRect->append(title); | 250 mRRect->append(title); |
253 } | 251 } |
254 mRRect->append("("); | 252 mRRect->append("("); |
255 mRRect->appendScalar(rrect.rect().left()); | 253 mRRect->appendScalar(rrect.rect().left()); |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 } | 363 } |
366 break; | 364 break; |
367 } | 365 } |
368 default: | 366 default: |
369 decodedText->append("Unknown text encoding."); | 367 decodedText->append("Unknown text encoding."); |
370 break; | 368 break; |
371 } | 369 } |
372 | 370 |
373 return decodedText; | 371 return decodedText; |
374 } | 372 } |
OLD | NEW |