uiacceltk/hitchcock/coretoolkit/src/HuiFxGroupLayer.cpp
branchRCL_3
changeset 20 31fccae4f8a7
parent 19 e5af45d51884
equal deleted inserted replaced
19:e5af45d51884 20:31fccae4f8a7
   167             {
   167             {
   168             return EFalse;
   168             return EFalse;
   169             }
   169             }
   170         }
   170         }
   171     return ETrue;
   171     return ETrue;
       
   172     }
       
   173 
       
   174 EXPORT_C void CHuiFxGroupLayer::ReleaseAllCachedRenderTargets(CHuiFxEngine& aEngine)
       
   175     {
       
   176     // Currently grouplayer itself does not use any cached render buffers which it would not free right after drawing a frame
       
   177 
       
   178     // still release all child layer's render targets
       
   179     for( TInt i=0 ; i < iLayers.Count() ; i++ )
       
   180         {
       
   181         iLayers[i]->ReleaseAllCachedRenderTargets(aEngine);
       
   182         }    
   172     }
   183     }
   173 
   184 
   174 EXPORT_C void CHuiFxGroupLayer::Draw(CHuiFxEngine& aEngine, CHuiGc& aGc, CHuiFxRenderbuffer& aTarget, 
   185 EXPORT_C void CHuiFxGroupLayer::Draw(CHuiFxEngine& aEngine, CHuiGc& aGc, CHuiFxRenderbuffer& aTarget, 
   175                                      CHuiFxRenderbuffer& aSource, TBool aHasSurface)
   186                                      CHuiFxRenderbuffer& aSource, TBool aHasSurface)
   176     {
   187     {
   472     for( TInt i=0 ; i < iLayers.Count() ; i++ )
   483     for( TInt i=0 ; i < iLayers.Count() ; i++ )
   473         {
   484         {
   474         iLayers[i]->SetAlwaysReadSurfacePixels(aAlwaysReadSurfacePixels);
   485         iLayers[i]->SetAlwaysReadSurfacePixels(aAlwaysReadSurfacePixels);
   475         }
   486         }
   476     }
   487     }
       
   488 
       
   489 void CHuiFxGroupLayer::SetVisualContentState(TBool aChanged, TBool aOpaque)
       
   490     {
       
   491     for( TInt i=0 ; i < iLayers.Count() ; i++ )
       
   492         {
       
   493         iLayers[i]->SetVisualContentState(aChanged, aOpaque);
       
   494         }    
       
   495     }