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

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

Issue 892973002: [SkSVGDevice] Initial shader/gradient support (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: final tweak Created 5 years, 10 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 | « no previous file | experimental/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
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 const SkPaint& paint) SK_OVERRIDE; 55 const SkPaint& paint) SK_OVERRIDE;
56 56
57 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, 57 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y,
58 const SkPaint&) SK_OVERRIDE; 58 const SkPaint&) SK_OVERRIDE;
59 virtual const SkBitmap& onAccessBitmap() SK_OVERRIDE; 59 virtual const SkBitmap& onAccessBitmap() SK_OVERRIDE;
60 60
61 private: 61 private:
62 SkSVGDevice(const SkISize& size, SkWStream* wstream); 62 SkSVGDevice(const SkISize& size, SkWStream* wstream);
63 virtual ~SkSVGDevice(); 63 virtual ~SkSVGDevice();
64 64
65 void addPaint(const SkPaint& paint); 65 class AutoElement;
66 void addTransform(const SkMatrix& t); 66 class ResourceBucket;
67 67
68 SkXMLWriter* fWriter; 68 SkAutoTDelete<SkXMLWriter> fWriter;
69 SkBitmap fLegacyBitmap; 69 SkAutoTDelete<AutoElement> fRootElement;
70 SkAutoTDelete<ResourceBucket> fResourceBucket;
71 SkBitmap fLegacyBitmap;
70 }; 72 };
71 73
72 #endif // SkSVGDevice_DEFINED 74 #endif // SkSVGDevice_DEFINED
OLDNEW
« no previous file with comments | « no previous file | experimental/svg/SkSVGDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698