partialRenderingCacheInfo.color = node->GetColor(updateBufferIndex);
partialRenderingCacheInfo.depthIndex = node->GetDepthIndex();
- if(renderable.mRenderer)
+ if(DALI_LIKELY(renderable.mRenderer))
{
partialRenderingCacheInfo.textureSet = renderable.mRenderer->GetTextureSet();
}
size_t checkSumOld = 0;
for(uint32_t index = 0; index < renderableCount; ++index)
{
- const Render::Renderer& renderer = renderables[index].mRenderer->GetRenderer();
- checkSumNew += reinterpret_cast<std::size_t>(&renderer);
- checkSumOld += reinterpret_cast<std::size_t>(&renderList.GetRenderer(index));
+ if(DALI_LIKELY(renderables[index].mRenderer))
+ {
+ const Render::Renderer& renderer = renderables[index].mRenderer->GetRenderer();
+ checkSumNew += reinterpret_cast<std::size_t>(&renderer);
+ }
+ if(DALI_LIKELY(renderList.GetItem(index).mRenderer))
+ {
+ checkSumOld += reinterpret_cast<std::size_t>(&renderList.GetRenderer(index));
+ }
}
if(checkSumNew == checkSumOld)
{
{
RenderItem& item = renderList.GetItem(index);
- if(item.mRenderer)
+ if(DALI_LIKELY(item.mRenderer))
{
item.mRenderer->SetSortAttributes(mSortingHelper[index]);
}
{
RenderItem& item = renderList.GetItem(index);
- item.mRenderer->SetSortAttributes(mSortingHelper[index]);
+ if(DALI_LIKELY(item.mRenderer))
+ {
+ item.mRenderer->SetSortAttributes(mSortingHelper[index]);
+ }
// texture set
mSortingHelper[index].textureSet = item.mTextureSet;