OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 "nanobenchAndroid.h" | 8 #include "nanobenchAndroid.h" |
9 | 9 |
10 /* These functions are only compiled in the Android Framework. */ | 10 /* These functions are only compiled in the Android Framework. */ |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 } | 42 } |
43 | 43 |
44 bool HWUITarget::init(SkImageInfo info, Benchmark* bench) { | 44 bool HWUITarget::init(SkImageInfo info, Benchmark* bench) { |
45 this->renderer.initialize(bench->getSize().x(), bench->getSize().y()); | 45 this->renderer.initialize(bench->getSize().x(), bench->getSize().y()); |
46 return true; | 46 return true; |
47 } | 47 } |
48 | 48 |
49 bool HWUITarget::capturePixels(SkBitmap* bmp) { | 49 bool HWUITarget::capturePixels(SkBitmap* bmp) { |
50 return this->renderer.capturePixels(bmp); | 50 return this->renderer.capturePixels(bmp); |
51 } | 51 } |
52 | |
53 | |
OLD | NEW |