# HG changeset patch # User Dremov Kirill (Nokia-D-MSW/Tampere) # Date 1282117368 -10800 # Node ID 7ced047fb7ae73017acc49d90de41a65e65a9263 # Parent 95d73125a0864f4f1a7b1a314b43c9bd59f13ab1 Revision: 201031 Kit: 201033 diff -r 95d73125a086 -r 7ced047fb7ae package_definition.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/package_definition.xml Wed Aug 18 10:42:48 2010 +0300 @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 95d73125a086 -r 7ced047fb7ae package_map.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/package_map.xml Wed Aug 18 10:42:48 2010 +0300 @@ -0,0 +1,1 @@ + diff -r 95d73125a086 -r 7ced047fb7ae uiaccelerator_plat/alf_client_server_api/inc/alf/alfappsrvsessionbase.h --- a/uiaccelerator_plat/alf_client_server_api/inc/alf/alfappsrvsessionbase.h Tue Jul 06 15:18:10 2010 +0300 +++ b/uiaccelerator_plat/alf_client_server_api/inc/alf/alfappsrvsessionbase.h Wed Aug 18 10:42:48 2010 +0300 @@ -288,6 +288,8 @@ // creates subsession CAlfSrvSubSessionBase* CreateSubSessionLC(const RMessage2& aMessage); + + TUint SecureId(); protected: // from baseclasses diff -r 95d73125a086 -r 7ced047fb7ae uiacceltk/hitchcock/ServerCore/Src/alfappsrvsession.cpp --- a/uiacceltk/hitchcock/ServerCore/Src/alfappsrvsession.cpp Tue Jul 06 15:18:10 2010 +0300 +++ b/uiacceltk/hitchcock/ServerCore/Src/alfappsrvsession.cpp Wed Aug 18 10:42:48 2010 +0300 @@ -32,6 +32,10 @@ #include "alfclientserver.h" #include "alfsrvtexturemanager.h" #include "alfsrvscreenbuffermanager.h" +#include "alfstreamerconsts.h" +#include "alfdecoderserverclient.h" + + #include @@ -292,20 +296,6 @@ iAnimatedTextures.operator[](index)->EnableAnimation(ETrue); } - if ( aDoTransitionEffect && AlfServer()->TransitionEffects()->IsEnabled() && - (display->DisplayType() != CHuiDisplay::EDisplayOffScreenBuffer)) - { - ASSERT(AlfServer()->TransitionEffects() != NULL); - AlfServer()->TransitionEffects()->StartPhase( MAlfTransEffectPlugin::EFirstPhase, - aDoTransitionEffect, *iEffectEnv ); - - iControlGroupOrder.Reset(); - } - else - { -// ShowControlGroupsInOrderL(*display); - } - // This is needed for Huitk BitBlit() to succeed #ifdef SYMBIAN_BUILD_GCE @@ -354,9 +344,6 @@ return didTransition; } -/* -#ifdef HUI_FX -*/ if (display->DisplayType() != CHuiDisplay::EDisplayOffScreenBuffer) { // Disable all animated textures for the session @@ -371,40 +358,6 @@ // as the background will be visible if the effect does not cover full screen // or is partially transparent. } -/* -#else - // Do not hide or set transparency if this is off-screen buffer - if (display->DisplayType() != CHuiDisplay::EDisplayOffScreenBuffer) - { - // Disable all animated textures for the session - for (TInt index = 0; index < iAnimatedTextures.Count(); index++) - { - iAnimatedTextures.operator[](index)->EnableAnimation(EFalse); - } - - if ( aDoTransitionEffect && AlfServer()->TransitionEffects()->IsEnabled() ) - { - StoreControlGroupOrderL(*display, EFalse ); // do not hide - ASSERT(AlfServer()->TransitionEffects() != NULL); - AlfServer()->TransitionEffects()->StartPhase( MAlfTransEffectPlugin::EFirstPhase, - aDoTransitionEffect, *iEffectEnv ); - didTransition = ETrue; - } - // Hide control groups - else - { - StoreControlGroupOrderL(*display, ETrue ); // hide as well - } - -#ifdef SYMBIAN_BUILD_GCE - // When alf application is not focused we dont draw background because it is - // not visible as the alf application is not visible either (its controlgroups - // were just hidden in the code above). - display->SetClearBackgroundL(CHuiDisplay::EClearNone); -#endif - } -#endif -*/ return didTransition; } @@ -2737,6 +2690,17 @@ { iTextureInfo.Remove( pos ); } + + //Photos is never killed if it is excluded here. hence commenting + /* + if (!iTextureInfo.Count()) + { + if (AlfAppUi()->BridgerClient()) + { + AlfAppUi()->BridgerClient()->SendBlind(EAlfExcludeFromGoomTargets, TIpcArgs(SecureId(),ClientWindowGroup())); + } + } + */ } TInt CAlfAppSrvSession::GetTextureSize( @@ -2765,6 +2729,15 @@ aPriority = Max( 0, aPriority ); aPriority = Min( 1, aPriority ); + if (!iTextureInfo.Count()) + { + if (AlfAppUi()->BridgerClient()) + { + AlfAppUi()->BridgerClient()->SendBlind(EAlfVolunteerForGoomTarget, TIpcArgs(SecureId(), ClientWindowGroup())); + } + } + + TInt pos = FindTextureInfoById( aTextureId ); if ( pos != KErrNotFound ) { diff -r 95d73125a086 -r 7ced047fb7ae uiacceltk/hitchcock/ServerCore/Src/alfappsrvsessionBase.cpp --- a/uiacceltk/hitchcock/ServerCore/Src/alfappsrvsessionBase.cpp Tue Jul 06 15:18:10 2010 +0300 +++ b/uiacceltk/hitchcock/ServerCore/Src/alfappsrvsessionBase.cpp Wed Aug 18 10:42:48 2010 +0300 @@ -406,6 +406,7 @@ { __ASSERT_DEBUG(iData, USER_INVARIANT()); iData->iClientWindowGroupId = aId; + //Adding this app to goom list - otherwise app like photos will never be killed if (AlfAppUi()->BridgerClient()) { AlfAppUi()->BridgerClient()->SendBlind(EAlfVolunteerForGoomTarget, TIpcArgs(iData->iSecureId, iData->iClientWindowGroupId)); @@ -1140,6 +1141,15 @@ CleanupStack::PopAndDestroy(); } } + +TUint CAlfAppSrvSessionBase::SecureId() + { + if (iData) + { + return iData->iSecureId; + } + return 0; + } // End of file diff -r 95d73125a086 -r 7ced047fb7ae uiacceltk/hitchcock/goommonitor/data/goomconfig.xml --- a/uiacceltk/hitchcock/goommonitor/data/goomconfig.xml Tue Jul 06 15:18:10 2010 +0300 +++ b/uiacceltk/hitchcock/goommonitor/data/goomconfig.xml Wed Aug 18 10:42:48 2010 +0300 @@ -47,7 +47,7 @@ - + @@ -79,9 +79,10 @@ defined in the conf file. --> - - - + + + +