Index: src/core/SkImageFilter.cpp |
diff --git a/src/core/SkImageFilter.cpp b/src/core/SkImageFilter.cpp |
index e5be085f2d00cb7d25379601af8cb99f320b75c2..56c310d37e525c55114485d0af93d28b0f5babd2 100644 |
--- a/src/core/SkImageFilter.cpp |
+++ b/src/core/SkImageFilter.cpp |
@@ -227,7 +227,7 @@ bool SkImageFilter::onFilterImage(Proxy*, const SkBitmap&, const Context&, |
} |
bool SkImageFilter::canFilterImageGPU() const { |
- return this->asNewEffect(NULL, NULL, SkMatrix::I(), SkIRect()); |
+ return this->asFragmentProcessor(NULL, NULL, SkMatrix::I(), SkIRect()); |
} |
bool SkImageFilter::filterImageGPU(Proxy* proxy, const SkBitmap& src, const Context& ctx, |
@@ -263,16 +263,16 @@ bool SkImageFilter::filterImageGPU(Proxy* proxy, const SkBitmap& src, const Cont |
am.setIdentity(context); |
GrContext::AutoRenderTarget art(context, dst.texture()->asRenderTarget()); |
GrContext::AutoClip acs(context, dstRect); |
- GrEffect* effect; |
+ GrFragmentProcessor* fp; |
offset->fX = bounds.left(); |
offset->fY = bounds.top(); |
bounds.offset(-srcOffset); |
SkMatrix matrix(ctx.ctm()); |
matrix.postTranslate(SkIntToScalar(-bounds.left()), SkIntToScalar(-bounds.top())); |
- this->asNewEffect(&effect, srcTexture, matrix, bounds); |
- SkASSERT(effect); |
+ this->asFragmentProcessor(&fp, srcTexture, matrix, bounds); |
+ SkASSERT(fp); |
GrPaint paint; |
- paint.addColorEffect(effect)->unref(); |
+ paint.addColorProcessor(fp)->unref(); |
context->drawRectToRect(paint, dstRect, srcRect); |
SkAutoTUnref<GrTexture> resultTex(dst.detach()); |
@@ -365,7 +365,8 @@ bool SkImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, |
return true; |
} |
-bool SkImageFilter::asNewEffect(GrEffect**, GrTexture*, const SkMatrix&, const SkIRect&) const { |
+bool SkImageFilter::asFragmentProcessor(GrFragmentProcessor**, GrTexture*, const SkMatrix&, |
+ const SkIRect&) const { |
return false; |
} |