src/hbservers/hbthemeserver/hbsgimagerenderer_p.h
changeset 2 06ff229162e9
parent 1 f7ac710697a9
child 21 4633027730f5
--- 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 <sgresource/sgimage.h>
 #include <hbthemecommon_symbian_p.h>
 
+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<unsigned long long, RSgImage*> sgImageHash;
+    HbNvgEngine *engine;
 };
 
 #endif