X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ffilters%2Fblur-two-pass-filter.cpp;h=e870650ad8f451de318c0d17a38b6231e325eeaa;hb=8c45458b64211285df3df591dfcb628126a1bc0e;hp=a5adec7ceab89969358833b0a088445f9c372205;hpb=c01f2590ed7bb00d9b3600511d08dc420261ed46;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/filters/blur-two-pass-filter.cpp b/dali-toolkit/internal/filters/blur-two-pass-filter.cpp index a5adec7..e870650 100644 --- a/dali-toolkit/internal/filters/blur-two-pass-filter.cpp +++ b/dali-toolkit/internal/filters/blur-two-pass-filter.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 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. @@ -21,7 +21,7 @@ // EXTERNAL INCLUDES #include #include -#include +#include #include #include #include @@ -141,7 +141,7 @@ void BlurTwoPassFilter::Enable() // create actor to render input with applied emboss effect mActorForInput = Actor::New(); mActorForInput.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER ); - mActorForInput.SetSize( mTargetSize ); + mActorForInput.SetProperty( Actor::Property::SIZE, mTargetSize ); Renderer rendererForInput = CreateRenderer( BASIC_VERTEX_SOURCE, fragmentSource.c_str() ); SetRendererTexture( rendererForInput, mInputTexture ); mActorForInput.AddRenderer( rendererForInput ); @@ -154,7 +154,7 @@ void BlurTwoPassFilter::Enable() // create an actor to render mImageForHorz for vertical blur pass mActorForHorz = Actor::New(); mActorForHorz.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER ); - mActorForHorz.SetSize( mTargetSize ); + mActorForHorz.SetProperty( Actor::Property::SIZE, mTargetSize ); Renderer rendererForHorz = CreateRenderer( BASIC_VERTEX_SOURCE, fragmentSource.c_str() ); SetRendererTexture( rendererForHorz, textureForHorz ); mActorForHorz.AddRenderer( rendererForHorz ); @@ -171,7 +171,7 @@ void BlurTwoPassFilter::Enable() textureSetForBlending.SetTexture( 1u, mInputTexture ); mActorForBlending.AddRenderer( rendererForBlending ); mActorForBlending.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER ); - mActorForBlending.SetSize( mTargetSize ); + mActorForBlending.SetProperty( Actor::Property::SIZE, mTargetSize ); for( int i = 0; i < kernelSize; ++i ) { @@ -257,15 +257,15 @@ void BlurTwoPassFilter::SetSize( const Vector2& size ) mTargetSize = size; if( mActorForInput ) { - mActorForInput.SetSize(mTargetSize); + mActorForInput.SetProperty( Actor::Property::SIZE, mTargetSize); } if( mActorForHorz ) { - mActorForHorz.SetSize(mTargetSize); + mActorForHorz.SetProperty( Actor::Property::SIZE, mTargetSize); } if( mActorForBlending ) { - mActorForBlending.SetSize(mTargetSize); + mActorForBlending.SetProperty( Actor::Property::SIZE, mTargetSize); } }