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

Side by Side Diff: bench/GeometryBench.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/GameBench.cpp ('k') | bench/GrMemoryPoolBench.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 "SkGeometry.h" 9 #include "SkGeometry.h"
10 #include "SkRandom.h" 10 #include "SkRandom.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 //////// 179 ////////
180 180
181 class EvalQuadTangentAt0 : public QuadBenchBase { 181 class EvalQuadTangentAt0 : public QuadBenchBase {
182 public: 182 public:
183 EvalQuadTangentAt0() : QuadBenchBase("evalquadtangentat0") {} 183 EvalQuadTangentAt0() : QuadBenchBase("evalquadtangentat0") {}
184 protected: 184 protected:
185 void onDraw(const int loops, SkCanvas* canvas) override { 185 void onDraw(const int loops, SkCanvas* canvas) override {
186 SkPoint result; 186 SkPoint result;
187 for (int outer = 0; outer < loops; ++outer) { 187 for (int outer = 0; outer < loops; ++outer) {
188 SkEvalQuadAt(fPts, 0.5f, NULL, &result); 188 SkEvalQuadAt(fPts, 0.5f, nullptr, &result);
189 SkEvalQuadAt(fPts, 0.5f, NULL, &result); 189 SkEvalQuadAt(fPts, 0.5f, nullptr, &result);
190 SkEvalQuadAt(fPts, 0.5f, NULL, &result); 190 SkEvalQuadAt(fPts, 0.5f, nullptr, &result);
191 SkEvalQuadAt(fPts, 0.5f, NULL, &result); 191 SkEvalQuadAt(fPts, 0.5f, nullptr, &result);
192 } 192 }
193 } 193 }
194 }; 194 };
195 DEF_BENCH( return new EvalQuadTangentAt0; ) 195 DEF_BENCH( return new EvalQuadTangentAt0; )
196 196
197 class EvalQuadTangentAt1 : public QuadBenchBase { 197 class EvalQuadTangentAt1 : public QuadBenchBase {
198 public: 198 public:
199 EvalQuadTangentAt1() : QuadBenchBase("evalquadtangentat1") {} 199 EvalQuadTangentAt1() : QuadBenchBase("evalquadtangentat1") {}
200 protected: 200 protected:
201 void onDraw(const int loops, SkCanvas* canvas) override { 201 void onDraw(const int loops, SkCanvas* canvas) override {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 for (int outer = 0; outer < loops; ++outer) { 237 for (int outer = 0; outer < loops; ++outer) {
238 SkChopCubicAt(fPts, dst, 0.5f); 238 SkChopCubicAt(fPts, dst, 0.5f);
239 SkChopCubicAt(fPts, dst, 0.5f); 239 SkChopCubicAt(fPts, dst, 0.5f);
240 SkChopCubicAt(fPts, dst, 0.5f); 240 SkChopCubicAt(fPts, dst, 0.5f);
241 SkChopCubicAt(fPts, dst, 0.5f); 241 SkChopCubicAt(fPts, dst, 0.5f);
242 } 242 }
243 } 243 }
244 }; 244 };
245 DEF_BENCH( return new ChopCubicAt; ) 245 DEF_BENCH( return new ChopCubicAt; )
246 246
OLDNEW
« no previous file with comments | « bench/GameBench.cpp ('k') | bench/GrMemoryPoolBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698