diff -r 4c62338e03c8 -r 796196dd6e68 svgtopt/SVG/SVGEngine/src/SVGEngineInterfaceImpl.cpp --- a/svgtopt/SVG/SVGEngine/src/SVGEngineInterfaceImpl.cpp Fri May 14 16:45:42 2010 +0300 +++ b/svgtopt/SVG/SVGEngine/src/SVGEngineInterfaceImpl.cpp Wed Jun 09 11:15:09 2010 +0300 @@ -1499,6 +1499,13 @@ } } +EXPORT_C void CSvgEngineInterfaceImpl::GenerateMask(CSvgtBitmap* aMask, TInt aEngine ) + { + if ( ChooseEngine( aEngine ) ) + { + iSvgEngine->GenerateMask(aMask); + } + } // -------------------------------------------------------------------------- // EXPORT_C void CSvgEngineInterfaceImpl::SetBackgroundColor(TUint32 aRGBA8888Color, CSvgEngineImpl* aEngine) @@ -2465,6 +2472,19 @@ aEngine->SetGdiContextL( aFrameBuffer ); } } + +// -------------------------------------------------------------------------- +// M2G: Overloaded SetGdiContextL() for CSvgtBitmap to enable rendering on target buffer. +// --------------------------------------------------------------------------- +EXPORT_C void CSvgEngineInterfaceImpl::SetGdiContextL( CSvgEngineImpl* aEngine, CSvgtBitmap* aFrameBuffer ) + { + if( aEngine ) + { + aEngine->EnableTargetRendering(ETrue); + aEngine->SetGdiContextL( aFrameBuffer ); + } + } + // -------------------------------------------------------------------------- // EXPORT_C void CSvgEngineInterfaceImpl::SetDocument( CSvgEngineImpl* aEngine, CSvgDocumentImpl* aDocument ) // ---------------------------------------------------------------------------