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

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

Issue 959883003: [SkSVGDevice] drawBitmap* support (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: win warning fix Created 5 years, 9 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 | 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
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « no previous file | src/svg/SkSVGDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698