Index: src/effects/SkLightingImageFilter.cpp |
diff --git a/src/effects/SkLightingImageFilter.cpp b/src/effects/SkLightingImageFilter.cpp |
index 69e27609f63cef2f7189b2728dccd3ec560478aa..1eb2a3642e60a3d2894d861873f3a5c5b6dc57a6 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; |
} |