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

Side by Side Diff: bench/RecordingBench.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/ReadPixBench.cpp ('k') | bench/RectBench.cpp » ('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 2014 Google Inc. 2 * Copyright 2014 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 #ifndef RecordingBench_DEFINED 8 #ifndef RecordingBench_DEFINED
9 #define RecordingBench_DEFINED 9 #define RecordingBench_DEFINED
10 10
11 #include "Benchmark.h" 11 #include "Benchmark.h"
12 #include "SkPicture.h" 12 #include "SkPicture.h"
13 13
14 class RecordingBench : public Benchmark { 14 class RecordingBench : public Benchmark {
15 public: 15 public:
16 RecordingBench(const char* name, const SkPicture*, bool useBBH); 16 RecordingBench(const char* name, const SkPicture*, bool useBBH);
17 17
18 protected: 18 protected:
19 const char* onGetName() SK_OVERRIDE; 19 const char* onGetName() override;
20 bool isSuitableFor(Backend) SK_OVERRIDE; 20 bool isSuitableFor(Backend) override;
21 void onDraw(const int loops, SkCanvas*) SK_OVERRIDE; 21 void onDraw(const int loops, SkCanvas*) override;
22 SkIPoint onGetSize() SK_OVERRIDE; 22 SkIPoint onGetSize() override;
23 23
24 private: 24 private:
25 SkAutoTUnref<const SkPicture> fSrc; 25 SkAutoTUnref<const SkPicture> fSrc;
26 SkString fName; 26 SkString fName;
27 bool fUseBBH; 27 bool fUseBBH;
28 28
29 typedef Benchmark INHERITED; 29 typedef Benchmark INHERITED;
30 }; 30 };
31 31
32 #endif//RecordingBench_DEFINED 32 #endif//RecordingBench_DEFINED
OLDNEW
« no previous file with comments | « bench/ReadPixBench.cpp ('k') | bench/RectBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698