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

Side by Side Diff: bench/SKDBench.h

Issue 918673002: Adding new benchmark to test image decoding performance. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
« no previous file with comments | « no previous file | bench/SKDBench.cpp » ('j') | bench/SKDBench.cpp » ('J')
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"
scroggo 2015/02/11 19:38:10 I don't think you need to include SkImageDecoder.h
msarett 2015/02/11 21:57:01 Done.
10
11 /*
12 *
13 * This benchmark is designed to test the performance of image decoding.
14 * It is invoked from the nanobench.cpp file.
15 *
16 */
17 class SKDBench : public Benchmark {
mtklein 2015/02/11 19:15:36 Let's call it DecodingBench? D is a little vague,
scroggo 2015/02/11 19:38:10 +1 I also think we should remove the existing Dec
msarett 2015/02/11 21:57:01 Done.
msarett 2015/02/11 21:57:01 Done.
18 public:
19 SKDBench(const char* name, SkString path, SkColorType colorType);
scroggo 2015/02/11 19:38:10 What is "name"? It looks like we always use "SKD"?
msarett 2015/02/11 21:57:01 Done.
20
21 protected:
22 const char* onGetName() SK_OVERRIDE;
23 bool isSuitableFor(Backend backend) SK_OVERRIDE;
24 void onDraw(const int n, SkCanvas* canvas) SK_OVERRIDE;
25
26 private:
27 SkString fName;
28 SkString fPath;
29 SkColorType fColorType;
30 typedef Benchmark INHERITED;
31 };
OLDNEW
« no previous file with comments | « no previous file | bench/SKDBench.cpp » ('j') | bench/SKDBench.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698