diff -r 15bf7259bb7c -r d8a3531bc6b8 uiacceltk/hitchcock/ServerCore/Inc/alfbridge.h --- a/uiacceltk/hitchcock/ServerCore/Inc/alfbridge.h Tue Feb 02 07:56:43 2010 +0200 +++ b/uiacceltk/hitchcock/ServerCore/Inc/alfbridge.h Mon Feb 22 17:57:49 2010 +0200 @@ -22,6 +22,9 @@ #include +#define AMT_CONTROL() static_cast(Dll::Tls()) +#include "alfmoduletest.h" + #include "alfscreen.h" #include "alfstreamerbridge.h" #include "alfdecoderserverclient.h" @@ -29,6 +32,7 @@ #include #include "HuiFxEffect.h" +#include "huisynchronizationobserver.h" #include #include @@ -45,7 +49,8 @@ public MHuiDisplayRefreshObserver, public MHuiBitmapProvider, public MAlfGfxEffectObserver, - public MHuiRosterObserver + public MHuiRosterObserver, + public MHuiSynchronizationObserver { // Helper class for keeping ongoing effects in order. Kept in iEffectCleanupStack private: @@ -224,6 +229,9 @@ void NotifyRosterDrawStart(CHuiDisplay& aDisplay); void NotifyRosterDrawEnd(CHuiDisplay& aDisplay); + // From MHuiSynchronizationObserver + void Synchronized(TInt aId); + private: class CFullScreenEffectState; @@ -384,10 +392,26 @@ */ CHuiLayout* FindLayoutByEffectHandle(TInt aHandle); - /* + /** * HasActiveEffect + * + * Note. The visual might not have effect, but it is child for visual that has effect. + * In both cases, this method returns ETrue. Otherwise EFalse. + * + * @param aVisual Visual to be checked for effect participation. */ TBool HasActiveEffect(CHuiVisual* aVisual); + + /** + * HasActiveEffect + * + * Note. The visual might not have effect, but it is child for visual that has effect. + * In both cases, this method returns ETrue. Otherwise EFalse. + * + * @param aVisual Visual to be checked for effect participation. + * @param aIndex Index of the effect item in iEffectCleanupStack, if found. Otherwise KErrNotFound + */ + TBool HasActiveEffect(CHuiVisual* aVisual, TInt& aIndex); /* * FindEffectHandle @@ -627,6 +651,7 @@ CHuiControlGroup& aGroup); void VisualizeControlGroupOrderL( + CAlfScreen& aScreen, CHuiRoster& aRoster, CHuiControlGroup& aGroup); @@ -715,9 +740,6 @@ // with visuals in iFullscreenEffectControlGroup RArray iEffectCleanupStack; - // Effects that have finished by their own, or framework requested to end them - RArray iFinishedEffects; - // Same as iEffectCleanupStack, but only the ones that can be now cleaned away. // See method RemoveTemporaryPresenterVisuals. RArray iFinishedCleanupStackEffects; @@ -896,6 +918,11 @@ TBool iForcedSwRendering; TBool iLowMemoryMode; THuiMemoryLevel iCurrentMemoryLevel; + + #ifdef USE_MODULE_TEST_HOOKS_FOR_ALF + TInt iTempTotalActiveVisualCount; + TInt iTempTotalPassiveVisualCount; + #endif }; #endif // __ALF_BRIDGE_H__ \ No newline at end of file