OLD | NEW |
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 16 matching lines...) Expand all Loading... |
27 fGM->drawBackground(canvas); | 27 fGM->drawBackground(canvas); |
28 for (int i = 0; i < loops; ++i) { | 28 for (int i = 0; i < loops; ++i) { |
29 fGM->drawContent(canvas); | 29 fGM->drawContent(canvas); |
30 } | 30 } |
31 } | 31 } |
32 | 32 |
33 SkIPoint GMBench::onGetSize() { | 33 SkIPoint GMBench::onGetSize() { |
34 SkISize size = fGM->getISize(); | 34 SkISize size = fGM->getISize(); |
35 return SkIPoint::Make(size.fWidth, size.fHeight); | 35 return SkIPoint::Make(size.fWidth, size.fHeight); |
36 } | 36 } |
37 | |
OLD | NEW |