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

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

Issue 202163004: Revert of Add nine patch type to SkRRect. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: 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");
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
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 }
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