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

Side by Side Diff: samplecode/SampleManyRects.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/SampleLua.cpp ('k') | samplecode/SampleMeasure.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 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #include "SampleCode.h" 8 #include "SampleCode.h"
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkDevice.h" 10 #include "SkDevice.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 SkRect clipRect = rect; 58 SkRect clipRect = rect;
59 // This clip will always contain the entire rect. It's here to give the GPU batching 59 // This clip will always contain the entire rect. It's here to give the GPU batching
60 // code a little more challenge. 60 // code a little more challenge.
61 clipRect.outset(10, 10); 61 clipRect.outset(10, 10);
62 canvas->clipRect(clipRect); 62 canvas->clipRect(clipRect);
63 SkPaint paint; 63 SkPaint paint;
64 paint.setColor(fRandom.nextU()); 64 paint.setColor(fRandom.nextU());
65 canvas->drawRect(rect, paint); 65 canvas->drawRect(rect, paint);
66 canvas->restore(); 66 canvas->restore();
67 } 67 }
68 this->inval(NULL); 68 this->inval(nullptr);
69 } 69 }
70 70
71 private: 71 private:
72 SkRandom fRandom; 72 SkRandom fRandom;
73 typedef SampleView INHERITED; 73 typedef SampleView INHERITED;
74 }; 74 };
75 75
76 ////////////////////////////////////////////////////////////////////////////// 76 //////////////////////////////////////////////////////////////////////////////
77 77
78 static SkView* MyFactory() { return new ManyRectsView; } 78 static SkView* MyFactory() { return new ManyRectsView; }
79 static SkViewRegister reg(MyFactory); 79 static SkViewRegister reg(MyFactory);
OLDNEW
« no previous file with comments | « samplecode/SampleLua.cpp ('k') | samplecode/SampleMeasure.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698