Index: src/svg/SkSVGDevice.cpp |
diff --git a/src/svg/SkSVGDevice.cpp b/src/svg/SkSVGDevice.cpp |
index f0805b5432b96b9f38d77713728a0599811b7795..4330901b7e859c489104f19b072a59503009df22 100644 |
--- a/src/svg/SkSVGDevice.cpp |
+++ b/src/svg/SkSVGDevice.cpp |
@@ -572,11 +572,10 @@ SkBaseDevice* SkSVGDevice::Create(const SkISize& size, SkXMLWriter* writer) { |
SkSVGDevice::SkSVGDevice(const SkISize& size, SkXMLWriter* writer) |
: INHERITED(SkSurfaceProps(0, kUnknown_SkPixelGeometry)) |
, fWriter(writer) |
- , fResourceBucket(new ResourceBucket) { |
+ , fResourceBucket(new ResourceBucket) |
+ , fSize(size) { |
SkASSERT(writer); |
- fLegacyBitmap.setInfo(SkImageInfo::MakeUnknown(size.width(), size.height())); |
- |
fWriter->writeHeader(); |
// The root <svg> tag gets closed by the destructor. |
@@ -592,11 +591,8 @@ SkSVGDevice::~SkSVGDevice() { |
} |
SkImageInfo SkSVGDevice::imageInfo() const { |
- return fLegacyBitmap.info(); |
-} |
- |
-const SkBitmap& SkSVGDevice::onAccessBitmap() { |
- return fLegacyBitmap; |
+ SkImageInfo info = SkImageInfo::MakeUnknown(fSize.fWidth, fSize.fHeight); |
+ return info; |
} |
void SkSVGDevice::drawPaint(const SkDraw& draw, const SkPaint& paint) { |