Image filters: Replace all use of tryAllocPixels() with createDevice().
authorsenorblanco <senorblanco@chromium.org>
Tue, 20 Oct 2015 17:17:34 +0000 (10:17 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 20 Oct 2015 17:17:34 +0000 (10:17 -0700)
commit1d3ff434954189e194c468f429598465146dcf4b
treeb26baea51421dca92277b8adfca8f24dcb1a3d62
parent0bccd8749bdce79b2d71518fe65783b1a9b06445
Image filters: Replace all use of tryAllocPixels() with createDevice().

In order to have a central pinch point for bitmap allocation, change all
filters to use Proxy::createDevice() instead of allocating memory
directly with SkBitmap::tryAllocPixels().

This will aid in moving filter backing stores and caches to
discardable memory.

BUG=skia:

Review URL: https://codereview.chromium.org/1414843003
src/effects/SkAlphaThresholdFilter.cpp
src/effects/SkBlurImageFilter.cpp
src/effects/SkDisplacementMapEffect.cpp
src/effects/SkLightingImageFilter.cpp
src/effects/SkMagnifierImageFilter.cpp
src/effects/SkMatrixConvolutionImageFilter.cpp
src/effects/SkMorphologyImageFilter.cpp