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

Side by Side Diff: bench/SkGMBench.h

Issue 347823004: Remove Sk prefix from some bench classes. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: SkGMBench -> GMBench Created 6 years, 6 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/SkBenchmark.cpp ('k') | bench/SkGMBench.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2014 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 "SkBenchmark.h"
9 #include "gm.h"
10 #include "SkCanvas.h"
11
12 /**
13 * Runs a GM as a benchmark by repeatedly drawing the GM.
14 */
15 class SkGMBench : public SkBenchmark {
16 public:
17 // Constructor takes ownership of the GM param.
18 SkGMBench(skiagm::GM* gm);
19 virtual ~SkGMBench();
20
21 protected:
22 virtual const char* onGetName() SK_OVERRIDE;
23 virtual bool isSuitableFor(Backend backend) SK_OVERRIDE;
24 virtual void onDraw(const int loops, SkCanvas* canvas) SK_OVERRIDE;
25 virtual SkIPoint onGetSize() SK_OVERRIDE;
26
27 private:
28 skiagm::GM* fGM;
29 SkString fName;
30 typedef SkBenchmark INHERITED;
31 };
OLDNEW
« no previous file with comments | « bench/SkBenchmark.cpp ('k') | bench/SkGMBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698