equal
deleted
inserted
replaced
18 #ifndef SVGTFBSRASTERIZER_H |
18 #ifndef SVGTFBSRASTERIZER_H |
19 #define SVGTFBSRASTERIZER_H |
19 #define SVGTFBSRASTERIZER_H |
20 |
20 |
21 #include "SvgtRegisteredBitmap.h" |
21 #include "SvgtRegisteredBitmap.h" |
22 #include "svgtgraphicsinterface.h" |
22 #include "svgtgraphicsinterface.h" |
23 #include <fbsrasterizer.h> |
23 #include <graphics/fbsrasterizer.h> |
24 #include <e32base.h> |
24 #include <e32base.h> |
25 #include <VG/openvg.h> |
25 #include <VG/openvg.h> |
26 |
26 |
27 const TUid KUidNvgProprietaryFormat = { 968435518 }; |
27 const TUid KUidNvgProprietaryFormat = { 968435518 }; |
28 const TInt KMaxRecentBmpCacheSize = 0x40000; |
28 const TInt KMaxRecentBmpCacheSize = 0x40000; |
54 |
54 |
55 private: |
55 private: |
56 CSvgtFbsRasterizer(); |
56 CSvgtFbsRasterizer(); |
57 CSvgtRegisteredBitmap* RegisteredBitmap(TInt64 aBitmapId); |
57 CSvgtRegisteredBitmap* RegisteredBitmap(TInt64 aBitmapId); |
58 CSvgtRegisteredBitmap* RecentBitmap(TInt64 aBitmapId); |
58 CSvgtRegisteredBitmap* RecentBitmap(TInt64 aBitmapId); |
59 static TInt IdleFunction(TAny* aPtr); |
|
60 |
59 |
61 void DoBeginBitmapL(TInt64 aBitmapId, const TBitmapDesc& aBitmapDesc, |
60 void DoBeginBitmapL(TInt64 aBitmapId, const TBitmapDesc& aBitmapDesc, |
62 const TRegion* aRegionOfInterest); |
61 const TRegion* aRegionOfInterest); |
63 CSvgtRegisteredBitmap* DoCreateAndRegisterBitmapL(TInt64 aBitmapId, const TBitmapDesc& aBitmapDesc, CFbsBitmap * aPixmap); |
62 CSvgtRegisteredBitmap* DoCreateAndRegisterBitmapL(TInt64 aBitmapId, const TBitmapDesc& aBitmapDesc, CFbsBitmap * aPixmap); |
64 void InitializeRasterizer(); |
63 void InitializeRasterizer(); |
107 /** Total size in bytes of the pre-rendered buffers for all the recently used extended bitmaps. |
106 /** Total size in bytes of the pre-rendered buffers for all the recently used extended bitmaps. |
108 */ |
107 */ |
109 TInt iTotalRecentBmpSize; |
108 TInt iTotalRecentBmpSize; |
110 /** An idle-time active object to clean up the recently used extended bitmaps. |
109 /** An idle-time active object to clean up the recently used extended bitmaps. |
111 */ |
110 */ |
112 CIdle* iIdle; |
111 |
113 |
|
114 CSvgtGraphicsInterface * iGraphicsInterface; |
112 CSvgtGraphicsInterface * iGraphicsInterface; |
115 |
113 |
116 TBool iIsRasterizerValidState; |
114 TBool iIsRasterizerValidState; |
117 TBool iMatricesUpdated; |
115 TBool iMatricesUpdated; |
118 CNvgEngine* iNvgEngine; |
116 CNvgEngine* iNvgEngine; |