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

Side by Side Diff: src/effects/gradients/SkTwoPointRadialGradient.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/SkTwoPointRadialGradient.h ('k') | src/opts/SkXfermode_opts_arm_neon.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 "SkTwoPointRadialGradient.h" 9 #include "SkTwoPointRadialGradient.h"
10 10
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 300
301 if (!this->INHERITED::setContext(device, paint, matrix)) { 301 if (!this->INHERITED::setContext(device, paint, matrix)) {
302 return false; 302 return false;
303 } 303 }
304 304
305 // we don't have a span16 proc 305 // we don't have a span16 proc
306 fFlags &= ~kHasSpan16_Flag; 306 fFlags &= ~kHasSpan16_Flag;
307 return true; 307 return true;
308 } 308 }
309 309
310 #ifdef SK_DEVELOPER 310 #ifndef SK_IGNORE_TO_STRING
311 void SkTwoPointRadialGradient::toString(SkString* str) const { 311 void SkTwoPointRadialGradient::toString(SkString* str) const {
312 str->append("SkTwoPointRadialGradient: ("); 312 str->append("SkTwoPointRadialGradient: (");
313 313
314 str->append("center1: ("); 314 str->append("center1: (");
315 str->appendScalar(fCenter1.fX); 315 str->appendScalar(fCenter1.fX);
316 str->append(", "); 316 str->append(", ");
317 str->appendScalar(fCenter1.fY); 317 str->appendScalar(fCenter1.fY);
318 str->append(") radius1: "); 318 str->append(") radius1: ");
319 str->appendScalar(fRadius1); 319 str->appendScalar(fRadius1);
320 str->append(" "); 320 str->append(" ");
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 } 682 }
683 683
684 #else 684 #else
685 685
686 GrEffectRef* SkTwoPointRadialGradient::asNewEffect(GrContext*, const SkPaint&) c onst { 686 GrEffectRef* SkTwoPointRadialGradient::asNewEffect(GrContext*, const SkPaint&) c onst {
687 SkDEBUGFAIL("Should not call in GPU-less build"); 687 SkDEBUGFAIL("Should not call in GPU-less build");
688 return NULL; 688 return NULL;
689 } 689 }
690 690
691 #endif 691 #endif
OLDNEW
« no previous file with comments | « src/effects/gradients/SkTwoPointRadialGradient.h ('k') | src/opts/SkXfermode_opts_arm_neon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698