Index: bench/AndroidCodecBench.h |
diff --git a/bench/CodecBench.h b/bench/AndroidCodecBench.h |
similarity index 62% |
copy from bench/CodecBench.h |
copy to bench/AndroidCodecBench.h |
index b465eae36a18ea131ed3ca13ff801758dd07e9e4..fdbec5258a8b102affe6a3fa5a9fd5f83cb7d0b3 100644 |
--- a/bench/CodecBench.h |
+++ b/bench/AndroidCodecBench.h |
@@ -1,12 +1,12 @@ |
/* |
- * Copyright 2015 Google Inc. |
+ * Copyright 2016 Google Inc. |
* |
* Use of this source code is governed by a BSD-style license that can be |
* found in the LICENSE file. |
*/ |
-#ifndef CodecBench_DEFINED |
-#define CodecBench_DEFINED |
+#ifndef AndroidCodecBench_DEFINED |
+#define AndroidCodecBench_DEFINED |
#include "Benchmark.h" |
#include "SkData.h" |
@@ -15,12 +15,12 @@ |
#include "SkString.h" |
/** |
- * Time SkCodec. |
+ * Time SkAndroidCodec. |
*/ |
-class CodecBench : public Benchmark { |
+class AndroidCodecBench : public Benchmark { |
public: |
// Calls encoded->ref() |
- CodecBench(SkString basename, SkData* encoded, SkColorType colorType, SkAlphaType alphaType); |
+ AndroidCodecBench(SkString basename, SkData* encoded, int sampleSize); |
protected: |
const char* onGetName() override; |
@@ -30,11 +30,10 @@ protected: |
private: |
SkString fName; |
- const SkColorType fColorType; |
- const SkAlphaType fAlphaType; |
SkAutoTUnref<SkData> fData; |
+ const int fSampleSize; |
SkImageInfo fInfo; // Set in onDelayedSetup. |
- SkAutoMalloc fPixelStorage; |
+ SkAutoMalloc fPixelStorage; // Set in onDelayedSetup. |
typedef Benchmark INHERITED; |
}; |
-#endif // CodecBench_DEFINED |
+#endif // AndroidCodecBench_DEFINED |