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

Side by Side Diff: samplecode/SampleRectanizer.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 | « samplecode/SampleQuadStroker.cpp ('k') | samplecode/SampleRegion.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 "gm.h" 8 #include "gm.h"
9 #include "SampleCode.h" 9 #include "SampleCode.h"
10 #include "SkRandom.h" 10 #include "SkRandom.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 fCurRandRect, 120 fCurRandRect,
121 kNumRandRects); 121 kNumRandRects);
122 canvas->drawText(str.c_str(), str.size(), 50, kHeight + 50, blackBigFont ); 122 canvas->drawText(str.c_str(), str.size(), 50, kHeight + 50, blackBigFont );
123 123
124 str.printf("Press \'j\' to toggle rectanizer"); 124 str.printf("Press \'j\' to toggle rectanizer");
125 canvas->drawText(str.c_str(), str.size(), 50, kHeight + 100, blackBigFon t); 125 canvas->drawText(str.c_str(), str.size(), 50, kHeight + 100, blackBigFon t);
126 126
127 str.printf("Press \'h\' to toggle rects"); 127 str.printf("Press \'h\' to toggle rects");
128 canvas->drawText(str.c_str(), str.size(), 50, kHeight + 150, blackBigFon t); 128 canvas->drawText(str.c_str(), str.size(), 50, kHeight + 150, blackBigFon t);
129 129
130 this->inval(NULL); 130 this->inval(nullptr);
131 } 131 }
132 132
133 private: 133 private:
134 static const int kWidth = 1024; 134 static const int kWidth = 1024;
135 static const int kHeight = 1024; 135 static const int kHeight = 1024;
136 static const int kNumRandRects = 200; 136 static const int kNumRandRects = 200;
137 static const char kCycleRectanizerKey = 'j'; 137 static const char kCycleRectanizerKey = 'j';
138 static const char kCycleRectsKey = 'h'; 138 static const char kCycleRectsKey = 'h';
139 static const int kMinRectSize = 2; 139 static const int kMinRectSize = 2;
140 static const int kMaxRectSize = 256; 140 static const int kMaxRectSize = 256;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 } 189 }
190 190
191 typedef SampleView INHERITED; 191 typedef SampleView INHERITED;
192 }; 192 };
193 193
194 ////////////////////////////////////////////////////////////////////////////// 194 //////////////////////////////////////////////////////////////////////////////
195 static SkView* MyFactory() { return new RectanizerView; } 195 static SkView* MyFactory() { return new RectanizerView; }
196 static SkViewRegister reg(MyFactory); 196 static SkViewRegister reg(MyFactory);
197 197
198 #endif 198 #endif
OLDNEW
« no previous file with comments | « samplecode/SampleQuadStroker.cpp ('k') | samplecode/SampleRegion.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698