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

Side by Side Diff: src/utils/debugger/SkObjectParser.cpp

Issue 196343015: Add nine patch type to SkRRect. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fix inf loop in tests Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/utils/SkLua.cpp ('k') | tests/RoundRectTest.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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « src/utils/SkLua.cpp ('k') | tests/RoundRectTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698