Make SkSmallAllocator obey the RAII invariants and move to heap structures when needed.
authorherb <herb@google.com>
Sun, 13 Nov 2016 17:34:18 +0000 (09:34 -0800)
committerCommit bot <commit-bot@chromium.org>
Sun, 13 Nov 2016 17:34:18 +0000 (09:34 -0800)
commitc18b5f8f57a4efc5d5d1e399ed8bd3bd02c592ab
treeb0704372b1dcd75846135f363564c129733a5c24
parent14b748ddd2a8f0eba9a1b3061980d1174dfc279d
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

Committed: https://skia.googlesource.com/skia/+/d5dc657b8c3ac916f98005dafdedafe02f023449
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