diff options
Diffstat (limited to 'Build/source/libs/xpdf/xpdf-src/splash/SplashBitmap.h')
-rw-r--r-- | Build/source/libs/xpdf/xpdf-src/splash/SplashBitmap.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Build/source/libs/xpdf/xpdf-src/splash/SplashBitmap.h b/Build/source/libs/xpdf/xpdf-src/splash/SplashBitmap.h index d03f44c0884..44980833668 100644 --- a/Build/source/libs/xpdf/xpdf-src/splash/SplashBitmap.h +++ b/Build/source/libs/xpdf/xpdf-src/splash/SplashBitmap.h @@ -44,7 +44,7 @@ public: // upside-down, i.e., with the last row first in memory. SplashBitmap(int widthA, int heightA, int rowPad, SplashColorMode modeA, GBool alphaA, - GBool topDown = gTrue); + GBool topDown, SplashBitmap *parentA); ~SplashBitmap(); @@ -79,6 +79,14 @@ private: Guchar *alpha; // pointer to row zero of the alpha data // (always top-down) + // save the last-allocated (large) bitmap data and reuse if possible + SplashBitmap *parent; + SplashColorPtr oldData; + Guchar *oldAlpha; + SplashBitmapRowSize oldRowSize; + size_t oldAlphaRowSize; + int oldHeight; + friend class Splash; }; |