From 2e491a6a113c5e16a3b7bede5fa6f588deeb928d Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Fri, 31 Mar 2017 09:20:50 -0400 Subject: clean up (partially) colortable api Needs this to land: https://codereview.chromium.org/2789853002/ Bug: skia: Change-Id: I38d916a546b7fa64d000d973e695ddda24a589e7 Reviewed-on: https://skia-review.googlesource.com/10600 Commit-Queue: Mike Reed Reviewed-by: Matt Sarett --- gm/all_bitmap_configs.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gm/all_bitmap_configs.cpp') diff --git a/gm/all_bitmap_configs.cpp b/gm/all_bitmap_configs.cpp index ea7b73483b..60aec88ddf 100644 --- a/gm/all_bitmap_configs.cpp +++ b/gm/all_bitmap_configs.cpp @@ -124,10 +124,9 @@ static SkBitmap indexed_bitmap() { pmColors[i] = premultiply_color(colors[i]); } SkBitmap bm; - sk_sp ctable(new SkColorTable(pmColors, SK_ARRAY_COUNT(pmColors))); SkImageInfo info = SkImageInfo::Make(SCALE, SCALE, kIndex_8_SkColorType, kPremul_SkAlphaType); - bm.allocPixels(info, nullptr, ctable.get()); + bm.allocPixels(info, SkColorTable::Make(pmColors, SK_ARRAY_COUNT(pmColors))); SkAutoLockPixels autoLockPixels1(n32bitmap); SkAutoLockPixels autoLockPixels2(bm); for (int y = 0; y < SCALE; ++y) { -- cgit v1.2.3