diff -r f7ac710697a9 -r 06ff229162e9 src/hbservers/hbthemeserver/hbsgimagerenderer_p.h --- a/src/hbservers/hbthemeserver/hbsgimagerenderer_p.h Mon May 03 12:48:33 2010 +0300 +++ b/src/hbservers/hbthemeserver/hbsgimagerenderer_p.h Fri May 14 16:09:54 2010 +0300 @@ -31,6 +31,8 @@ #include #include +class HbNvgEngine; + #ifdef HB_ICON_CACHE_DEBUG typedef EGLBoolean (*NOK_resource_profiling)(EGLDisplay, EGLint, EGLint*, EGLint, EGLint*); #endif @@ -41,12 +43,14 @@ HbSgImageRenderer(); ~HbSgImageRenderer(); + HbNvgEngine * nvgEngine() { return engine;} bool initialize(); bool beginRendering(RSgImage * sgImage); void endRendering(); static HbSgImageRenderer *global(); static void addSgImageToHash(unsigned long long id, RSgImage* sgImage); static void removeSgImageFromHash(unsigned long long id); + void terminate(); #ifdef HB_ICON_CACHE_DEBUG unsigned long totalGPUMemory(); @@ -54,8 +58,7 @@ #endif private: - - void terminate(); + bool createContext(RSgImage * sgImage); #ifdef HB_ICON_CACHE_DEBUG @@ -72,6 +75,7 @@ bool init; RSgDriver sgDriver; static QHash sgImageHash; + HbNvgEngine *engine; }; #endif