Do not change BlendMode by following whether advanced blend equation is appied or not 28/248328/5
authorSeungho Baek <sbsh.baek@samsung.com>
Wed, 25 Nov 2020 10:10:58 +0000 (19:10 +0900)
committerSeungho Baek <sbsh.baek@samsung.com>
Mon, 30 Nov 2020 00:55:10 +0000 (09:55 +0900)
Change-Id: I9fb5eb3c9cb52095ca032a5e2e63028d8d04d203
Signed-off-by: Seungho Baek <sbsh.baek@samsung.com>
dali-toolkit/internal/visuals/border/border-visual.cpp
dali-toolkit/internal/visuals/color/color-visual.cpp
dali-toolkit/internal/visuals/gradient/gradient-visual.cpp
dali-toolkit/internal/visuals/visual-base-impl.cpp
dali-toolkit/internal/visuals/visual-base-impl.h

index ddd2e52..452fda9 100644 (file)
@@ -199,7 +199,7 @@ void BorderVisual::DoSetOnScene( Actor& actor )
   InitializeRenderer();
 
   mBorderColorIndex = mImpl->mRenderer.RegisterProperty( Toolkit::BorderVisual::Property::COLOR, COLOR_NAME, mBorderColor );
   InitializeRenderer();
 
   mBorderColorIndex = mImpl->mRenderer.RegisterProperty( Toolkit::BorderVisual::Property::COLOR, COLOR_NAME, mBorderColor );
-  if( ( mBorderColor.a < 1.f || mAntiAliasing ) || IsAdvancedBlendEquationApplied() )
+  if( mBorderColor.a < 1.f || mAntiAliasing )
   {
     mImpl->mRenderer.SetProperty( Renderer::Property::BLEND_MODE, BlendMode::ON );
   }
   {
     mImpl->mRenderer.SetProperty( Renderer::Property::BLEND_MODE, BlendMode::ON );
   }
index 793b8b2..edebccf 100644 (file)
@@ -341,7 +341,7 @@ void ColorVisual::InitializeRenderer()
 
   mImpl->mRenderer.RegisterProperty( BLUR_RADIUS_NAME, mBlurRadius );
 
 
   mImpl->mRenderer.RegisterProperty( BLUR_RADIUS_NAME, mBlurRadius );
 
-  if( mImpl->mMixColor.a < 1.f || !EqualsZero( mBlurRadius ) || IsAdvancedBlendEquationApplied() )
+  if( !EqualsZero( mBlurRadius ) )
   {
     mImpl->mRenderer.SetProperty( Renderer::Property::BLEND_MODE, BlendMode::ON );
   }
   {
     mImpl->mRenderer.SetProperty( Renderer::Property::BLEND_MODE, BlendMode::ON );
   }
index 7d39a77..d0807df 100644 (file)
@@ -460,7 +460,7 @@ void GradientVisual::InitializeRenderer()
   mImpl->mRenderer.SetTextures( textureSet );
 
   // If opaque and then no need to have blending
   mImpl->mRenderer.SetTextures( textureSet );
 
   // If opaque and then no need to have blending
-  if( mIsOpaque && !IsAdvancedBlendEquationApplied() )
+  if( mIsOpaque )
   {
     mImpl->mRenderer.SetProperty( Renderer::Property::BLEND_MODE, BlendMode::OFF );
   }
   {
     mImpl->mRenderer.SetProperty( Renderer::Property::BLEND_MODE, BlendMode::OFF );
   }
index ce31fb1..aca317e 100755 (executable)
@@ -413,11 +413,6 @@ bool Visual::Base::IsPreMultipliedAlphaEnabled() const
   return mImpl->mFlags & Impl::IS_PREMULTIPLIED_ALPHA;
 }
 
   return mImpl->mFlags & Impl::IS_PREMULTIPLIED_ALPHA;
 }
 
-bool Visual::Base::IsAdvancedBlendEquationApplied() const
-{
-  return IsPreMultipliedAlphaEnabled() && DevelRenderer::IsAdvancedBlendEquationApplied( mImpl->mRenderer );
-}
-
 void Visual::Base::DoSetOffScene( Actor& actor )
 {
   actor.RemoveRenderer( mImpl->mRenderer );
 void Visual::Base::DoSetOffScene( Actor& actor )
 {
   actor.RemoveRenderer( mImpl->mRenderer );
index b6ab75e..b925e46 100644 (file)
@@ -170,13 +170,6 @@ public:
   bool IsPreMultipliedAlphaEnabled() const;
 
   /**
   bool IsPreMultipliedAlphaEnabled() const;
 
   /**
-   * @brief Query whether advanced blend equation is applied.
-   *
-   * @return True is advanced blend equation is applied, false otherwise.
-   */
-  bool IsAdvancedBlendEquationApplied() const;
-
-  /**
    * @brief Sets properties of custom shader
    * @param[in] propertyMap Property map containing the custom shader data
    */
    * @brief Sets properties of custom shader
    * @param[in] propertyMap Property map containing the custom shader data
    */