uiacceltk/hitchcock/coretoolkit/src/HuiFxFilterLayer.cpp
branchRCL_3
changeset 34 3a60ebea00d0
parent 11 46927d61fef3
child 50 1801340c26a2
child 60 5dafecb0892a
equal deleted inserted replaced
24:f93c875b566e 34:3a60ebea00d0
    88 EXPORT_C void CHuiFxFilterLayer::AdvanceTime(TReal32 aElapsedTime)
    88 EXPORT_C void CHuiFxFilterLayer::AdvanceTime(TReal32 aElapsedTime)
    89     {
    89     {
    90     iFilter->AdvanceTime(aElapsedTime);
    90     iFilter->AdvanceTime(aElapsedTime);
    91     }
    91     }
    92 
    92 
    93 EXPORT_C void CHuiFxFilterLayer::Draw(CHuiFxEngine& aEngine, CHuiGc& aGc, CHuiFxRenderbuffer& aTarget, CHuiFxRenderbuffer& aSource)
    93 EXPORT_C void CHuiFxFilterLayer::Draw(CHuiFxEngine& aEngine, CHuiGc& aGc, CHuiFxRenderbuffer& aTarget, CHuiFxRenderbuffer& aSource, TBool aHasSurface)
    94     {
    94     {
    95 #ifdef HUIFX_TRACE 
    95 #ifdef HUIFX_TRACE 
    96 	RDebug::Print(_L("CHuiFxFilterLayer::Draw - 0x%x "), this);
    96 	RDebug::Print(_L("CHuiFxFilterLayer::Draw - 0x%x "), this);
    97 #endif
    97 #endif
    98 // TODO: fast path
    98 // TODO: fast path
   105 
   105 
   106     // Render the filter
   106     // Render the filter
   107     TRect targetRect(TPoint(0, 0), TargetRect().Size());
   107     TRect targetRect(TPoint(0, 0), TargetRect().Size());
   108     TInt alpha = 0xff; // TODO
   108     TInt alpha = 0xff; // TODO
   109 
   109 
   110     iFilter->Draw(aEngine, aGc, *backBuffer, aSource, targetRect, SourceRect());
   110     iFilter->Draw(aEngine, aGc, *backBuffer, aSource, targetRect, SourceRect(), aHasSurface);
   111 
   111 
   112     // Composite the result
   112     // Composite the result
   113     TRect compositionSourceRect(targetRect);
   113     TRect compositionSourceRect(targetRect);
   114     TRect compositionTargetRect(TargetRect());
   114     TRect compositionTargetRect(TargetRect());
   115     
   115