uiacceltk/hitchcock/goommonitor/src/goomactionlist.cpp
changeset 19 f5bac0badc7e
parent 14 83d2d132aa58
child 29 ac3859d43844
--- a/uiacceltk/hitchcock/goommonitor/src/goomactionlist.cpp	Fri Apr 16 15:56:24 2010 +0300
+++ b/uiacceltk/hitchcock/goommonitor/src/goomactionlist.cpp	Mon May 03 13:22:43 2010 +0300
@@ -380,7 +380,7 @@
 
         iFreeingMemory = ETrue;
         TRACES2("CGOomActionList::FreeMemory: Running action %d which has priority %d", iCurrentActionIndex,ref.Priority());
-        action->FreeMemory(iCurrentTarget - memoryEstimate);
+        action->FreeMemory(iCurrentTarget - memoryEstimate, iUseSwRendering);
         iCurrentPluginRun = 0;
         memoryFreeingActionRun = ETrue;
 
@@ -414,6 +414,12 @@
             }
         // ... otherwise continue running actions, don't wait for any existing ones to complete
         iCurrentActionIndex++;
+        
+        if (iCurrentActionIndex >= iActionRefs.Count())
+            {
+            StateChanged();
+            return;
+            }
         }
 
 
@@ -742,3 +748,13 @@
     {
     return iRunningKillAppActions;
     }
+
+void CGOomActionList::SetUseSwRendering(TBool aUseSwRendering)
+    {
+    iUseSwRendering = aUseSwRendering;
+    }
+
+TBool CGOomActionList::UseSwRendering()
+    {
+    return iUseSwRendering;
+    }