Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 }; | |
| OLD | NEW |