| Index: src/device/xps/SkXPSDevice.cpp
|
| diff --git a/src/device/xps/SkXPSDevice.cpp b/src/device/xps/SkXPSDevice.cpp
|
| index 62161df296eaf130d6e77b40ca70174569ef499a..bdc612fae6d1608e0203d9134da7bef5934d20a0 100644
|
| --- a/src/device/xps/SkXPSDevice.cpp
|
| +++ b/src/device/xps/SkXPSDevice.cpp
|
| @@ -106,7 +106,7 @@ static HRESULT create_id(wchar_t* buffer, size_t bufferSize,
|
|
|
| static SkBitmap make_fake_bitmap(int width, int height) {
|
| SkBitmap bitmap;
|
| - bitmap.setConfig(SkImageInfo::MakeUnknown(width, height));
|
| + bitmap.setInfo(SkImageInfo::MakeUnknown(width, height));
|
| return bitmap;
|
| }
|
|
|
| @@ -1589,11 +1589,7 @@ HRESULT SkXPSDevice::applyMask(const SkDraw& d,
|
| xy[1] = (SkShader::TileMode)3;
|
|
|
| SkBitmap bm;
|
| - bm.setConfig(SkBitmap::kA8_Config,
|
| - mask.fBounds.width(),
|
| - mask.fBounds.height(),
|
| - mask.fRowBytes);
|
| - bm.setPixels(mask.fImage);
|
| + bm.installMaskPixels(mask);
|
|
|
| SkTScopedComPtr<IXpsOMTileBrush> maskBrush;
|
| HR(this->createXpsImageBrush(bm, m, xy, 0xFF, &maskBrush));
|
|
|