summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Freitag <Thomas.Freitag@alfa.de>2013-08-20 19:46:01 +0200
committerAlbert Astals Cid <aacid@kde.org>2013-08-20 19:46:01 +0200
commit70298a021657a72ae80389687a86247144e6d6b6 (patch)
tree0a5d7edc543b98f709fcd8a46e78e82073115083
parentfc78330072b9771fa39d21896703adb4836e5398 (diff)
Don't copy not needed bitmap
Speeds up rendering of fixes from bug 67105 As example one file is down from 130s to 6.5s
-rw-r--r--poppler/SplashOutputDev.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc
index d9ea9907..8c695025 100644
--- a/poppler/SplashOutputDev.cc
+++ b/poppler/SplashOutputDev.cc
@@ -3802,7 +3802,7 @@ void SplashOutputDev::beginTransparencyGroup(GfxState *state, double *bbox,
transpGroup->ty = ty;
transpGroup->blendingColorSpace = blendingColorSpace;
transpGroup->isolated = isolated;
- transpGroup->shape = (knockout) ? SplashBitmap::copy(bitmap) : NULL;
+ transpGroup->shape = (knockout && !isolated) ? SplashBitmap::copy(bitmap) : NULL;
transpGroup->knockout = gFalse;
transpGroup->knockoutOpacity = 1.0;
transpGroup->next = transpGroupStack;