[Tizen] Implement partial update
[platform/core/uifw/dali-core.git] / dali / internal / update / rendering / scene-graph-renderer.cpp
index d42e960..b7180cb 100755 (executable)
@@ -775,31 +775,34 @@ void Renderer::SetDirty( bool value )
 bool Renderer::IsDirty() const
 {
   bool ret = false;
-  if( mShader )
-  {
-    ret = mShader->IsPropertyDirty();
-  }
 
-  // check native image
-  if( mTextureSet )
+  if( !mDirty )
   {
-    uint32_t textureCount = mTextureSet->GetTextureCount();
+    if( mShader )
+    {
+      ret = mShader->IsPropertyDirty();
+    }
 
-    if(textureCount > 0)
+    // check native image
+    if( !ret && mTextureSet )
     {
-      Dali::Internal::Render::Texture* texture;
-      for( uint32_t i = 0; i<textureCount; ++i )
+      uint32_t textureCount = mTextureSet->GetTextureCount();
+
+      if(textureCount > 0)
       {
-        texture = const_cast<Dali::Internal::SceneGraph::TextureSet *>(mTextureSet)->GetTexture(i);
-        if( texture && texture->IsNativeImage() )
+        Dali::Internal::Render::Texture* texture;
+        for( uint32_t i = 0; i<textureCount; ++i )
         {
-          ret = true;
-          break;
+          texture = const_cast<Dali::Internal::SceneGraph::TextureSet *>(mTextureSet)->GetTexture(i);
+          if( texture && texture->IsNativeImage() )
+          {
+            ret = true;
+            break;
+          }
         }
       }
     }
   }
-
   return ret | mDirty;
 }