diff options
author | reed <reed@google.com> | 2014-09-29 12:10:27 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-29 12:10:27 -0700 |
commit | c5e15a1afab2621e860a251c3fcf5917867ad49f (patch) | |
tree | 52a68d8103a78776d05f5c933b4f715dd7828633 /bench | |
parent | 4572ae9221a2bef60a2867682b738715a431f3a6 (diff) |
remove alphatype from colortable
the owning bitmap is (already) responsible for knowing the alphatype
BUG=skia:
R=djsollen@google.com
Author: reed@google.com
Review URL: https://codereview.chromium.org/611093002
Diffstat (limited to 'bench')
-rw-r--r-- | bench/BitmapBench.cpp | 2 | ||||
-rw-r--r-- | bench/RepeatTileBench.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bench/BitmapBench.cpp b/bench/BitmapBench.cpp index e9ba1dcb91..efd6d96684 100644 --- a/bench/BitmapBench.cpp +++ b/bench/BitmapBench.cpp @@ -44,7 +44,7 @@ static void convertToIndex666(const SkBitmap& src, SkBitmap* dst, SkAlphaType aT } } } - SkColorTable* ctable = new SkColorTable(storage, 216, aType); + SkColorTable* ctable = new SkColorTable(storage, 216); dst->allocPixels(SkImageInfo::Make(src.width(), src.height(), kIndex_8_SkColorType, aType), NULL, ctable); ctable->unref(); diff --git a/bench/RepeatTileBench.cpp b/bench/RepeatTileBench.cpp index cf29b6a460..cf147d8c21 100644 --- a/bench/RepeatTileBench.cpp +++ b/bench/RepeatTileBench.cpp @@ -63,7 +63,7 @@ static void convert_to_index666(const SkBitmap& src, SkBitmap* dst) { } } } - SkColorTable* ctable = new SkColorTable(storage, 216, kOpaque_SkAlphaType); + SkColorTable* ctable = new SkColorTable(storage, 216); dst->allocPixels(SkImageInfo::Make(src.width(), src.height(), kIndex_8_SkColorType, kOpaque_SkAlphaType), NULL, ctable); |