Change SkRecord to use SkArenaAlloc
authorHerb Derby <herb@google.com>
Tue, 18 Apr 2017 15:42:49 +0000 (11:42 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Tue, 18 Apr 2017 16:19:47 +0000 (16:19 +0000)
commit4304d11ada22ebfb6b64d87247ad24cde89c3a74
treebbdd9576071af23d021900d344131366fecc19f8
parentbc8ee52d4649afdc972599e5ef2a2a543867985d
Change SkRecord to use SkArenaAlloc

This CL uses the strategy of allocating raw bytes with the proper
alignment so that SkRecord can manage the object lifetimes.

Change-Id: I73604d41a3c6a12d1e2f7f8419f75b95c0190f68
Reviewed-on: https://skia-review.googlesource.com/13621
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
src/core/SkRecord.cpp
src/core/SkRecord.h