equal
deleted
inserted
replaced
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 |