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

Side by Side Diff: src/effects/gradients/SkSweepGradient.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
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 "SkSweepGradient.h" 9 #include "SkSweepGradient.h"
10 10
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 278
279 #else 279 #else
280 280
281 GrEffectRef* SkSweepGradient::asNewEffect(GrContext*, const SkPaint&) const { 281 GrEffectRef* SkSweepGradient::asNewEffect(GrContext*, const SkPaint&) const {
282 SkDEBUGFAIL("Should not call in GPU-less build"); 282 SkDEBUGFAIL("Should not call in GPU-less build");
283 return NULL; 283 return NULL;
284 } 284 }
285 285
286 #endif 286 #endif
287 287
288 #ifdef SK_DEVELOPER 288 #ifndef SK_IGNORE_TO_STRING
289 void SkSweepGradient::toString(SkString* str) const { 289 void SkSweepGradient::toString(SkString* str) const {
290 str->append("SkSweepGradient: ("); 290 str->append("SkSweepGradient: (");
291 291
292 str->append("center: ("); 292 str->append("center: (");
293 str->appendScalar(fCenter.fX); 293 str->appendScalar(fCenter.fX);
294 str->append(", "); 294 str->append(", ");
295 str->appendScalar(fCenter.fY); 295 str->appendScalar(fCenter.fY);
296 str->append(") "); 296 str->append(") ");
297 297
298 this->INHERITED::toString(str); 298 this->INHERITED::toString(str);
299 299
300 str->append(")"); 300 str->append(")");
301 } 301 }
302 #endif 302 #endif
OLDNEW
« no previous file with comments | « src/effects/gradients/SkSweepGradient.h ('k') | src/effects/gradients/SkTwoPointConicalGradient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698