Index: src/effects/SkMorphologyImageFilter.cpp |
diff --git a/src/effects/SkMorphologyImageFilter.cpp b/src/effects/SkMorphologyImageFilter.cpp |
index a681c9d0599424284b503786391b19b7c79bb6e1..9ecf0c2266c341768ccec0b508e3e68e4556d44b 100644 |
--- a/src/effects/SkMorphologyImageFilter.cpp |
+++ b/src/effects/SkMorphologyImageFilter.cpp |
@@ -667,7 +667,8 @@ bool apply_morphology(const SkBitmap& input, |
SkIRect srcRect = rect; |
if (radius.fWidth > 0) { |
- GrTexture* texture = context->refScratchTexture(desc, GrContext::kApprox_ScratchTexMatch); |
+ GrTexture* texture = context->textureProvider()->refScratchTexture( |
+ desc, GrTextureProvider::kApprox_ScratchTexMatch); |
if (NULL == texture) { |
return false; |
} |
@@ -684,7 +685,8 @@ bool apply_morphology(const SkBitmap& input, |
srcRect = dstRect; |
} |
if (radius.fHeight > 0) { |
- GrTexture* texture = context->refScratchTexture(desc, GrContext::kApprox_ScratchTexMatch); |
+ GrTexture* texture = context->textureProvider()->refScratchTexture(desc, |
+ GrTextureProvider::kApprox_ScratchTexMatch); |
if (NULL == texture) { |
return false; |
} |