summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2016-07-20 10:54:30 +0200
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2017-11-28 00:13:27 -0500
commita090e1e17962c5ca95f66c9d18fca6ac5dd4bca0 (patch)
tree5f7353a43be34502c06d9d1475c87ed01083c4df /include
parentdf7e1cb393083b30b7a1dd25539f0f3831b80ba2 (diff)
tdf#97087 GDB pretty print the Scheduler task list
In addition to the GDB pretty printer, this annotates a lot more Timers and Idles. Change-Id: I5b93fab02161b23bb753e65ef92643a04fb0789c (cherry picked from commit 9e51007039770370182839846676b205f5c34c57)
Diffstat (limited to 'include')
-rw-r--r--include/vcl/dockwin.hxx7
-rw-r--r--include/vcl/syswin.hxx7
-rw-r--r--include/vcl/timer.hxx2
3 files changed, 15 insertions, 1 deletions
diff --git a/include/vcl/dockwin.hxx b/include/vcl/dockwin.hxx
index 1a6910e613c7..e80851102371 100644
--- a/include/vcl/dockwin.hxx
+++ b/include/vcl/dockwin.hxx
@@ -250,6 +250,8 @@ private:
DockingWindow & operator= (const DockingWindow &) = delete;
protected:
+ SAL_DLLPRIVATE void SetIdleDebugName( const sal_Char *pDebugName );
+
using Window::ImplInit;
SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle );
SAL_DLLPRIVATE void ImplInitSettings();
@@ -364,6 +366,11 @@ inline void DockingWindow::SetFloatingPos( const Point& rNewPos )
maFloatPos = rNewPos;
}
+inline void DockingWindow::SetIdleDebugName( const sal_Char *pDebugName )
+{
+ maLayoutIdle.SetDebugName( pDebugName );
+}
+
#endif // INCLUDED_VCL_DOCKWIN_HXX
diff --git a/include/vcl/syswin.hxx b/include/vcl/syswin.hxx
index 2c1681e8d892..e26db18d82b5 100644
--- a/include/vcl/syswin.hxx
+++ b/include/vcl/syswin.hxx
@@ -190,6 +190,8 @@ protected:
virtual void settingOptimalLayoutSize(Window *pBox);
SAL_DLLPRIVATE void DoInitialLayout();
+
+ SAL_DLLPRIVATE void SetIdleDebugName( const sal_Char *pDebugName );
public:
virtual ~SystemWindow() override;
virtual void dispose() override;
@@ -290,6 +292,11 @@ public:
virtual void doDeferredInit(WinBits nBits);
};
+inline void SystemWindow::SetIdleDebugName( const sal_Char *pDebugName )
+{
+ maLayoutIdle.SetDebugName( pDebugName );
+}
+
#endif // INCLUDED_VCL_SYSWIN_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/vcl/timer.hxx b/include/vcl/timer.hxx
index 149ba9099ac9..0e32810b9d12 100644
--- a/include/vcl/timer.hxx
+++ b/include/vcl/timer.hxx
@@ -56,7 +56,7 @@ public:
class VCL_DLLPUBLIC AutoTimer : public Timer
{
public:
- AutoTimer();
+ AutoTimer( const sal_Char *pDebugName = nullptr );
AutoTimer( const AutoTimer& rTimer );
AutoTimer& operator=( const AutoTimer& rTimer );