commit | 848250415eddc54075f7eb8795e8db79e749c6ab | [log] [tgz] |
---|---|---|
author | reed <reed@google.com> | Tue Sep 02 12:50:45 2014 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Tue Sep 02 12:50:45 2014 -0700 |
tree | eb60aea6e61c9b3a9e195ab3cfb01d571351f78b | |
parent | 00f30bdc9e34b013da54b4406f36556c5be8d041 [diff] [blame] |
make allocPixels throw on failure BUG=skia: R=mtklein@google.com, fmalita@google.com, fmalita@chromium.org Author: reed@google.com Review URL: https://codereview.chromium.org/510423005
diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp index ce35ba2..261640f 100644 --- a/src/effects/SkAlphaThresholdFilter.cpp +++ b/src/effects/SkAlphaThresholdFilter.cpp
@@ -343,7 +343,7 @@ return false; } - if (!dst->allocPixels(src.info())) { + if (!dst->tryAllocPixels(src.info())) { return false; }