X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fgaussian-blur-view%2Fgaussian-blur-view-impl.h;h=7f3848923140a09c114eb9b5733c330e35e39c7a;hp=f57dd4970b1fe08045d36ec5eb6892883e108370;hb=397218b6cdd85915f5fe00fa9d3615dfa3867422;hpb=e2eda444afbe82e9591fe198eef339227f90a616 diff --git a/dali-toolkit/internal/controls/gaussian-blur-view/gaussian-blur-view-impl.h b/dali-toolkit/internal/controls/gaussian-blur-view/gaussian-blur-view-impl.h index f57dd49..7f38489 100644 --- a/dali-toolkit/internal/controls/gaussian-blur-view/gaussian-blur-view-impl.h +++ b/dali-toolkit/internal/controls/gaussian-blur-view/gaussian-blur-view-impl.h @@ -1,30 +1,31 @@ #ifndef __DALI_TOOLKIT_INTERNAL_GAUSSIAN_BLUR_EFFECT_H__ #define __DALI_TOOLKIT_INTERNAL_GAUSSIAN_BLUR_EFFECT_H__ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Flora License, Version 1.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://floralicense.org/license/ -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an AS IS BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* + * Copyright (c) 2014 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ // EXTERNAL INCLUDES #include #include // INTERNAL INCLUDES -#include #include #include +#include namespace Dali { @@ -40,7 +41,7 @@ namespace Internal /** * GaussianBlurView implementation class */ -class GaussianBlurView : public ControlImpl +class GaussianBlurView : public Control { public: @@ -95,10 +96,7 @@ public: private: virtual void OnInitialize(); - virtual void OnControlSizeSet(const Vector3& targetSize); - virtual void OnStageDisconnection(); - - virtual void OnControlStageConnection(); + virtual void OnSizeSet(const Vector3& targetSize); void SetBlurBellCurveWidth(float blurBellCurveWidth); float CalcGaussianWeight(float x); @@ -156,23 +154,20 @@ private: FrameBufferImage mRenderTarget1; FrameBufferImage mRenderTarget2; - ShaderEffect mHorizBlurShader; - ShaderEffect mVertBlurShader; - - ImageActor mImageActorHorizBlur; - ImageActor mImageActorVertBlur; + Toolkit::ImageView mImageActorHorizBlur; + Toolkit::ImageView mImageActorVertBlur; RenderTask mHorizBlurTask; RenderTask mVertBlurTask; ///////////////////////////////////////////////////////////// // for compositing blur and children renders to offscreen target - ImageActor mImageActorComposite; + Toolkit::ImageView mImageActorComposite; RenderTask mCompositeTask; ///////////////////////////////////////////////////////////// // for holding blurred result - ImageActor mTargetActor; + Toolkit::ImageView mTargetActor; ///////////////////////////////////////////////////////////// // for animating fade in / out of blur, hiding internal implementation but allowing user to set via GaussianBlurView interface @@ -184,6 +179,8 @@ private: FrameBufferImage mUserOutputRenderTarget; Dali::Toolkit::GaussianBlurView::GaussianBlurViewSignal mFinishedSignal; ///< Signal emitted when blur has completed. + + bool mActivated:1; private: // Undefined copy constructor.