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

Unified Diff: tools/VisualBench/VisualBench.cpp

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, 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/Resources.cpp ('k') | tools/VisualBench/VisualBenchmarkStream.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/VisualBench/VisualBench.cpp
diff --git a/tools/VisualBench/VisualBench.cpp b/tools/VisualBench/VisualBench.cpp
index 0763d5cacc0920292e25bbbf90f320ab81953369..ae3526bfeac39d1387fe441db1afb913fd76a697 100644
--- a/tools/VisualBench/VisualBench.cpp
+++ b/tools/VisualBench/VisualBench.cpp
@@ -56,7 +56,7 @@ VisualBench::VisualBench(void* hwnd, int argc, char** argv)
, fFlushes(1)
, fLoops(1)
, fState(kPreWarmLoops_State)
- , fBenchmark(NULL)
+ , fBenchmark(nullptr)
, fResults(new ResultsWriter) {
SkCommandLineFlags::Parse(argc, argv);
@@ -123,7 +123,7 @@ bool VisualBench::setupBackend() {
}
void VisualBench::resetContext() {
- fSurface.reset(NULL);
+ fSurface.reset(nullptr);
fInterface.reset(GrGLCreateNativeInterface());
SkASSERT(fInterface);
@@ -266,7 +266,7 @@ void VisualBench::draw(SkCanvas* canvas) {
}
// Invalidate the window to force a redraw. Poor man's animation mechanism.
- this->inval(NULL);
+ this->inval(nullptr);
}
inline double VisualBench::elapsed() {
@@ -311,7 +311,7 @@ void VisualBench::recordMeasurement() {
void VisualBench::postDraw(SkCanvas* canvas) {
fBenchmark->perCanvasPostDraw(canvas);
- fBenchmark.reset(NULL);
+ fBenchmark.reset(nullptr);
fCurrentSample = 0;
fFlushes = 1;
fLoops = 1;
« no previous file with comments | « tools/Resources.cpp ('k') | tools/VisualBench/VisualBenchmarkStream.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698