Make CodecBench test kPremul and kUnpremul
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1568913002
Review URL: https://codereview.chromium.org/1568913002
diff --git a/bench/CodecBench.h b/bench/CodecBench.h
index a574b4c..b465eae 100644
--- a/bench/CodecBench.h
+++ b/bench/CodecBench.h
@@ -20,7 +20,7 @@
class CodecBench : public Benchmark {
public:
// Calls encoded->ref()
- CodecBench(SkString basename, SkData* encoded, SkColorType colorType);
+ CodecBench(SkString basename, SkData* encoded, SkColorType colorType, SkAlphaType alphaType);
protected:
const char* onGetName() override;
@@ -31,8 +31,9 @@
private:
SkString fName;
const SkColorType fColorType;
+ const SkAlphaType fAlphaType;
SkAutoTUnref<SkData> fData;
- SkImageInfo fInfo; // Set in onPreDraw.
+ SkImageInfo fInfo; // Set in onDelayedSetup.
SkAutoMalloc fPixelStorage;
typedef Benchmark INHERITED;
};