Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(685)

Unified Diff: bench/AndroidCodecBench.h

Issue 1685693003: Add AndroidCodecBench to time scaled decodes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix dates Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | bench/AndroidCodecBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | bench/AndroidCodecBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698