From 6ff51aedda6f3b4873c292d7e03e47ad656543f8 Mon Sep 17 00:00:00 2001 From: Herb Derby Date: Wed, 11 Jan 2017 13:43:47 -0500 Subject: Introduce SkArenaAlloc - should be fast for POD types and RAII for types with dtors. - Implementation. - Use in SkLinearPipeline. TBR=mtklein@google.com Change-Id: Ia8efd09b2f3139a57182889ba84d1610eae92749 Reviewed-on: https://skia-review.googlesource.com/6352 Reviewed-by: Herb Derby Commit-Queue: Herb Derby --- gm/SkLinearBitmapPipelineGM.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gm') diff --git a/gm/SkLinearBitmapPipelineGM.cpp b/gm/SkLinearBitmapPipelineGM.cpp index 43e4a247bb..e8816452fe 100644 --- a/gm/SkLinearBitmapPipelineGM.cpp +++ b/gm/SkLinearBitmapPipelineGM.cpp @@ -117,8 +117,7 @@ static void draw_rect_fp(SkCanvas* canvas, const SkRect& r, SkColor c, const SkM auto procN = SkXfermode::GetD32Proc(SkBlendMode::kSrcOver, flags); char storage[512]; - SkFixedAlloc fixedAlloc{storage, sizeof(storage)}; - SkFallbackAlloc allocator{&fixedAlloc}; + SkArenaAlloc allocator{storage, sizeof(storage)}; SkLinearBitmapPipeline pipeline{ inv, filterQuality, SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode, -- cgit v1.2.3