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

Side by Side Diff: bench/GMBench.cpp

Issue 425393004: SKPs-as-benches in nanobench (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: guard the HEADER Created 6 years, 4 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/GMBench.h ('k') | bench/SKPBench.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 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 #include "GMBench.h" 8 #include "GMBench.h"
9 9
10 GMBench::GMBench(skiagm::GM* gm) : fGM(gm) { 10 GMBench::GMBench(skiagm::GM* gm) : fGM(gm) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 fGM->drawBackground(canvas); 42 fGM->drawBackground(canvas);
43 for (int i = 0; i < loops; ++i) { 43 for (int i = 0; i < loops; ++i) {
44 fGM->drawContent(canvas); 44 fGM->drawContent(canvas);
45 } 45 }
46 } 46 }
47 47
48 SkIPoint GMBench::onGetSize() { 48 SkIPoint GMBench::onGetSize() {
49 SkISize size = fGM->getISize(); 49 SkISize size = fGM->getISize();
50 return SkIPoint::Make(size.fWidth, size.fHeight); 50 return SkIPoint::Make(size.fWidth, size.fHeight);
51 } 51 }
52
OLDNEW
« no previous file with comments | « bench/GMBench.h ('k') | bench/SKPBench.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698