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

Side by Side Diff: bench/MipMapBench.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/MathBench.cpp ('k') | bench/MorphologyBench.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 #include "Benchmark.h" 8 #include "Benchmark.h"
9 #include "SkBitmap.h" 9 #include "SkBitmap.h"
10 #include "SkMipMap.h" 10 #include "SkMipMap.h"
(...skipping 11 matching lines...) Expand all
22 22
23 const char* onGetName() override { return "mipmap_build"; } 23 const char* onGetName() override { return "mipmap_build"; }
24 24
25 void onPreDraw() override { 25 void onPreDraw() override {
26 fBitmap.allocN32Pixels(1000, 1000, true); 26 fBitmap.allocN32Pixels(1000, 1000, true);
27 fBitmap.eraseColor(SK_ColorWHITE); // so we don't read uninitialized me mory 27 fBitmap.eraseColor(SK_ColorWHITE); // so we don't read uninitialized me mory
28 } 28 }
29 29
30 void onDraw(const int loops, SkCanvas*) override { 30 void onDraw(const int loops, SkCanvas*) override {
31 for (int i = 0; i < loops; i++) { 31 for (int i = 0; i < loops; i++) {
32 SkMipMap::Build(fBitmap, NULL)->unref(); 32 SkMipMap::Build(fBitmap, nullptr)->unref();
33 } 33 }
34 } 34 }
35 35
36 private: 36 private:
37 typedef Benchmark INHERITED; 37 typedef Benchmark INHERITED;
38 }; 38 };
39 39
40 DEF_BENCH( return new MipMapBench; ) 40 DEF_BENCH( return new MipMapBench; )
OLDNEW
« no previous file with comments | « bench/MathBench.cpp ('k') | bench/MorphologyBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698