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

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

Issue 197763008: Allow toString capability to be toggled independent of developer mode (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: remove gyp changes 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/opts/SkXfermode_opts_arm_neon.cpp ('k') | tests/QuickRejectTest.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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 mRect->appendS32(rect.top()); 87 mRect->appendS32(rect.top());
88 mRect->append(", R: "); 88 mRect->append(", R: ");
89 mRect->appendS32(rect.right()); 89 mRect->appendS32(rect.right());
90 mRect->append(", B: "); 90 mRect->append(", B: ");
91 mRect->appendS32(rect.bottom()); 91 mRect->appendS32(rect.bottom());
92 return mRect; 92 return mRect;
93 } 93 }
94 94
95 SkString* SkObjectParser::MatrixToString(const SkMatrix& matrix) { 95 SkString* SkObjectParser::MatrixToString(const SkMatrix& matrix) {
96 SkString* str = new SkString("SkMatrix: "); 96 SkString* str = new SkString("SkMatrix: ");
97 #ifdef SK_DEVELOPER 97 #ifndef SK_IGNORE_TO_STRING
98 matrix.toString(str); 98 matrix.toString(str);
99 #endif 99 #endif
100 return str; 100 return str;
101 } 101 }
102 102
103 SkString* SkObjectParser::PaintToString(const SkPaint& paint) { 103 SkString* SkObjectParser::PaintToString(const SkPaint& paint) {
104 SkString* str = new SkString; 104 SkString* str = new SkString;
105 #ifdef SK_DEVELOPER 105 #ifndef SK_IGNORE_TO_STRING
106 paint.toString(str); 106 paint.toString(str);
107 #endif 107 #endif
108 return str; 108 return str;
109 } 109 }
110 110
111 SkString* SkObjectParser::PathToString(const SkPath& path) { 111 SkString* SkObjectParser::PathToString(const SkPath& path) {
112 SkString* mPath = new SkString("Path ("); 112 SkString* mPath = new SkString("Path (");
113 113
114 static const char* gFillStrings[] = { 114 static const char* gFillStrings[] = {
115 "Winding", "EvenOdd", "InverseWinding", "InverseEvenOdd" 115 "Winding", "EvenOdd", "InverseWinding", "InverseEvenOdd"
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 } 363 }
364 break; 364 break;
365 } 365 }
366 default: 366 default:
367 decodedText->append("Unknown text encoding."); 367 decodedText->append("Unknown text encoding.");
368 break; 368 break;
369 } 369 }
370 370
371 return decodedText; 371 return decodedText;
372 } 372 }
OLDNEW
« no previous file with comments | « src/opts/SkXfermode_opts_arm_neon.cpp ('k') | tests/QuickRejectTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698