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

Side by Side Diff: src/effects/gradients/SkRadialGradient.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/gradients/SkRadialGradient.h ('k') | src/effects/gradients/SkSweepGradient.h » ('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 "SkRadialGradient.h" 9 #include "SkRadialGradient.h"
10 #include "SkRadialGradient_Table.h" 10 #include "SkRadialGradient_Table.h"
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 556
557 #else 557 #else
558 558
559 GrEffectRef* SkRadialGradient::asNewEffect(GrContext*, const SkPaint&) const { 559 GrEffectRef* SkRadialGradient::asNewEffect(GrContext*, const SkPaint&) const {
560 SkDEBUGFAIL("Should not call in GPU-less build"); 560 SkDEBUGFAIL("Should not call in GPU-less build");
561 return NULL; 561 return NULL;
562 } 562 }
563 563
564 #endif 564 #endif
565 565
566 #ifdef SK_DEVELOPER 566 #ifndef SK_IGNORE_TO_STRING
567 void SkRadialGradient::toString(SkString* str) const { 567 void SkRadialGradient::toString(SkString* str) const {
568 str->append("SkRadialGradient: ("); 568 str->append("SkRadialGradient: (");
569 569
570 str->append("center: ("); 570 str->append("center: (");
571 str->appendScalar(fCenter.fX); 571 str->appendScalar(fCenter.fX);
572 str->append(", "); 572 str->append(", ");
573 str->appendScalar(fCenter.fY); 573 str->appendScalar(fCenter.fY);
574 str->append(") radius: "); 574 str->append(") radius: ");
575 str->appendScalar(fRadius); 575 str->appendScalar(fRadius);
576 str->append(" "); 576 str->append(" ");
577 577
578 this->INHERITED::toString(str); 578 this->INHERITED::toString(str);
579 579
580 str->append(")"); 580 str->append(")");
581 } 581 }
582 #endif 582 #endif
OLDNEW
« no previous file with comments | « src/effects/gradients/SkRadialGradient.h ('k') | src/effects/gradients/SkSweepGradient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698