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

Side by Side Diff: bench/DecodingBench.h

Issue 1037793002: C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: git cl web Created 5 years, 9 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/DashBench.cpp ('k') | bench/DecodingSubsetBench.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "Benchmark.h" 8 #include "Benchmark.h"
9 #include "SkImageDecoder.h" 9 #include "SkImageDecoder.h"
10 #include "SkImageInfo.h" 10 #include "SkImageInfo.h"
11 #include "SkStream.h" 11 #include "SkStream.h"
12 #include "SkString.h" 12 #include "SkString.h"
13 13
14 /* 14 /*
15 * 15 *
16 * This benchmark is designed to test the performance of image decoding. 16 * This benchmark is designed to test the performance of image decoding.
17 * It is invoked from the nanobench.cpp file. 17 * It is invoked from the nanobench.cpp file.
18 * 18 *
19 */ 19 */
20 class DecodingBench : public Benchmark { 20 class DecodingBench : public Benchmark {
21 public: 21 public:
22 DecodingBench(SkString path, SkColorType colorType); 22 DecodingBench(SkString path, SkColorType colorType);
23 23
24 protected: 24 protected:
25 const char* onGetName() SK_OVERRIDE; 25 const char* onGetName() override;
26 bool isSuitableFor(Backend backend) SK_OVERRIDE; 26 bool isSuitableFor(Backend backend) override;
27 void onDraw(const int n, SkCanvas* canvas) SK_OVERRIDE; 27 void onDraw(const int n, SkCanvas* canvas) override;
28 28
29 private: 29 private:
30 SkString fName; 30 SkString fName;
31 SkColorType fColorType; 31 SkColorType fColorType;
32 SkAutoTDelete<SkMemoryStream> fStream; 32 SkAutoTDelete<SkMemoryStream> fStream;
33 SkAutoTDelete<SkImageDecoder> fDecoder; 33 SkAutoTDelete<SkImageDecoder> fDecoder;
34 typedef Benchmark INHERITED; 34 typedef Benchmark INHERITED;
35 }; 35 };
OLDNEW
« no previous file with comments | « bench/DashBench.cpp ('k') | bench/DecodingSubsetBench.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698