diff options
Diffstat (limited to 'bench/BitmapBench.cpp')
-rw-r--r-- | bench/BitmapBench.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bench/BitmapBench.cpp b/bench/BitmapBench.cpp index 8e881a665b..fdf17e90b1 100644 --- a/bench/BitmapBench.cpp +++ b/bench/BitmapBench.cpp @@ -44,10 +44,8 @@ static void convertToIndex666(const SkBitmap& src, SkBitmap* dst, SkAlphaType aT } } } - SkColorTable* ctable = new SkColorTable(storage, 216); dst->allocPixels(SkImageInfo::Make(src.width(), src.height(), kIndex_8_SkColorType, aType), - nullptr, ctable); - ctable->unref(); + SkColorTable::Make(storage, 216)); SkAutoLockPixels alps(src); SkAutoLockPixels alpd(*dst); |