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

Side by Side Diff: src/effects/gradients/SkTwoPointConicalGradient.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 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkTwoPointConicalGradient.h" 8 #include "SkTwoPointConicalGradient.h"
9 9
10 static int valid_divide(float numer, float denom, float* ratio) { 10 static int valid_divide(float numer, float denom, float* ratio) {
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 703
704 #else 704 #else
705 705
706 GrEffectRef* SkTwoPointConicalGradient::asNewEffect(GrContext*, const SkPaint&) const { 706 GrEffectRef* SkTwoPointConicalGradient::asNewEffect(GrContext*, const SkPaint&) const {
707 SkDEBUGFAIL("Should not call in GPU-less build"); 707 SkDEBUGFAIL("Should not call in GPU-less build");
708 return NULL; 708 return NULL;
709 } 709 }
710 710
711 #endif 711 #endif
712 712
713 #ifdef SK_DEVELOPER 713 #ifndef SK_IGNORE_TO_STRING
714 void SkTwoPointConicalGradient::toString(SkString* str) const { 714 void SkTwoPointConicalGradient::toString(SkString* str) const {
715 str->append("SkTwoPointConicalGradient: ("); 715 str->append("SkTwoPointConicalGradient: (");
716 716
717 str->append("center1: ("); 717 str->append("center1: (");
718 str->appendScalar(fCenter1.fX); 718 str->appendScalar(fCenter1.fX);
719 str->append(", "); 719 str->append(", ");
720 str->appendScalar(fCenter1.fY); 720 str->appendScalar(fCenter1.fY);
721 str->append(") radius1: "); 721 str->append(") radius1: ");
722 str->appendScalar(fRadius1); 722 str->appendScalar(fRadius1);
723 str->append(" "); 723 str->append(" ");
724 724
725 str->append("center2: ("); 725 str->append("center2: (");
726 str->appendScalar(fCenter2.fX); 726 str->appendScalar(fCenter2.fX);
727 str->append(", "); 727 str->append(", ");
728 str->appendScalar(fCenter2.fY); 728 str->appendScalar(fCenter2.fY);
729 str->append(") radius2: "); 729 str->append(") radius2: ");
730 str->appendScalar(fRadius2); 730 str->appendScalar(fRadius2);
731 str->append(" "); 731 str->append(" ");
732 732
733 this->INHERITED::toString(str); 733 this->INHERITED::toString(str);
734 734
735 str->append(")"); 735 str->append(")");
736 } 736 }
737 #endif 737 #endif
OLDNEW
« no previous file with comments | « src/effects/gradients/SkTwoPointConicalGradient.h ('k') | src/effects/gradients/SkTwoPointRadialGradient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698