aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/BitmapBench.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2014-09-29 12:10:27 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-09-29 12:10:27 -0700
commitc5e15a1afab2621e860a251c3fcf5917867ad49f (patch)
tree52a68d8103a78776d05f5c933b4f715dd7828633 /bench/BitmapBench.cpp
parent4572ae9221a2bef60a2867682b738715a431f3a6 (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/BitmapBench.cpp')
-rw-r--r--bench/BitmapBench.cpp2
1 files changed, 1 insertions, 1 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();