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

Unified Diff: src/core/SkShader.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/core/SkShader.cpp
diff --git a/src/core/SkShader.cpp b/src/core/SkShader.cpp
index 9484db59c18837ac6feaa767cbff03a05cc78613..83053cae8e728546b561de219880dac795f08466 100644
--- a/src/core/SkShader.cpp
+++ b/src/core/SkShader.cpp
@@ -208,8 +208,10 @@ SkShader::GradientType SkShader::asAGradient(GradientInfo* info) const {
return kNone_GradientType;
}
-GrEffectRef* SkShader::asNewEffect(GrContext*, const SkPaint&, const SkMatrix*) const {
- return NULL;
+bool SkShader::asNewEffect(GrContext* context, const SkPaint& paint, GrColor* grColor,
+ GrEffectRef** grEffect, const SkMatrix* localMatrixOrNull) const {
+ *grEffect = NULL;
+ return false;
}
SkShader* SkShader::refAsALocalMatrixShader(SkMatrix*) const {

Powered by Google App Engine
This is Rietveld 408576698