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

Side by Side Diff: bench/GMBench.h

Issue 806653007: Fix up all the easy virtual ... SK_OVERRIDE cases. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 11 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/FontCacheBench.cpp ('k') | bench/GameBench.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 #ifndef GMBench_DEFINED 7 #ifndef GMBench_DEFINED
8 #define GMBench_DEFINED 8 #define GMBench_DEFINED
9 9
10 #include "Benchmark.h" 10 #include "Benchmark.h"
11 #include "SkCanvas.h" 11 #include "SkCanvas.h"
12 #include "gm.h" 12 #include "gm.h"
13 13
14 /** 14 /**
15 * Runs a GM as a benchmark by repeatedly drawing the GM. 15 * Runs a GM as a benchmark by repeatedly drawing the GM.
16 */ 16 */
17 class GMBench : public Benchmark { 17 class GMBench : public Benchmark {
18 public: 18 public:
19 // Constructor takes ownership of the GM param. 19 // Constructor takes ownership of the GM param.
20 GMBench(skiagm::GM* gm); 20 GMBench(skiagm::GM* gm);
21 virtual ~GMBench(); 21 virtual ~GMBench();
22 22
23 protected: 23 protected:
24 virtual const char* onGetName() SK_OVERRIDE; 24 const char* onGetName() SK_OVERRIDE;
25 virtual bool isSuitableFor(Backend backend) SK_OVERRIDE; 25 bool isSuitableFor(Backend backend) SK_OVERRIDE;
26 virtual void onDraw(const int loops, SkCanvas* canvas) SK_OVERRIDE; 26 void onDraw(const int loops, SkCanvas* canvas) SK_OVERRIDE;
27 virtual SkIPoint onGetSize() SK_OVERRIDE; 27 SkIPoint onGetSize() SK_OVERRIDE;
28 28
29 private: 29 private:
30 skiagm::GM* fGM; 30 skiagm::GM* fGM;
31 SkString fName; 31 SkString fName;
32 typedef Benchmark INHERITED; 32 typedef Benchmark INHERITED;
33 }; 33 };
34 34
35 #endif 35 #endif
OLDNEW
« no previous file with comments | « bench/FontCacheBench.cpp ('k') | bench/GameBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698