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

Side by Side Diff: bench/RectanizerBench.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, 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/RecordingBench.cpp ('k') | bench/RepeatTileBench.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 7
8 #include "Benchmark.h" 8 #include "Benchmark.h"
9 #include "SkRandom.h" 9 #include "SkRandom.h"
10 #include "SkSize.h" 10 #include "SkSize.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 protected: 66 protected:
67 bool isSuitableFor(Backend backend) override { 67 bool isSuitableFor(Backend backend) override {
68 return kNonRendering_Backend == backend; 68 return kNonRendering_Backend == backend;
69 } 69 }
70 70
71 const char* onGetName() override { 71 const char* onGetName() override {
72 return fName.c_str(); 72 return fName.c_str();
73 } 73 }
74 74
75 void onPreDraw() override { 75 void onPreDraw() override {
76 SkASSERT(NULL == fRectanizer.get()); 76 SkASSERT(nullptr == fRectanizer.get());
77 77
78 if (kPow2_RectanizerType == fRectanizerType) { 78 if (kPow2_RectanizerType == fRectanizerType) {
79 fRectanizer.reset(new GrRectanizerPow2(kWidth, kHeight)); 79 fRectanizer.reset(new GrRectanizerPow2(kWidth, kHeight));
80 } else { 80 } else {
81 SkASSERT(kSkyline_RectanizerType == fRectanizerType); 81 SkASSERT(kSkyline_RectanizerType == fRectanizerType);
82 fRectanizer.reset(new GrRectanizerSkyline(kWidth, kHeight)); 82 fRectanizer.reset(new GrRectanizerSkyline(kWidth, kHeight));
83 } 83 }
84 } 84 }
85 85
86 void onDraw(const int loops, SkCanvas* canvas) override { 86 void onDraw(const int loops, SkCanvas* canvas) override {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 DEF_BENCH(return new RectanizerBench(RectanizerBench::kPow2_RectanizerType, 129 DEF_BENCH(return new RectanizerBench(RectanizerBench::kPow2_RectanizerType,
130 RectanizerBench::kSmallPow2_RectType);) 130 RectanizerBench::kSmallPow2_RectType);)
131 DEF_BENCH(return new RectanizerBench(RectanizerBench::kSkyline_RectanizerType, 131 DEF_BENCH(return new RectanizerBench(RectanizerBench::kSkyline_RectanizerType,
132 RectanizerBench::kRand_RectType);) 132 RectanizerBench::kRand_RectType);)
133 DEF_BENCH(return new RectanizerBench(RectanizerBench::kSkyline_RectanizerType, 133 DEF_BENCH(return new RectanizerBench(RectanizerBench::kSkyline_RectanizerType,
134 RectanizerBench::kRandPow2_RectType);) 134 RectanizerBench::kRandPow2_RectType);)
135 DEF_BENCH(return new RectanizerBench(RectanizerBench::kSkyline_RectanizerType, 135 DEF_BENCH(return new RectanizerBench(RectanizerBench::kSkyline_RectanizerType,
136 RectanizerBench::kSmallPow2_RectType);) 136 RectanizerBench::kSmallPow2_RectType);)
137 137
138 #endif 138 #endif
OLDNEW
« no previous file with comments | « bench/RecordingBench.cpp ('k') | bench/RepeatTileBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698