X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ffilters%2Fspread-filter.h;h=61cc0a8ae38010ab6e01268c81a97c3c47f2c4b6;hb=21b574541aac2281c92020c0f62f7754897808b2;hp=926c98d6d85371bd62b157780a294c3c031c664b;hpb=73e02f6f3ea83cbdf3d894a7d067c4dafc0ac54d;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 926c98d..61cc0a8 100644 --- a/dali-toolkit/internal/filters/spread-filter.h +++ b/dali-toolkit/internal/filters/spread-filter.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_INTERNAL_SPREAD_FILTER_H /* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 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. @@ -26,13 +26,10 @@ namespace Dali { - namespace Toolkit { - namespace Internal { - /** * A spread/thicken filter. Expands an image into transparent areas. */ @@ -53,7 +50,7 @@ public: * Set the amount of spread in pixels. * @param[in] spread The amount of spread */ - void SetSpread( float spread ); + void SetSpread(float spread); public: // From ImageFilter /// @copydoc Dali::Toolkit::Internal::ImageFilter::Enable @@ -66,31 +63,29 @@ public: // From ImageFilter void Refresh() override; /// @copydoc Dali::Toolkit::Internal::ImageFilter::SetSize - void SetSize( const Vector2& size ) override; + void SetSize(const Vector2& size) override; private: - /** * Setup render tasks for blur */ void CreateRenderTasks(); private: - SpreadFilter( const SpreadFilter& ); - SpreadFilter& operator=( const SpreadFilter& ); + SpreadFilter(const SpreadFilter&); + SpreadFilter& operator=(const SpreadFilter&); private: // Attributes - // To perform horizontal spread from mInputTexture to mFrameBufferForHorz - RenderTask mRenderTaskForHorz; - Actor mActorForInput; - FrameBuffer mFrameBufferForHorz; + RenderTask mRenderTaskForHorz; + Actor mActorForInput; + FrameBuffer mFrameBufferForHorz; // To perform vertical spread from mFrameBufferForHorz to mOutputFrameBuffer - RenderTask mRenderTaskForVert; - Actor mActorForHorz; + RenderTask mRenderTaskForVert; + Actor mActorForHorz; - int mSpread; + int mSpread; }; // class SpreadFilter } // namespace Internal @@ -100,4 +95,3 @@ private: // Attributes } // namespace Dali #endif // DALI_TOOLKIT_INTERNAL_SPREAD_FILTER_H -