[Libreoffice-commits] core.git: vcl/skia

Luboš Luňák (via logerrit) logerrit at kemper.freedesktop.org
Fri Apr 24 15:59:13 UTC 2020


 vcl/skia/win/gdiimpl.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 782b0474e4fa28a13b5421f78b45d2da2ce208be
Author:     Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Fri Apr 24 17:56:38 2020 +0200
Commit:     Luboš Luňák <l.lunak at collabora.com>
CommitDate: Fri Apr 24 17:58:32 2020 +0200

    debug info for Skia Windows widget drawing
    
    Change-Id: Icbf4c9e2a0fd37eaeb900e1074eabbe7949f3de9

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();
 


More information about the Libreoffice-commits mailing list