--- a/uiacceltk/hitchcock/plugins/alfoogmplugin/src/alfoogmplugin.cpp Fri Apr 16 15:56:24 2010 +0300
+++ b/uiacceltk/hitchcock/plugins/alfoogmplugin/src/alfoogmplugin.cpp Mon May 03 13:22:43 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);
}
// -----------------------------------------------------------------------------