uiacceltk/hitchcock/plugins/alfoogmplugin/src/alfoogmplugin.cpp
branchRCL_3
changeset 11 46927d61fef3
parent 0 15bf7259bb7c
child 40 dd05fdd05078
child 48 7ced047fb7ae
--- a/uiacceltk/hitchcock/plugins/alfoogmplugin/src/alfoogmplugin.cpp	Wed Mar 31 23:03:58 2010 +0300
+++ b/uiacceltk/hitchcock/plugins/alfoogmplugin/src/alfoogmplugin.cpp	Wed Apr 14 16:53:50 2010 +0300
@@ -30,8 +30,8 @@
     void ConstructL();
 
 public:
-    void FreeRam(TInt aBytesToFree);
-    void MemoryGood();
+    void FreeRam(TInt aBytesToFree, TInt  aFlags);
+    void MemoryGood(TInt  aFlags);
 
 private:
     RAlfDirectClient iAlfDirectClient;
@@ -68,18 +68,20 @@
 // Tries to free RAM.
 // -----------------------------------------------------------------------------
 //
-void CAlfOogmMonitorPlugin::FreeRam(TInt aBytesToFree)
+void CAlfOogmMonitorPlugin::FreeRam(TInt aBytesToFree, TInt  aFlags)
     {
- 	iAlfDirectClient.EnableLowMemoryState(aBytesToFree);
+	TBool useSwRend = aFlags & KGOomUseSwRendering;
+ 	iAlfDirectClient.EnableLowMemoryState(aBytesToFree, useSwRend);
     }
 
 // -----------------------------------------------------------------------------
 // CAlfOogmMonitorPlugin::MemoryGood
 // -----------------------------------------------------------------------------
 //
-void CAlfOogmMonitorPlugin::MemoryGood()
+void CAlfOogmMonitorPlugin::MemoryGood(TInt  aFlags)
     {
-    iAlfDirectClient.EnableLowMemoryState(EFalse);	
+	TBool useSwRend = aFlags & KGOomUseSwRendering;
+    iAlfDirectClient.EnableLowMemoryState(EFalse, useSwRend);	
     }
 
 // -----------------------------------------------------------------------------