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

Side by Side Diff: bench/subset/SubsetDivisorBench.h

Issue 1160953002: Subset decoding benchmarks (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Added FIXME Created 5 years, 6 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
« no previous file with comments | « bench/subset/SubsetBenchPriv.h ('k') | bench/subset/SubsetDivisorBench.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "SkImageDecoder.h"
10 #include "SkImageInfo.h"
11 #include "SkStream.h"
12 #include "SkString.h"
13
14 /*
15 *
16 * This benchmark is designed to test the performance of subset decoding.
17 * It uses a divisor to decode the entire image in a grid of divisor x divisor b locks.
18 *
19 */
20 class SubsetDivisorBench : public Benchmark {
21 public:
22
23 SubsetDivisorBench(const SkString& path,
24 SkColorType colorType,
25 uint32_t divisor,
26 bool useCodec);
27
28 protected:
29 const char* onGetName() override;
30 bool isSuitableFor(Backend backend) override;
31 void onDraw(const int n, SkCanvas* canvas) override;
32
33 private:
34 SkString fName;
35 SkColorType fColorType;
36 const uint32_t fDivisor;
37 const bool fUseCodec;
38 SkAutoTDelete<SkMemoryStream> fStream;
39 typedef Benchmark INHERITED;
40 };
OLDNEW
« no previous file with comments | « bench/subset/SubsetBenchPriv.h ('k') | bench/subset/SubsetDivisorBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698