| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 const SkPaint& paint) SK_OVERRIDE; | 54 const SkPaint& paint) SK_OVERRIDE; |
| 55 | 55 |
| 56 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, | 56 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, |
| 57 const SkPaint&) SK_OVERRIDE; | 57 const SkPaint&) SK_OVERRIDE; |
| 58 virtual const SkBitmap& onAccessBitmap() SK_OVERRIDE; | 58 virtual const SkBitmap& onAccessBitmap() SK_OVERRIDE; |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 SkSVGDevice(const SkISize& size, SkXMLWriter* writer); | 61 SkSVGDevice(const SkISize& size, SkXMLWriter* writer); |
| 62 virtual ~SkSVGDevice(); | 62 virtual ~SkSVGDevice(); |
| 63 | 63 |
| 64 void drawBitmapCommon(const SkDraw& draw, const SkBitmap& bm, const SkPaint&
paint); |
| 65 |
| 64 class AutoElement; | 66 class AutoElement; |
| 65 class ResourceBucket; | 67 class ResourceBucket; |
| 66 | 68 |
| 67 SkXMLWriter* fWriter; | 69 SkXMLWriter* fWriter; |
| 68 SkAutoTDelete<AutoElement> fRootElement; | 70 SkAutoTDelete<AutoElement> fRootElement; |
| 69 SkAutoTDelete<ResourceBucket> fResourceBucket; | 71 SkAutoTDelete<ResourceBucket> fResourceBucket; |
| 70 SkBitmap fLegacyBitmap; | 72 SkBitmap fLegacyBitmap; |
| 71 }; | 73 }; |
| 72 | 74 |
| 73 #endif // SkSVGDevice_DEFINED | 75 #endif // SkSVGDevice_DEFINED |
| OLD | NEW |