From fa04776d3a63255ee11fed311a69b25b5f507736 Mon Sep 17 00:00:00 2001 From: scroggo Date: Fri, 11 Jul 2014 10:45:11 -0700 Subject: [PATCH] Use unpremul for premul_and_unpremul_alpha_ bench. Using the wrong color type resulted in invalid colors. R=bsalomon@google.com, reed@google.com Author: scroggo@google.com Review URL: https://codereview.chromium.org/382243005 --- bench/PremulAndUnpremulAlphaOpsBench.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/PremulAndUnpremulAlphaOpsBench.cpp b/bench/PremulAndUnpremulAlphaOpsBench.cpp index 311bdf2..6ab585e 100644 --- a/bench/PremulAndUnpremulAlphaOpsBench.cpp +++ b/bench/PremulAndUnpremulAlphaOpsBench.cpp @@ -30,7 +30,7 @@ protected: } virtual void onPreDraw() { - SkImageInfo info = SkImageInfo::Make(W, H, fColorType, kPremul_SkAlphaType); + SkImageInfo info = SkImageInfo::Make(W, H, fColorType, kUnpremul_SkAlphaType); fBmp1.allocPixels(info); // used in writePixels for (int h = 0; h < H; ++h) { -- 2.7.4