X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ffilters%2Fspread-filter.h;h=3ef21552696d1496b86195cdc880474faccd42c6;hb=a8d60282f49c906206c1ffb2f2425800b914d109;hp=a4c02b217f6be7ad530229b1cfa9d19f1a0b0b51;hpb=e2eda444afbe82e9591fe198eef339227f90a616;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/filters/spread-filter.h b/dali-toolkit/internal/filters/spread-filter.h index a4c02b2..3ef2155 100644 --- a/dali-toolkit/internal/filters/spread-filter.h +++ b/dali-toolkit/internal/filters/spread-filter.h @@ -1,26 +1,28 @@ #ifndef __DALI_TOOLKIT_INTERNAL_SPREAD_FILTER_H__ #define __DALI_TOOLKIT_INTERNAL_SPREAD_FILTER_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 "image-filter.h" namespace Dali @@ -64,11 +66,10 @@ public: // From ImageFilter /// @copydoc Dali::Toolkit::Internal::ImageFilter::Refresh virtual void Refresh(); + /// @copydoc Dali::Toolkit::Internal::ImageFilter::SetSize + virtual void SetSize( const Vector2& size ); + private: - /** - * Setup position and parameters for camera - */ - void SetupCamera(); /** * Setup render tasks for blur @@ -80,19 +81,17 @@ private: SpreadFilter& operator=( const SpreadFilter& ); private: // Attributes - int mSpread; - CameraActor mCameraActor; // To perform horizontal spread from mInputImage to mImageForHorz - RenderTask mRenderTaskForHorz; - ImageActor mActorForInput; - FrameBufferImage mImageForHorz; - ShaderEffect mShaderForHorz; + RenderTask mRenderTaskForHorz; + Toolkit::ImageView mActorForInput; + FrameBufferImage mImageForHorz; // To perform vertical spread from mImageForHorz to mOutputImage - RenderTask mRenderTaskForVert; - ImageActor mActorForHorz; - ShaderEffect mShaderForVert; + RenderTask mRenderTaskForVert; + Toolkit::ImageView mActorForHorz; + + int mSpread; }; // class SpreadFilter } // namespace Internal