uiacceltk/hitchcock/ServerCore/Src/alfappsrvsession.cpp
branchRCL_3
changeset 17 c9d868f1e20c
parent 12 f93c875b566e
child 18 1801340c26a2
equal deleted inserted replaced
15:cd0ae4656946 17:c9d868f1e20c
    30 #include "alf/alfserverutils.h"
    30 #include "alf/alfserverutils.h"
    31 #include "alflogger.h"
    31 #include "alflogger.h"
    32 #include "alfclientserver.h"
    32 #include "alfclientserver.h"
    33 #include "alfsrvtexturemanager.h"
    33 #include "alfsrvtexturemanager.h"
    34 #include "alfsrvscreenbuffermanager.h"
    34 #include "alfsrvscreenbuffermanager.h"
       
    35 #include "alfstreamerconsts.h"
       
    36 #include "alfdecoderserverclient.h"
       
    37 
       
    38 
    35 
    39 
    36 #include <coemain.h>
    40 #include <coemain.h>
    37 
    41 
    38 #include <alf/alfroster.h>
    42 #include <alf/alfroster.h>
    39 #include <alf/alftexture.h>
    43 #include <alf/alftexture.h>
  2735     const TInt pos = FindTextureInfoById( aTextureId );
  2739     const TInt pos = FindTextureInfoById( aTextureId );
  2736     if ( pos != KErrNotFound )
  2740     if ( pos != KErrNotFound )
  2737         {
  2741         {
  2738         iTextureInfo.Remove( pos );
  2742         iTextureInfo.Remove( pos );
  2739         }
  2743         }
       
  2744 
       
  2745     if (!iTextureInfo.Count())
       
  2746         {
       
  2747         if (AlfAppUi()->BridgerClient())
       
  2748             {
       
  2749             AlfAppUi()->BridgerClient()->SendBlind(EAlfExcludeFromGoomTargets, TIpcArgs(SecureId(),ClientWindowGroup()));
       
  2750             }
       
  2751         }
  2740     }
  2752     }
  2741 
  2753 
  2742 TInt CAlfAppSrvSession::GetTextureSize( 
  2754 TInt CAlfAppSrvSession::GetTextureSize( 
  2743         TInt aTextureId, 
  2755         TInt aTextureId, 
  2744         TSize& aTextureSize,
  2756         TSize& aTextureSize,
  2762         TInt aPriority )
  2774         TInt aPriority )
  2763     {
  2775     {
  2764     const TBool highPriority = ( aPriority < 0 );
  2776     const TBool highPriority = ( aPriority < 0 );
  2765     aPriority = Max( 0, aPriority );
  2777     aPriority = Max( 0, aPriority );
  2766     aPriority = Min( 1, aPriority );
  2778     aPriority = Min( 1, aPriority );
       
  2779 
       
  2780     if (!iTextureInfo.Count())
       
  2781         {
       
  2782         if (AlfAppUi()->BridgerClient())
       
  2783             {
       
  2784             AlfAppUi()->BridgerClient()->SendBlind(EAlfVolunteerForGoomTarget, TIpcArgs(SecureId(), ClientWindowGroup()));
       
  2785             }
       
  2786         }
       
  2787 
  2767 
  2788 
  2768     TInt pos = FindTextureInfoById( aTextureId );
  2789     TInt pos = FindTextureInfoById( aTextureId );
  2769     if ( pos != KErrNotFound )
  2790     if ( pos != KErrNotFound )
  2770         {
  2791         {
  2771         // TAlfTextureInfo struct was found - pos >= 0
  2792         // TAlfTextureInfo struct was found - pos >= 0