uiacceltk/hitchcock/coretoolkit/src/HuiFxGroupLayer.cpp
branchRCL_3
changeset 5 433cbbb6a04b
parent 0 15bf7259bb7c
child 9 3ac8bf5c5014
equal deleted inserted replaced
3:d8a3531bc6b8 5:433cbbb6a04b
   188         backBuffer = aEngine.AcquireRenderbuffer(iBackbufferRect.Size());
   188         backBuffer = aEngine.AcquireRenderbuffer(iBackbufferRect.Size());
   189         if (!backBuffer)
   189         if (!backBuffer)
   190             {
   190             {
   191             return;
   191             return;
   192             }
   192             }
       
   193 
       
   194         // Make sure background is enabled if needed.
       
   195         if (AlwaysReadSurfacePixels())
       
   196             {
       
   197             backBuffer->EnableBackground(ETrue);
       
   198             backBuffer->PrepareForReuse(backBuffer->Size());
       
   199             }
       
   200         
   193         sourceBuffer = backBuffer;
   201         sourceBuffer = backBuffer;
   194         
   202         
   195         // Translate the graphics context so that the content appears in the correct place
   203         // Translate the graphics context so that the content appears in the correct place
   196         backBuffer->BindAsRenderTarget();        
   204         backBuffer->BindAsRenderTarget();        
   197         aGc.Push(EHuiGcMatrixModel);
   205         aGc.Push(EHuiGcMatrixModel);
   445     for( TInt i=0 ; i < iLayers.Count() ; i++ )
   453     for( TInt i=0 ; i < iLayers.Count() ; i++ )
   446         {
   454         {
   447         iLayers[i]->FxmlVisualInputs(aArray);
   455         iLayers[i]->FxmlVisualInputs(aArray);
   448         }
   456         }
   449     }
   457     }
       
   458 
       
   459 void CHuiFxGroupLayer::SetAlwaysReadSurfacePixels(TBool aAlwaysReadSurfacePixels)
       
   460     {
       
   461     CHuiFxLayer::SetAlwaysReadSurfacePixels(aAlwaysReadSurfacePixels);
       
   462     for( TInt i=0 ; i < iLayers.Count() ; i++ )
       
   463         {
       
   464         iLayers[i]->SetAlwaysReadSurfacePixels(aAlwaysReadSurfacePixels);
       
   465         }
       
   466     }