When we create Svg Visual -> SceneOn & SceneOff very fast during all rasterize
threads are fully busy,
It will remove SvgLoadingTask who is in mResterizeTasks.
After we re-sceneon that visual again, it will be broken :
mLoadingFail is not true, but we didn't load file.
This patch make we don't remove SvgLoadingTask when we call RemoveTasks
Change-Id: I40582ebb2512e56e96eed64caff4b1070b4bd9c2
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
{
for(std::vector<SvgTaskPtr>::iterator it = mRasterizeTasks.begin(); it != mRasterizeTasks.end();)
{
- if((*it) && (*it)->GetSvgVisual() == visual)
+ // We should not remove SvgLoadingTask now.
+ if((*it) && (*it)->GetSvgVisual() == visual && dynamic_cast<SvgRasterizingTask*>(it->Get()))
{
it = mRasterizeTasks.erase(it);
}