+SvgRasterizeThread* RendererFactoryCache::GetSVGRasterizationThread()
+{
+ if( !mSvgRasterizeThread )
+ {
+ mSvgRasterizeThread = new SvgRasterizeThread( new EventThreadCallback( MakeCallback( this, &RendererFactoryCache::ApplyRasterizedSVGToSampler ) ) );
+ mSvgRasterizeThread->Start();
+ }
+ return mSvgRasterizeThread;
+}
+
+void RendererFactoryCache::ApplyRasterizedSVGToSampler()
+{
+ while( RasterizingTaskPtr task = mSvgRasterizeThread->NextCompletedTask() )
+ {
+ task->GetSvgRenderer()->ApplyRasterizedImage( task->GetPixelData() );
+ }
+}
+