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

Side by Side Diff: bench/DecodingSubsetBench.h

Issue 918673002: Adding new benchmark to test image decoding performance. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fail less loudly, subset error message only printed once. Created 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #include "Benchmark.h"
9 #include "SkImageInfo.h"
10 #include "SkString.h"
11
12 /*
13 *
14 * This benchmark is designed to test the performance of image decoding.
15 * It is invoked from the nanobench.cpp file.
16 *
17 */
18 class DecodingSubsetBench : public Benchmark {
19 public:
20 DecodingSubsetBench(SkString path, SkColorType colorType,
21 const int divisor);
22
23 protected:
24 const char* onGetName() SK_OVERRIDE;
25 bool isSuitableFor(Backend backend) SK_OVERRIDE;
26 void onDraw(const int n, SkCanvas* canvas) SK_OVERRIDE;
27
28 private:
29 SkString fName;
30 SkString fPath;
31 SkColorType fColorType;
32 const int fDivisor;
33 typedef Benchmark INHERITED;
34 };
OLDNEW
« no previous file with comments | « bench/DecodingBench.cpp ('k') | bench/DecodingSubsetBench.cpp » ('j') | bench/nanobench.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698