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

Side by Side Diff: src/effects/gradients/SkTwoPointRadialGradient.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/SkTwoPointConicalGradient.cpp ('k') | no next file » | 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 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 rot.setSinCos(-SkScalarMul(invDiffLen, fDiff.fY), 694 rot.setSinCos(-SkScalarMul(invDiffLen, fDiff.fY),
695 SkScalarMul(invDiffLen, fDiff.fX)); 695 SkScalarMul(invDiffLen, fDiff.fX));
696 matrix.postConcat(rot); 696 matrix.postConcat(rot);
697 } 697 }
698 698
699 return GrRadial2Gradient::Create(context, *this, matrix, fTileMode); 699 return GrRadial2Gradient::Create(context, *this, matrix, fTileMode);
700 } 700 }
701 701
702 #else 702 #else
703 703
704 GrEffectRef* SkTwoPointRadialGradient::asNewEffect(GrContext*, const SkPaint&) c onst { 704 GrEffectRef* SkTwoPointRadialGradient::asNewEffect(GrContext*, const SkPaint&,
705 const SkMatrix*) const {
705 SkDEBUGFAIL("Should not call in GPU-less build"); 706 SkDEBUGFAIL("Should not call in GPU-less build");
706 return NULL; 707 return NULL;
707 } 708 }
708 709
709 #endif 710 #endif
OLDNEW
« no previous file with comments | « src/effects/gradients/SkTwoPointConicalGradient.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698