diff options
author | reed <reed@chromium.org> | 2014-06-09 19:52:07 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-06-09 19:52:07 -0700 |
commit | 6c22573edb234ad14df947278cfed010669a39a7 (patch) | |
tree | ede271bf82d823809c12d9b4ef3801dc7d6ddd73 /src/effects/SkMatrixConvolutionImageFilter.cpp | |
parent | 7c5c9da436194c75d91797f114a87a6119ca255d (diff) |
hide SkBitmap::setConfig
patch from issue 325733002
TBR=scroggo
Author: reed@chromium.org
Review URL: https://codereview.chromium.org/322963002
Diffstat (limited to 'src/effects/SkMatrixConvolutionImageFilter.cpp')
-rw-r--r-- | src/effects/SkMatrixConvolutionImageFilter.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/effects/SkMatrixConvolutionImageFilter.cpp b/src/effects/SkMatrixConvolutionImageFilter.cpp index 89e113b8ce..ca2cfcaab7 100644 --- a/src/effects/SkMatrixConvolutionImageFilter.cpp +++ b/src/effects/SkMatrixConvolutionImageFilter.cpp @@ -282,9 +282,7 @@ bool SkMatrixConvolutionImageFilter::onFilterImage(Proxy* proxy, return false; } - result->setConfig(src.config(), bounds.width(), bounds.height()); - result->allocPixels(); - if (!result->getPixels()) { + if (!result->allocPixels(src.info().makeWH(bounds.width(), bounds.height()))) { return false; } |