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

Side by Side Diff: bench/FontCacheBench.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/ETCBitmapBench.cpp ('k') | bench/GLBench.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 2013 Google Inc. 2 * Copyright 2013 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 "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkChecksum.h" 10 #include "SkChecksum.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 static void dump_array(const uint16_t array[], int count) { 92 static void dump_array(const uint16_t array[], int count) {
93 for (int i = 0; i < count; ++i) { 93 for (int i = 0; i < count; ++i) {
94 SkDebugf(" %d,", array[i]); 94 SkDebugf(" %d,", array[i]);
95 } 95 }
96 SkDebugf("\n"); 96 SkDebugf("\n");
97 } 97 }
98 98
99 class FontCacheEfficiency : public Benchmark { 99 class FontCacheEfficiency : public Benchmark {
100 public: 100 public:
101 FontCacheEfficiency() { 101 FontCacheEfficiency() {
102 if (false) dump_array(NULL, 0); 102 if (false) dump_array(nullptr, 0);
103 if (false) rotr(0, 0); 103 if (false) rotr(0, 0);
104 } 104 }
105 105
106 protected: 106 protected:
107 const char* onGetName() override { 107 const char* onGetName() override {
108 return "fontefficiency"; 108 return "fontefficiency";
109 } 109 }
110 110
111 void onDraw(const int loops, SkCanvas* canvas) override { 111 void onDraw(const int loops, SkCanvas* canvas) override {
112 static bool gDone; 112 static bool gDone;
(...skipping 25 matching lines...) Expand all
138 private: 138 private:
139 typedef Benchmark INHERITED; 139 typedef Benchmark INHERITED;
140 }; 140 };
141 141
142 /////////////////////////////////////////////////////////////////////////////// 142 ///////////////////////////////////////////////////////////////////////////////
143 143
144 DEF_BENCH( return new FontCacheBench(); ) 144 DEF_BENCH( return new FontCacheBench(); )
145 145
146 // undefine this to run the efficiency test 146 // undefine this to run the efficiency test
147 //DEF_BENCH( return new FontCacheEfficiency(); ) 147 //DEF_BENCH( return new FontCacheEfficiency(); )
OLDNEW
« no previous file with comments | « bench/ETCBitmapBench.cpp ('k') | bench/GLBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698