summaryrefslogtreecommitdiff
path: root/vcl/skia
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2020-04-24 17:56:38 +0200
committerLuboš Luňák <l.lunak@collabora.com>2020-04-24 17:58:32 +0200
commit782b0474e4fa28a13b5421f78b45d2da2ce208be (patch)
tree17c344aa976975b5bc0e7ceb477e2af53ecd6e52 /vcl/skia
parent16309a9516c1f173056fc103c6428e74217c7927 (diff)
debug info for Skia Windows widget drawing
Change-Id: Icbf4c9e2a0fd37eaeb900e1074eabbe7949f3de9
Diffstat (limited to 'vcl/skia')
-rw-r--r--vcl/skia/win/gdiimpl.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/skia/win/gdiimpl.cxx b/vcl/skia/win/gdiimpl.cxx
index cb5b9c115e4f..f65eb7cc69eb 100644
--- a/vcl/skia/win/gdiimpl.cxx
+++ b/vcl/skia/win/gdiimpl.cxx
@@ -84,6 +84,10 @@ bool WinSkiaSalGraphicsImpl::TryRenderCachedNativeControl(ControlCacheKey const&
return false;
preDraw();
+ SAL_INFO("vcl.skia.trace", "tryrendercachednativecontrol("
+ << this << "): "
+ << SkIRect::MakeXYWH(nX, nY, iterator->second->width(),
+ iterator->second->height()));
mSurface->getCanvas()->drawImage(iterator->second, nX, nY);
postDraw();
return true;
@@ -99,6 +103,9 @@ bool WinSkiaSalGraphicsImpl::RenderAndCacheNativeControl(CompatibleDC& rWhite, C
sk_sp<SkImage> image = static_cast<SkiaCompatibleDC&>(rBlack).getAsImageDiff(
static_cast<SkiaCompatibleDC&>(rWhite));
preDraw();
+ SAL_INFO("vcl.skia.trace",
+ "renderandcachednativecontrol("
+ << this << "): " << SkIRect::MakeXYWH(nX, nY, image->width(), image->height()));
mSurface->getCanvas()->drawImage(image, nX, nY);
postDraw();