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

Side by Side Diff: src/effects/gradients/SkRadialGradient.cpp

Issue 278983002: add localmatrix param to asNewEffect (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 7 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/SkLinearGradient.cpp ('k') | src/effects/gradients/SkSweepGradient.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 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 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 return NULL; 573 return NULL;
574 } 574 }
575 matrix.postConcat(inv); 575 matrix.postConcat(inv);
576 } 576 }
577 matrix.postConcat(fPtsToUnit); 577 matrix.postConcat(fPtsToUnit);
578 return GrRadialGradient::Create(context, *this, matrix, fTileMode); 578 return GrRadialGradient::Create(context, *this, matrix, fTileMode);
579 } 579 }
580 580
581 #else 581 #else
582 582
583 GrEffectRef* SkRadialGradient::asNewEffect(GrContext*, const SkPaint&) const { 583 GrEffectRef* SkRadialGradient::asNewEffect(GrContext*, const SkPaint&, const SkM atrix*) const {
584 SkDEBUGFAIL("Should not call in GPU-less build"); 584 SkDEBUGFAIL("Should not call in GPU-less build");
585 return NULL; 585 return NULL;
586 } 586 }
587 587
588 #endif 588 #endif
589 589
590 #ifndef SK_IGNORE_TO_STRING 590 #ifndef SK_IGNORE_TO_STRING
591 void SkRadialGradient::toString(SkString* str) const { 591 void SkRadialGradient::toString(SkString* str) const {
592 str->append("SkRadialGradient: ("); 592 str->append("SkRadialGradient: (");
593 593
594 str->append("center: ("); 594 str->append("center: (");
595 str->appendScalar(fCenter.fX); 595 str->appendScalar(fCenter.fX);
596 str->append(", "); 596 str->append(", ");
597 str->appendScalar(fCenter.fY); 597 str->appendScalar(fCenter.fY);
598 str->append(") radius: "); 598 str->append(") radius: ");
599 str->appendScalar(fRadius); 599 str->appendScalar(fRadius);
600 str->append(" "); 600 str->append(" ");
601 601
602 this->INHERITED::toString(str); 602 this->INHERITED::toString(str);
603 603
604 str->append(")"); 604 str->append(")");
605 } 605 }
606 #endif 606 #endif
OLDNEW
« no previous file with comments | « src/effects/gradients/SkLinearGradient.cpp ('k') | src/effects/gradients/SkSweepGradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698