Index: bench/DecodingBench.h |
diff --git a/bench/DecodingBench.h b/bench/DecodingBench.h |
index 80a474df323abafa2568b82443611ce7d3ff59ec..61b90a1235109443683a66762691bee456928fb0 100644 |
--- a/bench/DecodingBench.h |
+++ b/bench/DecodingBench.h |
@@ -5,10 +5,15 @@ |
* found in the LICENSE file. |
*/ |
+#ifndef DecodingBench_DEFINED |
+#define DecodingBench_DEFINED |
+ |
#include "Benchmark.h" |
+#include "SkBitmap.h" |
+#include "SkData.h" |
#include "SkImageDecoder.h" |
#include "SkImageInfo.h" |
-#include "SkStream.h" |
+#include "SkRefCnt.h" |
#include "SkString.h" |
/* |
@@ -25,11 +30,13 @@ protected: |
const char* onGetName() override; |
bool isSuitableFor(Backend backend) override; |
void onDraw(const int n, SkCanvas* canvas) override; |
- |
+ void onPreDraw() override; |
+ |
private: |
- SkString fName; |
- SkColorType fColorType; |
- SkAutoTDelete<SkMemoryStream> fStream; |
- SkAutoTDelete<SkImageDecoder> fDecoder; |
+ SkString fName; |
+ SkColorType fColorType; |
+ SkAutoTUnref<SkData> fData; |
+ SkBitmap fBitmap; |
typedef Benchmark INHERITED; |
}; |
+#endif // DecodingBench_DEFINED |