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

Unified Diff: src/effects/gradients/SkTwoPointConicalGradient.cpp

Issue 318923005: SkShader::asNewEffect Refactoring (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Style corrections Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: src/effects/gradients/SkTwoPointConicalGradient.cpp
diff --git a/src/effects/gradients/SkTwoPointConicalGradient.cpp b/src/effects/gradients/SkTwoPointConicalGradient.cpp
index e26e36bc3d70b98a3ce000275025da8059b1abf2..81a0de5641bac623b5cd29ff75c705d5cc1933fa 100644
--- a/src/effects/gradients/SkTwoPointConicalGradient.cpp
+++ b/src/effects/gradients/SkTwoPointConicalGradient.cpp
@@ -380,12 +380,14 @@ void SkTwoPointConicalGradient::flatten(
#if SK_SUPPORT_GPU
-GrEffectRef* SkTwoPointConicalGradient::asNewEffect(GrContext* context, const SkPaint&,
- const SkMatrix* localMatrix) const {
+ bool SkTwoPointConicalGradient::asNewEffect(GrContext* context, const SkPaint& paint,
+ GrColor* grColor, GrEffectRef** grEffect,
+ const SkMatrix* localMatrix) const {
jvanverth1 2014/06/05 17:36:31 grColor never gets set by this method
dandov 2014/06/06 21:50:43 Done.
SkASSERT(NULL != context);
SkASSERT(fPtsToUnit.isIdentity());
- return Gr2PtConicalGradientEffect::Create(context, *this, fTileMode, localMatrix);
+ *grEffect = Gr2PtConicalGradientEffect::Create(context, *this, fTileMode, localMatrix);
+ return true;
}
#else

Powered by Google App Engine
This is Rietveld 408576698