diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/fxge/skia/fx_skia_device.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/fxge/skia/fx_skia_device.cpp b/core/fxge/skia/fx_skia_device.cpp index b00bc8e5c5..89a7902d51 100644 --- a/core/fxge/skia/fx_skia_device.cpp +++ b/core/fxge/skia/fx_skia_device.cpp @@ -568,6 +568,8 @@ CFX_SkiaDeviceDriver::CFX_SkiaDeviceDriver(CFX_DIBitmap* pBitmap, nullptr, /* to do : set color table */ nullptr, nullptr); m_pCanvas = new SkCanvas(skBitmap); + if (m_bGroupKnockout) + SkDebugf(""); // FIXME(caryclark) suppress 'm_bGroupKnockout is unused' } CFX_SkiaDeviceDriver::CFX_SkiaDeviceDriver(int size_x, int size_y) @@ -909,7 +911,8 @@ FX_BOOL CFX_SkiaDeviceDriver::DrawShading(const CPDF_ShadingPattern* pPattern, skClip.transform(skMatrix); } SkMatrix inverse; - skMatrix.invert(&inverse); + if (!skMatrix.invert(&inverse)) + return false; skPath.addRect(skRect); skPath.transform(inverse); } |