Index: src/effects/SkLightingImageFilter.cpp |
diff --git a/src/effects/SkLightingImageFilter.cpp b/src/effects/SkLightingImageFilter.cpp |
index bf2298c9d4145140be18235dd55768521ed375c6..b007fda1dd7e5dd8058cb0482a6a3d5683acf7db 100644 |
--- a/src/effects/SkLightingImageFilter.cpp |
+++ b/src/effects/SkLightingImageFilter.cpp |
@@ -1016,7 +1016,7 @@ bool SkDiffuseLightingImageFilter::onFilterImage(Proxy* proxy, |
return false; |
} |
- if (!dst->allocPixels(src.info().makeWH(bounds.width(), bounds.height()))) { |
+ if (!dst->tryAllocPixels(src.info().makeWH(bounds.width(), bounds.height()))) { |
return false; |
} |
@@ -1134,7 +1134,7 @@ bool SkSpecularLightingImageFilter::onFilterImage(Proxy* proxy, |
return false; |
} |
- if (!dst->allocPixels(src.info().makeWH(bounds.width(), bounds.height()))) { |
+ if (!dst->tryAllocPixels(src.info().makeWH(bounds.width(), bounds.height()))) { |
return false; |
} |