| Index: src/device/xps/SkXPSDevice.cpp
|
| diff --git a/src/device/xps/SkXPSDevice.cpp b/src/device/xps/SkXPSDevice.cpp
|
| index 7b97d3f8b5285335a3b538a8096047ab4093ce91..f2901316c28d9dcdc42d573a0023933e1fabeb81 100644
|
| --- a/src/device/xps/SkXPSDevice.cpp
|
| +++ b/src/device/xps/SkXPSDevice.cpp
|
| @@ -106,10 +106,11 @@ static HRESULT create_id(wchar_t* buffer, size_t bufferSize,
|
|
|
| static SkBitmap make_fake_bitmap(int width, int height) {
|
| SkBitmap bitmap;
|
| - bitmap.setConfig(SkBitmap::kNo_Config, width, height);
|
| + bitmap.setConfig(SkImageInfo::MakeUnknown(width, height));
|
| return bitmap;
|
| }
|
|
|
| +// TODO: should inherit from SkBaseDevice instead of SkBitmapDevice...
|
| SkXPSDevice::SkXPSDevice()
|
| : SkBitmapDevice(make_fake_bitmap(10000, 10000))
|
| , fCurrentPage(0) {
|
|
|