From 690a99c20a0f4cb67a386e64d711023dd8e15bed Mon Sep 17 00:00:00 2001 From: caryclark Date: Mon, 9 May 2016 10:08:18 -0700 Subject: fix linux warnings The Skia variant generates a couple of warnings on the linux build. One of the warning silenced is an unused variable. Once PDFs are identified that exercise this variable, the dummy code will be replaced. R=tsepez@chromium.org Review-Url: https://codereview.chromium.org/1962683002 --- core/fxge/skia/fx_skia_device.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'core/fxge') 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); } -- cgit v1.2.3