diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2014-10-14 11:59:04 -0300 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-10-14 12:04:13 -0300 |
commit | 578fd01ee9d1a3b550e115d5db64523c7f57efde (patch) | |
tree | c3a5bd18e3bee11aba9baf33c384c5be5a05d820 /vcl/headless | |
parent | 9f8605b04dfecefabe73035aae50443ad93da878 (diff) |
basebmp: accelerated method to create a clipping device.
This was some staggering proportion of tiled rendering documents
with complex clipping; it seems 'clear' is not what memset is for
1bit clip masks.
Change-Id: I9142ffb7d7016603feb7782d6f03b9992b9494e3
Diffstat (limited to 'vcl/headless')
-rw-r--r-- | vcl/headless/svpgdi.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx index 6f993dbc29c9..9ad4c7bccdad 100644 --- a/vcl/headless/svpgdi.cxx +++ b/vcl/headless/svpgdi.cxx @@ -168,8 +168,7 @@ void SvpSalGraphics::ensureClip() m_aDevice = m_aOrigDevice; basegfx::B2IVector aSize = m_aDevice->getSize(); - m_aClipMap = basebmp::createBitmapDevice( aSize, false, basebmp::FORMAT_ONE_BIT_MSB_GREY ); - m_aClipMap->clear( basebmp::Color(0xFFFFFFFF) ); + m_aClipMap = basebmp::createClipDevice( aSize ); RectangleVector aRectangles; m_aClipRegion.GetRegionRectangles(aRectangles); |