Make SkSmallAllocator obey the RAII invariants and move to heap structures when needed.
authorherb <herb@google.com>
Wed, 9 Nov 2016 21:01:46 +0000 (13:01 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 9 Nov 2016 21:01:46 +0000 (13:01 -0800)
commitd5dc657b8c3ac916f98005dafdedafe02f023449
tree6ace2e801a064fb78e42d8bd7564385fc884e045
parent28930b46487fc94fde206d1283623204c595b0f1
Make SkSmallAllocator obey the RAII invariants and move to heap structures when needed.

The biggest change is to the API which allowed code to bypass the
destruction invariants. This destruction bypass feature was needed in
only one use, and is totally encapsulated using createWithIniterT.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2488523003

Review-Url: https://codereview.chromium.org/2488523003
src/core/SkBlitter.cpp
src/core/SkCanvas.cpp
src/core/SkDrawLooper.cpp
src/core/SkRasterPipelineBlitter.cpp
src/core/SkSmallAllocator.h
tests/LayerDrawLooperTest.cpp
tests/SmallAllocatorTest.cpp