diff -r 6ef40bf8fd34 -r 08459e712984 uigraphics/AknIcon/SvgtFbsRasterizer/inc/SvgtFbsRasterizer.h --- a/uigraphics/AknIcon/SvgtFbsRasterizer/inc/SvgtFbsRasterizer.h Wed Apr 14 17:02:13 2010 +0300 +++ b/uigraphics/AknIcon/SvgtFbsRasterizer/inc/SvgtFbsRasterizer.h Tue Apr 27 17:41:10 2010 +0300 @@ -21,6 +21,9 @@ #include "SvgtRegisteredBitmap.h" #include "svgtgraphicsinterface.h" #include +#include +#include "SvgtRasterizerCacheLimitHandler.h" + #include #include @@ -36,11 +39,14 @@ TBool operator==(const CFbsRasterizer::TBitmapDesc& aBitmapDesc1, const CFbsRasterizer::TBitmapDesc& aBitmapDesc2); +class CSvgtRasterizerOOMPropertyMonitor; /** Example implementation of a rasterizer that is used to generate pixel data for extended bitmaps of example type KUidExtendedBitmapExample. */ -NONSHARABLE_CLASS (CSvgtFbsRasterizer) : public CFbsRasterizer +NONSHARABLE_CLASS (CSvgtFbsRasterizer) : public CFbsRasterizer, + public MFbsRasterizerClearCache, + public MSvgtRasterizerCacheLimitHandler { public: IMPORT_C static CFbsRasterizer* New(); @@ -100,6 +106,13 @@ * Returns cache limit (if) specific to process */ TInt GetCacheLimit(TUid aProcessUID) const; + + //From MFbsRasterizerClearCache + virtual void ClearCache(); + + //from MSvgtRasterizerCacheLimitHandler + virtual void ChangeCacheLimit( TBool aChangeCacheLimit ); + private: //Data members /** List of currently registered extended bitmaps, the key is the bitmap id. */ @@ -114,6 +127,7 @@ */ CSvgtGraphicsInterface * iGraphicsInterface; + CSvgtRasterizerOOMPropertyMonitor* iMonitor; TBool iIsRasterizerValidState; TBool iMatricesUpdated;