diff options
author | mtklein <mtklein@chromium.org> | 2014-11-12 15:15:28 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-12 15:15:28 -0800 |
commit | 8113dd13692bc2e1fe804141d04b2cc5f03a55be (patch) | |
tree | 9b97a842f55452869a1576a3fb07cd300f114698 /gyp | |
parent | b122ee50fb56cf6669fe1668b82c8815896e9943 (diff) |
SkVarAlloc
Like SkChunkAlloc, but
- does its allocation with better sympathy for malloc granularity;
- the fast path inlines entirely;
- smaller per-block overhead;
- smaller per-SkVarAlloc overhead;
- growth parameters are a little more tunable.
Its main downside is less flexibility; it supports fewer methods than SkChunkAlloc.
These current parameters bring the first allocation down from 4K to 1K,
without affecting recording time on my desktop. skiaperf.com will tell the
whole story.
BUG=skia:
Review URL: https://codereview.chromium.org/674263002
Diffstat (limited to 'gyp')
-rw-r--r-- | gyp/core.gypi | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gyp/core.gypi b/gyp/core.gypi index 2239058d3f..01838a34bb 100644 --- a/gyp/core.gypi +++ b/gyp/core.gypi @@ -209,6 +209,7 @@ '<(skia_src_path)/core/SkUnPreMultiply.cpp', '<(skia_src_path)/core/SkUtils.cpp', '<(skia_src_path)/core/SkValidatingReadBuffer.cpp', + '<(skia_src_path)/core/SkVarAlloc.cpp', '<(skia_src_path)/core/SkVertState.cpp', '<(skia_src_path)/core/SkWriteBuffer.cpp', '<(skia_src_path)/core/SkWriter32.cpp', |