diff options
author | 2014-01-24 18:53:42 +0000 | |
---|---|---|
committer | 2014-01-24 18:53:42 +0000 | |
commit | 9ebcac54635cde63110d73ad7c43d70772e7872f (patch) | |
tree | 59ed546835d806d958e25892d79097724efbf983 /src/effects/SkLightingImageFilter.cpp | |
parent | bde4ba2ce6994a57f1b4e820ac83e9d27caf75de (diff) |
add installPixels
BUG=skia:
R=halcanary@google.com
Review URL: https://codereview.chromium.org/143073008
git-svn-id: http://skia.googlecode.com/svn/trunk@13174 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/effects/SkLightingImageFilter.cpp')
-rw-r--r-- | src/effects/SkLightingImageFilter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/effects/SkLightingImageFilter.cpp b/src/effects/SkLightingImageFilter.cpp index b24a91eb44..81c62fe6dc 100644 --- a/src/effects/SkLightingImageFilter.cpp +++ b/src/effects/SkLightingImageFilter.cpp @@ -952,8 +952,7 @@ bool SkDiffuseLightingImageFilter::onFilterImage(Proxy* proxy, } dst->setConfig(src.config(), bounds.width(), bounds.height()); - dst->allocPixels(); - if (!dst->getPixels()) { + if (!dst->allocPixels()) { return false; } |