summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2022-05-31 14:38:02 +0200
committerMichael Stahl <michael.stahl@allotropia.de>2022-05-31 14:41:20 +0200
commit89612b363f3f11248beea6fa98071c80e8ea7a9c (patch)
tree22105f3d9bf9fec77664633ada5852c4cddb1c71 /vcl
parentba87b31c6b1e5a78b26389c9f3e5f3e78093b92e (diff)
vcl: add some WinSalGraphics debug logging
Change-Id: I70f96bef0db4d40b70e08426779435f75b0241fa
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/window.cxx4
-rw-r--r--vcl/win/gdi/salvd.cxx1
-rw-r--r--vcl/win/window/salframe.cxx10
3 files changed, 15 insertions, 0 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 9a5a6cde533b..cbd93e3e44bf 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -86,6 +86,7 @@ Window::Window( WindowType nType )
: OutputDevice(OUTDEV_WINDOW)
, mpWindowImpl(new WindowImpl( nType ))
{
+ SAL_INFO("vcl.temp", "Window::Window: " << this);
// true: this outdev will be mirrored if RTL window layout (UI mirroring) is globally active
mbEnableRTL = AllSettings::GetLayoutRTL();
}
@@ -94,6 +95,7 @@ Window::Window( vcl::Window* pParent, WinBits nStyle )
: OutputDevice(OUTDEV_WINDOW)
, mpWindowImpl(new WindowImpl( WindowType::WINDOW ))
{
+ SAL_INFO("vcl.temp", "Window::Window: " << this);
// true: this outdev will be mirrored if RTL window layout (UI mirroring) is globally active
mbEnableRTL = AllSettings::GetLayoutRTL();
@@ -140,6 +142,7 @@ bool Window::IsDisposed() const
void Window::dispose()
{
+ SAL_INFO("vcl.temp", "Window::dispose: " << this << " mpFrame " << (mpWindowImpl ? mpWindowImpl->mpFrame : nullptr));
assert( mpWindowImpl );
assert( !mpWindowImpl->mbInDispose ); // should only be called from disposeOnce()
assert( (!mpWindowImpl->mpParent ||
@@ -1037,6 +1040,7 @@ void Window::ImplInit( vcl::Window* pParent, WinBits nStyle, SystemParentData* p
pFrame = pSVData->mpDefInst->CreateChildFrame( pSystemParentData, nFrameStyle | SalFrameStyleFlags::PLUG );
else
pFrame = pSVData->mpDefInst->CreateFrame( pParentFrame, nFrameStyle );
+ SAL_INFO("vcl.temp", "Window::ImplInit: " << this << " pFrame " << pFrame);
if ( !pFrame )
{
// do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario)
diff --git a/vcl/win/gdi/salvd.cxx b/vcl/win/gdi/salvd.cxx
index d06412bc6743..b506fd4ea5cc 100644
--- a/vcl/win/gdi/salvd.cxx
+++ b/vcl/win/gdi/salvd.cxx
@@ -124,6 +124,7 @@ std::unique_ptr<SalVirtualDevice> WinSalInstance::CreateVirtualDevice( SalGraphi
WinSalGraphics* pVirGraphics = new WinSalGraphics(WinSalGraphics::VIRTUAL_DEVICE,
pGraphics->isScreen(), nullptr, pVDev);
+ SAL_INFO("vcl.temp", "new WinSalGraphics: " << pVirGraphics << " for " << pVDev);
// by default no! mirroring for VirtualDevices, can be enabled with EnableRTL()
pVirGraphics->SetLayout( SalLayoutFlags::NONE );
diff --git a/vcl/win/window/salframe.cxx b/vcl/win/window/salframe.cxx
index dd5f8fbb8533..aed15def4240 100644
--- a/vcl/win/window/salframe.cxx
+++ b/vcl/win/window/salframe.cxx
@@ -828,6 +828,7 @@ void SetForegroundWindow_Impl(HWND hwnd)
WinSalFrame::WinSalFrame()
{
+ SAL_INFO("vcl.temp", "new WinSalFrame: " << this);
SalData* pSalData = GetSalData();
mhWnd = nullptr;
@@ -929,6 +930,7 @@ bool WinSalFrame::ReleaseFrameGraphicsDC( WinSalGraphics* pGraphics )
WinSalFrame::~WinSalFrame()
{
+ SAL_INFO("vcl.temp", "del WinSalFrame: " << this);
SalData* pSalData = GetSalData();
if( mpClipRgnData )
@@ -945,6 +947,7 @@ WinSalFrame::~WinSalFrame()
if ( mpThreadGraphics )
{
ReleaseFrameGraphicsDC( mpThreadGraphics );
+ SAL_INFO("vcl.temp", "del WinSalGraphics: " << mpThreadGraphics << " on " << this);
delete mpThreadGraphics;
mpThreadGraphics = nullptr;
}
@@ -953,6 +956,7 @@ WinSalFrame::~WinSalFrame()
if ( mpLocalGraphics )
{
ReleaseFrameGraphicsDC( mpLocalGraphics );
+ SAL_INFO("vcl.temp", "del WinSalGraphics: " << mpLocalGraphics << " on " << this);
delete mpLocalGraphics;
mpLocalGraphics = nullptr;
}
@@ -1028,7 +1032,10 @@ SalGraphics* WinSalFrame::AcquireGraphics()
return nullptr;
if ( !mpThreadGraphics )
+ {
mpThreadGraphics = new WinSalGraphics(WinSalGraphics::WINDOW, true, mhWnd, this);
+ SAL_INFO("vcl.temp", "new WinSalGraphics: " << mpThreadGraphics << " on " << this);
+ }
pGraphics = mpThreadGraphics;
assert( !pGraphics->getHDC() );
hDC = reinterpret_cast<HDC>(static_cast<sal_IntPtr>(SendMessageW( pSalData->mpInstance->mhComWnd,
@@ -1037,7 +1044,10 @@ SalGraphics* WinSalFrame::AcquireGraphics()
else
{
if ( !mpLocalGraphics )
+ {
mpLocalGraphics = new WinSalGraphics(WinSalGraphics::WINDOW, true, mhWnd, this);
+ SAL_INFO("vcl.temp", "new WinSalGraphics: " << mpLocalGraphics << " on " << this);
+ }
pGraphics = mpLocalGraphics;
hDC = pGraphics->getHDC();
if ( !hDC )