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

Side by Side Diff: src/effects/SkTableMaskFilter.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/effects/SkTableColorFilter.cpp ('k') | src/effects/SkTransparentShader.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 2011 Google Inc. 3 * Copyright 2011 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 9
10 #include "SkTableMaskFilter.h" 10 #include "SkTableMaskFilter.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 } 122 }
123 } 123 }
124 SkDebugf("%d %d start [%d]", min, max, j); 124 SkDebugf("%d %d start [%d]", min, max, j);
125 for (; j < 256; j++) { 125 for (; j < 256; j++) {
126 SkDebugf(" %d", table[j]); 126 SkDebugf(" %d", table[j]);
127 } 127 }
128 SkDebugf("\n\n"); 128 SkDebugf("\n\n");
129 #endif 129 #endif
130 } 130 }
131 131
132 #ifdef SK_DEVELOPER 132 #ifndef SK_IGNORE_TO_STRING
133 void SkTableMaskFilter::toString(SkString* str) const { 133 void SkTableMaskFilter::toString(SkString* str) const {
134 str->append("SkTableMaskFilter: ("); 134 str->append("SkTableMaskFilter: (");
135 135
136 str->append("table: "); 136 str->append("table: ");
137 for (int i = 0; i < 255; ++i) { 137 for (int i = 0; i < 255; ++i) {
138 str->appendf("%d, ", fTable[i]); 138 str->appendf("%d, ", fTable[i]);
139 } 139 }
140 str->appendf("%d", fTable[255]); 140 str->appendf("%d", fTable[255]);
141 141
142 str->append(")"); 142 str->append(")");
143 } 143 }
144 #endif 144 #endif
OLDNEW
« no previous file with comments | « src/effects/SkTableColorFilter.cpp ('k') | src/effects/SkTransparentShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698