| 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 #ifndef nanobench_DEFINED | 8 #ifndef nanobench_DEFINED |
| 9 #define nanobench_DEFINED | 9 #define nanobench_DEFINED |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 71 |
| 72 /** Stores any pixels drawn to the screen in the bitmap. | 72 /** Stores any pixels drawn to the screen in the bitmap. |
| 73 Returns false on error. */ | 73 Returns false on error. */ |
| 74 virtual bool capturePixels(SkBitmap* bmp); | 74 virtual bool capturePixels(SkBitmap* bmp); |
| 75 | 75 |
| 76 /** Writes any config-specific data to the log. */ | 76 /** Writes any config-specific data to the log. */ |
| 77 virtual void fillOptions(ResultsWriter*) { } | 77 virtual void fillOptions(ResultsWriter*) { } |
| 78 | 78 |
| 79 SkCanvas* getCanvas() const { | 79 SkCanvas* getCanvas() const { |
| 80 if (!surface.get()) { | 80 if (!surface.get()) { |
| 81 return NULL; | 81 return nullptr; |
| 82 } | 82 } |
| 83 return surface->getCanvas(); | 83 return surface->getCanvas(); |
| 84 } | 84 } |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 #endif // nanobench_DEFINED | 87 #endif // nanobench_DEFINED |
| OLD | NEW |