Index: src/svg/SkSVGDevice.cpp |
diff --git a/src/svg/SkSVGDevice.cpp b/src/svg/SkSVGDevice.cpp |
index 4330901b7e859c489104f19b072a59503009df22..3ba721ee3902ae4621ee77329f7b91d6111aacf7 100644 |
--- a/src/svg/SkSVGDevice.cpp |
+++ b/src/svg/SkSVGDevice.cpp |
@@ -570,10 +570,11 @@ SkBaseDevice* SkSVGDevice::Create(const SkISize& size, SkXMLWriter* writer) { |
} |
SkSVGDevice::SkSVGDevice(const SkISize& size, SkXMLWriter* writer) |
- : INHERITED(SkSurfaceProps(0, kUnknown_SkPixelGeometry)) |
+ : INHERITED(SkImageInfo::MakeUnknown(size.fWidth, size.fHeight), |
+ SkSurfaceProps(0, kUnknown_SkPixelGeometry)) |
, fWriter(writer) |
, fResourceBucket(new ResourceBucket) |
- , fSize(size) { |
+{ |
SkASSERT(writer); |
fWriter->writeHeader(); |
@@ -590,11 +591,6 @@ SkSVGDevice::SkSVGDevice(const SkISize& size, SkXMLWriter* writer) |
SkSVGDevice::~SkSVGDevice() { |
} |
-SkImageInfo SkSVGDevice::imageInfo() const { |
- SkImageInfo info = SkImageInfo::MakeUnknown(fSize.fWidth, fSize.fHeight); |
- return info; |
-} |
- |
void SkSVGDevice::drawPaint(const SkDraw& draw, const SkPaint& paint) { |
AutoElement rect("rect", fWriter, fResourceBucket, draw, paint); |
rect.addRectAttributes(SkRect::MakeWH(SkIntToScalar(this->width()), |