diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-01-14 20:49:06 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-01-18 11:34:09 +0000 |
commit | 4bf6f5581c9938504b841eb94f6121068b2eb752 (patch) | |
tree | 572ef155cd3307fcca30e6388bd3f685f781a3cf /vcl/inc/headless/svpframe.hxx | |
parent | 7d8e94aaaddff0708dd8a5a6fde4d9922cd4e1ea (diff) |
svp: replace basebmp surfaces with native cairo surfaces
so we can then
a) drop all of our own clipping code in favour of cairos clipping code
b) just pass cairo surfaces around the place instead of constantly
creating and tearing down surfaces based on basebmp data
c) we can additionally drop various flushing of the surfaces as it
doesn't matter anymore
d) use a lot less of our own code and far more of some one elses
hopefully more drawing optimized code
e) seeing as the graphics context are always cairo now, then they
are always cairo compatible, so those checks can go also
still need to figure out drawMask
Change-Id: I320cd14cdc714ea59d00e90233f1171f821cf953
Diffstat (limited to 'vcl/inc/headless/svpframe.hxx')
-rw-r--r-- | vcl/inc/headless/svpframe.hxx | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/vcl/inc/headless/svpframe.hxx b/vcl/inc/headless/svpframe.hxx index 507af74777d6..19d36214691d 100644 --- a/vcl/inc/headless/svpframe.hxx +++ b/vcl/inc/headless/svpframe.hxx @@ -44,9 +44,7 @@ class VCL_DLLPUBLIC SvpSalFrame : public SalFrame SalFrameStyleFlags m_nStyle; bool m_bVisible; #ifndef IOS - basebmp::BitmapDeviceSharedPtr m_aFrame; - bool m_bDamageTracking; - basebmp::Format m_nScanlineFormat; + cairo_surface_t* m_pSurface; #endif long m_nMinWidth; long m_nMinHeight; @@ -62,7 +60,6 @@ public: SvpSalFrame( SvpSalInstance* pInstance, SalFrame* pParent, SalFrameStyleFlags nSalFrameStyle, - basebmp::Format nScanlineFormat, SystemParentData* pSystemParent = nullptr ); virtual ~SvpSalFrame(); @@ -70,10 +67,6 @@ public: void LoseFocus(); void PostPaint(bool bImmediate) const; -#if defined ANDROID - const basebmp::BitmapDeviceSharedPtr& getDevice() const { return m_aFrame; } -#endif - // SalFrame virtual SalGraphics* AcquireGraphics() override; virtual void ReleaseGraphics( SalGraphics* pGraphics ) override; @@ -122,11 +115,6 @@ public: virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight ) override; virtual void EndSetClipRegion() override; -#ifdef ANDROID - // If enabled we can get damage notifications for regions immediately rendered to ... - void enableDamageTracker( bool bOn = true ); -#endif - /*TODO: functional implementation */ virtual void SetScreenNumber( unsigned int nScreen ) override { (void)nScreen; } virtual void SetApplicationID(const OUString &rApplicationID) override { (void) rApplicationID; } |