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"); |
244 } else { | 246 } else { |
245 SkASSERT(rrect.isComplex()); | 247 SkASSERT(rrect.isComplex()); |
246 mRRect->append("complex"); | 248 mRRect->append("complex"); |
247 } | 249 } |
248 mRRect->append("): "); | 250 mRRect->append("): "); |
249 } else { | 251 } else { |
250 mRRect->append(title); | 252 mRRect->append(title); |
251 } | 253 } |
252 mRRect->append("("); | 254 mRRect->append("("); |
253 mRRect->appendScalar(rrect.rect().left()); | 255 mRRect->appendScalar(rrect.rect().left()); |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 } | 365 } |
364 break; | 366 break; |
365 } | 367 } |
366 default: | 368 default: |
367 decodedText->append("Unknown text encoding."); | 369 decodedText->append("Unknown text encoding."); |
368 break; | 370 break; |
369 } | 371 } |
370 | 372 |
371 return decodedText; | 373 return decodedText; |
372 } | 374 } |
OLD | NEW |