diff options
author | Louis-Francis Ratté-Boulianne <lfrb@collabora.com> | 2014-12-04 11:45:55 -0500 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-12-11 07:57:30 +0100 |
commit | f0f5f50243810762e27f1207b3c08b60ed888ee3 (patch) | |
tree | 738410582d7ad74dfa765aa3d9a74e2ca6600d3f /vcl/inc | |
parent | 6e4a34018473652e981f1b85ebfaedddc9e0aea2 (diff) |
vcl: Limit Cairo surface size to the clipping region to improve performance
Conflicts:
vcl/unx/generic/gdi/openglx11cairotextrender.cxx
Change-Id: I469b34c9f1047a274550229391d3dfb578291df6
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/cairotextrender.hxx | 1 | ||||
-rw-r--r-- | vcl/inc/openglgdiimpl.hxx | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/vcl/inc/cairotextrender.hxx b/vcl/inc/cairotextrender.hxx index e5db2ab7e612..2b8a21ef68fb 100644 --- a/vcl/inc/cairotextrender.hxx +++ b/vcl/inc/cairotextrender.hxx @@ -77,6 +77,7 @@ class CairoTextRender : public TextRenderImpl protected: virtual GlyphCache& getPlatformGlyphCache() = 0; virtual cairo_surface_t* getCairoSurface() = 0; + virtual void getSurfaceOffset(double& nDX, double& nDY) = 0; virtual void drawSurface(cairo_t* cr) = 0; bool setFont( const FontSelectPattern *pEntry, int nFallbackLevel ); diff --git a/vcl/inc/openglgdiimpl.hxx b/vcl/inc/openglgdiimpl.hxx index 03d1c239b0d6..a8ffe4db7b2f 100644 --- a/vcl/inc/openglgdiimpl.hxx +++ b/vcl/inc/openglgdiimpl.hxx @@ -129,7 +129,9 @@ public: virtual void freeResources() SAL_OVERRIDE; + virtual const vcl::Region& getClipRegion() const; virtual bool setClipRegion( const vcl::Region& ) SAL_OVERRIDE; + // // get the depth of the device virtual sal_uInt16 GetBitCount() const SAL_OVERRIDE; |