summaryrefslogtreecommitdiff
path: root/vcl/headless
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-02 10:09:26 +0200
committerNoel Grandin <noel@peralex.com>2015-10-02 10:18:58 +0200
commita65636c59d7d6c036eb8ae0dee76671198408107 (patch)
tree6aa9473442ea4eae20e5da54616885e3f05b3f8a /vcl/headless
parent968849d89922c5e18b26359a09a0c70466928fcd (diff)
fix Android and KDE build
after commit 837f171810a95a1d87907dd08d67e969276f0559 "loplugin:unusedmethods in vcl" Change-Id: Idd4603f34891950940a77efa30b9ee70f35d7533
Diffstat (limited to 'vcl/headless')
-rw-r--r--vcl/headless/svpframe.cxx18
-rw-r--r--vcl/headless/svpinst.cxx13
2 files changed, 30 insertions, 1 deletions
diff --git a/vcl/headless/svpframe.cxx b/vcl/headless/svpframe.cxx
index 74ec326e0ee9..4d4a225a72e2 100644
--- a/vcl/headless/svpframe.cxx
+++ b/vcl/headless/svpframe.cxx
@@ -39,7 +39,6 @@ SvpSalFrame* SvpSalFrame::s_pFocusFrame = NULL;
#endif
#ifndef IOS
-
namespace {
/// Decouple SalFrame lifetime from damagetracker lifetime
struct DamageTracker : public basebmp::IBitmapDeviceDamageTracker
@@ -48,9 +47,26 @@ namespace {
virtual void damaged( const basegfx::B2IBox& ) const SAL_OVERRIDE {}
};
}
+#endif
+#ifdef ANDROID
+void SvpSalFrame::enableDamageTracker( bool bOn )
+{
+ if( m_bDamageTracking == bOn )
+ return;
+ if( m_aFrame.get() )
+ {
+ if( m_bDamageTracking )
+ m_aFrame->setDamageTracker( basebmp::IBitmapDeviceDamageTrackerSharedPtr() );
+ else
+ m_aFrame->setDamageTracker(
+ basebmp::IBitmapDeviceDamageTrackerSharedPtr( new DamageTracker ) );
+ }
+ m_bDamageTracking = bOn;
+}
#endif
+
SvpSalFrame::SvpSalFrame( SvpSalInstance* pInstance,
SalFrame* pParent,
sal_uLong nSalFrameStyle,
diff --git a/vcl/headless/svpinst.cxx b/vcl/headless/svpinst.cxx
index 978a455e2a46..bcecfac26377 100644
--- a/vcl/headless/svpinst.cxx
+++ b/vcl/headless/svpinst.cxx
@@ -125,6 +125,19 @@ void SvpSalInstance::PostEvent(const SalFrame* pFrame, ImplSVEvent* pData, sal_u
Wakeup();
}
+#ifdef ANDROID
+bool SvpSalInstance::PostedEventsInQueue()
+{
+ bool result = false;
+ if( osl_acquireMutex( m_aEventGuard ) )
+ {
+ result = m_aUserEvents.size() > 0;
+ osl_releaseMutex( m_aEventGuard );
+ }
+ return result;
+}
+#endif
+
void SvpSalInstance::deregisterFrame( SalFrame* pFrame )
{
m_aFrames.remove( pFrame );