/*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
visual->LoadFirstBatch();
}
+ visual->Initialize();
+
return visual;
}
visual->LoadFirstBatch();
}
+ visual->Initialize();
+
return visual;
}
visual->LoadFirstBatch();
}
+ visual->Initialize();
+
return visual;
}
{
mPlacementActor = actor;
TextureSet textureSet = PrepareTextureSet();
- CreateRenderer(); // Always create a renderer when on stage
if( textureSet ) // if the image loading is successful
{
}
actor.RemoveRenderer( mImpl->mRenderer );
- mImpl->mRenderer.Reset();
mPlacementActor.Reset();
mStartFirstFrame = false;
}
}
}
-void AnimatedImageVisual::CreateRenderer()
+void AnimatedImageVisual::OnInitialize()
{
bool defaultWrapMode = mWrapModeU <= WrapMode::CLAMP_TO_EDGE && mWrapModeV <= WrapMode::CLAMP_TO_EDGE;
bool atlasing = false;