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

Side by Side Diff: src/svg/SkSVGDevice.h

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 | « src/sfnt/SkOTUtils.cpp ('k') | src/svg/SkSVGDevice.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 #ifndef SkSVGDevice_DEFINED 8 #ifndef SkSVGDevice_DEFINED
9 #define SkSVGDevice_DEFINED 9 #define SkSVGDevice_DEFINED
10 10
11 #include "SkDevice.h" 11 #include "SkDevice.h"
12 12
13 class SkXMLWriter; 13 class SkXMLWriter;
14 14
15 class SkSVGDevice : public SkBaseDevice { 15 class SkSVGDevice : public SkBaseDevice {
16 public: 16 public:
17 static SkBaseDevice* Create(const SkISize& size, SkXMLWriter* writer); 17 static SkBaseDevice* Create(const SkISize& size, SkXMLWriter* writer);
18 18
19 SkImageInfo imageInfo() const override; 19 SkImageInfo imageInfo() const override;
20 20
21 protected: 21 protected:
22 void drawPaint(const SkDraw&, const SkPaint& paint) override; 22 void drawPaint(const SkDraw&, const SkPaint& paint) override;
23 void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t count, 23 void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t count,
24 const SkPoint[], const SkPaint& paint) override; 24 const SkPoint[], const SkPaint& paint) override;
25 void drawRect(const SkDraw&, const SkRect& r, const SkPaint& paint) override ; 25 void drawRect(const SkDraw&, const SkRect& r, const SkPaint& paint) override ;
26 void drawOval(const SkDraw&, const SkRect& oval, const SkPaint& paint) overr ide; 26 void drawOval(const SkDraw&, const SkRect& oval, const SkPaint& paint) overr ide;
27 void drawRRect(const SkDraw&, const SkRRect& rr, const SkPaint& paint) overr ide; 27 void drawRRect(const SkDraw&, const SkRRect& rr, const SkPaint& paint) overr ide;
28 void drawPath(const SkDraw&, const SkPath& path, 28 void drawPath(const SkDraw&, const SkPath& path,
29 const SkPaint& paint, 29 const SkPaint& paint,
30 const SkMatrix* prePathMatrix = NULL, 30 const SkMatrix* prePathMatrix = nullptr,
31 bool pathIsMutable = false) override; 31 bool pathIsMutable = false) override;
32 32
33 void drawBitmap(const SkDraw&, const SkBitmap& bitmap, 33 void drawBitmap(const SkDraw&, const SkBitmap& bitmap,
34 const SkMatrix& matrix, const SkPaint& paint) override; 34 const SkMatrix& matrix, const SkPaint& paint) override;
35 void drawSprite(const SkDraw&, const SkBitmap& bitmap, 35 void drawSprite(const SkDraw&, const SkBitmap& bitmap,
36 int x, int y, const SkPaint& paint) override; 36 int x, int y, const SkPaint& paint) override;
37 void drawBitmapRect(const SkDraw&, const SkBitmap&, 37 void drawBitmapRect(const SkDraw&, const SkBitmap&,
38 const SkRect* srcOrNull, const SkRect& dst, 38 const SkRect* srcOrNull, const SkRect& dst,
39 const SkPaint& paint, SkCanvas::SrcRectConstraint) overr ide; 39 const SkPaint& paint, SkCanvas::SrcRectConstraint) overr ide;
40 40
(...skipping 26 matching lines...) Expand all
67 67
68 SkXMLWriter* fWriter; 68 SkXMLWriter* fWriter;
69 SkAutoTDelete<AutoElement> fRootElement; 69 SkAutoTDelete<AutoElement> fRootElement;
70 SkAutoTDelete<ResourceBucket> fResourceBucket; 70 SkAutoTDelete<ResourceBucket> fResourceBucket;
71 SkBitmap fLegacyBitmap; 71 SkBitmap fLegacyBitmap;
72 72
73 typedef SkBaseDevice INHERITED; 73 typedef SkBaseDevice INHERITED;
74 }; 74 };
75 75
76 #endif // SkSVGDevice_DEFINED 76 #endif // SkSVGDevice_DEFINED
OLDNEW
« no previous file with comments | « src/sfnt/SkOTUtils.cpp ('k') | src/svg/SkSVGDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698