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

Side by Side Diff: tools/PictureResultsWriter.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 | « tools/PictureRenderingFlags.cpp ('k') | tools/Resources.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 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 * Classes for writing out bench results in various formats. 7 * Classes for writing out bench results in various formats.
8 */ 8 */
9 9
10 #ifndef SkPictureResultsWriter_DEFINED 10 #ifndef SkPictureResultsWriter_DEFINED
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 private: 97 private:
98 SkTArray<PictureResultsWriter*> fWriters; 98 SkTArray<PictureResultsWriter*> fWriters;
99 }; 99 };
100 100
101 /** 101 /**
102 * Writes to BenchLogger to mimic original behavior 102 * Writes to BenchLogger to mimic original behavior
103 */ 103 */
104 class PictureResultsLoggerWriter : public PictureResultsWriter { 104 class PictureResultsLoggerWriter : public PictureResultsWriter {
105 private: 105 private:
106 void logProgress(const char str[]) { 106 void logProgress(const char str[]) {
107 if(fLogger != NULL) { 107 if(fLogger != nullptr) {
108 fLogger->logProgress(str); 108 fLogger->logProgress(str);
109 } 109 }
110 } 110 }
111 public: 111 public:
112 PictureResultsLoggerWriter(BenchLogger* log) 112 PictureResultsLoggerWriter(BenchLogger* log)
113 : fLogger(log), fCurrentLine() {} 113 : fLogger(log), fCurrentLine() {}
114 void bench(const char name[], int32_t x, int32_t y) override { 114 void bench(const char name[], int32_t x, int32_t y) override {
115 SkString result; 115 SkString result;
116 result.printf("running bench [%i %i] %s ", x, y, name); 116 result.printf("running bench [%i %i] %s ", x, y, name);
117 this->logProgress(result.c_str()); 117 this->logProgress(result.c_str());
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 303
304 SkString fConfigString; 304 SkString fConfigString;
305 SkString fBuilderName; 305 SkString fBuilderName;
306 int fBuildNumber; 306 int fBuildNumber;
307 int fTimestamp; 307 int fTimestamp;
308 SkString fGitHash; 308 SkString fGitHash;
309 int fGitNumber; 309 int fGitNumber;
310 }; 310 };
311 311
312 #endif 312 #endif
OLDNEW
« no previous file with comments | « tools/PictureRenderingFlags.cpp ('k') | tools/Resources.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698