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

Unified Diff: bench/CodecBench.h

Issue 1568913002: Make CodecBench test kPremul and kUnpremul (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Silent for opaque images Created 4 years, 11 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/CodecBench.cpp » ('j') | bench/CodecBench.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/CodecBench.h
diff --git a/bench/CodecBench.h b/bench/CodecBench.h
index a574b4c67a6e19458e1eaeb993072caf99ee26d2..b465eae36a18ea131ed3ca13ff801758dd07e9e4 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 @@ protected:
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;
};
« no previous file with comments | « no previous file | bench/CodecBench.cpp » ('j') | bench/CodecBench.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698