From 900ecf2f1579d42c9d2959831787af0346320f86 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Thu, 20 Feb 2014 20:55:37 +0000 Subject: use colortype instead of config patch from issue 172063004 BUG=skia: R=scroggo@google.com Review URL: https://codereview.chromium.org/173893002 git-svn-id: http://skia.googlecode.com/svn/trunk@13520 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/device/xps/SkXPSDevice.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/device/xps') diff --git a/src/device/xps/SkXPSDevice.cpp b/src/device/xps/SkXPSDevice.cpp index 7b97d3f8b5..f2901316c2 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) { -- cgit v1.2.3