Index: src/core/SkDevice.cpp |
diff --git a/src/core/SkDevice.cpp b/src/core/SkDevice.cpp |
index 5eaf44d419028fee172d7ff61dac6552ca7d00c0..4534c2fea2bc3c6da6e7ddfe43d60f4ced252633 100644 |
--- a/src/core/SkDevice.cpp |
+++ b/src/core/SkDevice.cpp |
@@ -24,7 +24,10 @@ |
#include "SkTextBlobRunIterator.h" |
#include "SkTextToPathIter.h" |
-SkBaseDevice::SkBaseDevice(const SkSurfaceProps& surfaceProps) : fSurfaceProps(surfaceProps) { |
+SkBaseDevice::SkBaseDevice(const SkImageInfo& info, const SkSurfaceProps& surfaceProps) |
+ : fInfo(info) |
+ , fSurfaceProps(surfaceProps) |
+{ |
fOrigin.setZero(); |
fMetaData = nullptr; |
} |
@@ -40,10 +43,6 @@ SkMetaData& SkBaseDevice::getMetaData() { |
return *fMetaData; |
} |
-SkImageInfo SkBaseDevice::imageInfo() const { |
- return SkImageInfo::MakeUnknown(); |
-} |
- |
#ifdef SK_SUPPORT_LEGACY_ACCESSBITMAP |
const SkBitmap& SkBaseDevice::accessBitmap(bool changePixels) { |
const SkBitmap& bitmap = this->onAccessBitmap(); |