diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2020-04-23 17:15:30 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2020-04-23 21:25:58 +0200 |
commit | e18570e5e0ff0b656bfad2b4c1a7da54a4f0649f (patch) | |
tree | 8ae39b31d95306f5a90d6e2e33fa77ba2066d115 /vcl/skia | |
parent | f6e7ff90718f7991bce6c642b9baef707e561ea5 (diff) |
use rectangle rather than point+size for debug output
And use SkIRect rather than tools::Rectangle because the latter
messes up the size.
Change-Id: Iaba609635b63bd65092a9a66f2df5426e40e9d2c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92794
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl/skia')
-rw-r--r-- | vcl/skia/gdiimpl.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/vcl/skia/gdiimpl.cxx b/vcl/skia/gdiimpl.cxx index 2ed26e7d348e..9dd9b6eb2418 100644 --- a/vcl/skia/gdiimpl.cxx +++ b/vcl/skia/gdiimpl.cxx @@ -626,9 +626,9 @@ void SkiaSalGraphicsImpl::privateDrawAlphaRect(long nX, long nY, long nWidth, lo double fTransparency, bool blockAA) { preDraw(); - SAL_INFO("vcl.skia.trace", "privatedrawrect(" << this << "): " << Point(nX, nY) << "/" - << Size(nWidth, nHeight) << ":" << mLineColor - << ":" << mFillColor << ":" << fTransparency); + SAL_INFO("vcl.skia.trace", + "privatedrawrect(" << this << "): " << SkIRect::MakeXYWH(nX, nY, nWidth, nHeight) + << ":" << mLineColor << ":" << mFillColor << ":" << fTransparency); SkCanvas* canvas = getDrawCanvas(); SkPaint paint; paint.setAntiAlias(!blockAA && mParent.getAntiAliasB2DDraw()); @@ -922,9 +922,9 @@ void SkiaSalGraphicsImpl::copyArea(long nDestX, long nDestY, long nSrcX, long nS if (nDestX == nSrcX && nDestY == nSrcY) return; preDraw(); - SAL_INFO("vcl.skia.trace", "copyarea(" << this << "): " << Point(nSrcX, nSrcY) << "->" - << Point(nDestX, nDestY) << "/" - << Size(nSrcWidth, nSrcHeight)); + SAL_INFO("vcl.skia.trace", "copyarea(" + << this << "): " << Point(nSrcX, nSrcY) << "->" + << SkIRect::MakeXYWH(nDestX, nDestY, nSrcWidth, nSrcHeight)); assert(!mXorMode); ::copyArea(getDrawCanvas(), mSurface, nDestX, nDestY, nSrcX, nSrcY, nSrcWidth, nSrcHeight); addXorRegion(SkRect::MakeXYWH(nDestX, nDestY, nSrcWidth, nSrcHeight)); @@ -1095,7 +1095,7 @@ std::shared_ptr<SalBitmap> SkiaSalGraphicsImpl::getBitmap(long nX, long nY, long SkiaZone zone; checkSurface(); SAL_INFO("vcl.skia.trace", - "getbitmap(" << this << "): " << Point(nX, nY) << "/" << Size(nWidth, nHeight)); + "getbitmap(" << this << "): " << SkIRect::MakeXYWH(nX, nY, nWidth, nHeight)); flushDrawing(); // TODO makeImageSnapshot(rect) may copy the data, which may be a waste if this is used // e.g. for VirtualDevice's lame alpha blending, in which case the image will eventually end up |