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

Side by Side Diff: src/core/SkComposeShader.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/core/SkBlitter.cpp ('k') | src/core/SkDraw.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 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
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 "SkComposeShader.h" 10 #include "SkComposeShader.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 } 169 }
170 } 170 }
171 171
172 result += n; 172 result += n;
173 x += n; 173 x += n;
174 count -= n; 174 count -= n;
175 } while (count > 0); 175 } while (count > 0);
176 } 176 }
177 } 177 }
178 178
179 #ifdef SK_DEVELOPER 179 #ifndef SK_IGNORE_TO_STRING
180 void SkComposeShader::toString(SkString* str) const { 180 void SkComposeShader::toString(SkString* str) const {
181 str->append("SkComposeShader: ("); 181 str->append("SkComposeShader: (");
182 182
183 str->append("ShaderA: "); 183 str->append("ShaderA: ");
184 fShaderA->toString(str); 184 fShaderA->toString(str);
185 str->append(" ShaderB: "); 185 str->append(" ShaderB: ");
186 fShaderB->toString(str); 186 fShaderB->toString(str);
187 str->append(" Xfermode: "); 187 str->append(" Xfermode: ");
188 fMode->toString(str); 188 fMode->toString(str);
189 189
190 this->INHERITED::toString(str); 190 this->INHERITED::toString(str);
191 191
192 str->append(")"); 192 str->append(")");
193 } 193 }
194 #endif 194 #endif
OLDNEW
« no previous file with comments | « src/core/SkBlitter.cpp ('k') | src/core/SkDraw.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698