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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 class AutoElement; | 65 class AutoElement; |
66 class ResourceBucket; | 66 class ResourceBucket; |
67 | 67 |
| 68 static void AddFontAttributes(const SkPaint&, AutoElement*); |
| 69 |
68 SkAutoTDelete<SkXMLWriter> fWriter; | 70 SkAutoTDelete<SkXMLWriter> fWriter; |
69 SkAutoTDelete<AutoElement> fRootElement; | 71 SkAutoTDelete<AutoElement> fRootElement; |
70 SkAutoTDelete<ResourceBucket> fResourceBucket; | 72 SkAutoTDelete<ResourceBucket> fResourceBucket; |
71 SkBitmap fLegacyBitmap; | 73 SkBitmap fLegacyBitmap; |
72 }; | 74 }; |
73 | 75 |
74 #endif // SkSVGDevice_DEFINED | 76 #endif // SkSVGDevice_DEFINED |
OLD | NEW |