Test SkCodec to kIndex8 in nanobench.
BUG=skia:3257
BUG=skia:3475
Review URL: https://codereview.chromium.org/1051973002
diff --git a/bench/CodecBench.h b/bench/CodecBench.h
index 2bc4ba9..0675cca 100644
--- a/bench/CodecBench.h
+++ b/bench/CodecBench.h
@@ -9,7 +9,6 @@
#define CodecBench_DEFINED
#include "Benchmark.h"
-#include "SkBitmap.h"
#include "SkData.h"
#include "SkImageInfo.h"
#include "SkRefCnt.h"
@@ -33,7 +32,8 @@
SkString fName;
const SkColorType fColorType;
SkAutoTUnref<SkData> fData;
- SkBitmap fBitmap;
+ SkImageInfo fInfo; // Set in onPreDraw.
+ SkAutoMalloc fPixelStorage;
typedef Benchmark INHERITED;
};
#endif // CodecBench_DEFINED