From 8113dd13692bc2e1fe804141d04b2cc5f03a55be Mon Sep 17 00:00:00 2001 From: mtklein Date: Wed, 12 Nov 2014 15:15:28 -0800 Subject: 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 --- gyp/core.gypi | 1 + 1 file changed, 1 insertion(+) (limited to 'gyp') 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', -- cgit v1.2.3