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

Side by Side Diff: gm/fatpathfill.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 | « gm/factory.cpp ('k') | gm/filterbitmap.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 2012 Google Inc. 2 * Copyright 2012 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 "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkPath.h" 10 #include "SkPath.h"
(...skipping 18 matching lines...) Expand all
29 canvas->drawCircle(x + 0.5f, y + 0.5f, 1.5f / ZOOM, paint); 29 canvas->drawCircle(x + 0.5f, y + 0.5f, 1.5f / ZOOM, paint);
30 } 30 }
31 } 31 }
32 } 32 }
33 33
34 static void draw_fatpath(SkCanvas* canvas, SkSurface* surface, const SkPath& pat h) { 34 static void draw_fatpath(SkCanvas* canvas, SkSurface* surface, const SkPath& pat h) {
35 SkPaint paint; 35 SkPaint paint;
36 36
37 surface->getCanvas()->clear(SK_ColorTRANSPARENT); 37 surface->getCanvas()->clear(SK_ColorTRANSPARENT);
38 surface->getCanvas()->drawPath(path, paint); 38 surface->getCanvas()->drawPath(path, paint);
39 surface->draw(canvas, 0, 0, NULL); 39 surface->draw(canvas, 0, 0, nullptr);
40 40
41 paint.setAntiAlias(true); 41 paint.setAntiAlias(true);
42 paint.setColor(SK_ColorRED); 42 paint.setColor(SK_ColorRED);
43 paint.setStyle(SkPaint::kStroke_Style); 43 paint.setStyle(SkPaint::kStroke_Style);
44 canvas->drawPath(path, paint); 44 canvas->drawPath(path, paint);
45 45
46 draw_pixel_centers(canvas); 46 draw_pixel_centers(canvas);
47 } 47 }
48 48
49 class FatPathFillGM : public skiagm::GM { 49 class FatPathFillGM : public skiagm::GM {
(...skipping 30 matching lines...) Expand all
80 } 80 }
81 } 81 }
82 82
83 private: 83 private:
84 typedef skiagm::GM INHERITED; 84 typedef skiagm::GM INHERITED;
85 }; 85 };
86 86
87 /////////////////////////////////////////////////////////////////////////////// 87 ///////////////////////////////////////////////////////////////////////////////
88 88
89 DEF_GM(return new FatPathFillGM;) 89 DEF_GM(return new FatPathFillGM;)
OLDNEW
« no previous file with comments | « gm/factory.cpp ('k') | gm/filterbitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698