OLD | NEW |
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 Loading... |
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 |
OLD | NEW |