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

Side by Side Diff: bench/nanobench.h

Issue 1316233002: Style Change: NULL->nullptr (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-27 (Thursday) 10:25:06 EDT Created 5 years, 3 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/VertBench.cpp ('k') | bench/nanobench.cpp » ('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 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
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
OLDNEW
« no previous file with comments | « bench/VertBench.cpp ('k') | bench/nanobench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698