X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fsuper-blur-view%2Fsuper-blur-view-impl.h;h=9f229fb265a386111aee239f106c5d832c5d4f73;hp=ebbe453a65b18dfd4920485567e15b65a7d6f775;hb=b694e7e2ae624e206e1548b1a863c554eb9cd4d7;hpb=b458e407eba11c73f38da68bce8e967a30ea03e2 diff --git a/dali-toolkit/internal/controls/super-blur-view/super-blur-view-impl.h b/dali-toolkit/internal/controls/super-blur-view/super-blur-view-impl.h index ebbe453..9f229fb 100644 --- a/dali-toolkit/internal/controls/super-blur-view/super-blur-view-impl.h +++ b/dali-toolkit/internal/controls/super-blur-view/super-blur-view-impl.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_INTERNAL_SUPER_BLUR_VIEW_H__ -#define __DALI_TOOLKIT_INTERNAL_SUPER_BLUR_VIEW_H__ +#ifndef DALI_TOOLKIT_INTERNAL_SUPER_BLUR_VIEW_H +#define DALI_TOOLKIT_INTERNAL_SUPER_BLUR_VIEW_H /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 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. @@ -20,8 +20,9 @@ // INTERNAL INCLUDES #include -#include -#include +#include +#include +#include namespace Dali { @@ -53,6 +54,12 @@ public: void SetImage(Image inputImage); /** + * Get the image for blurring. + * @return The image for blurring. + */ + Image GetImage(); + + /** * @copydoc Dali::Toolkit::SuperBlurView::GetBlurStrengthPropertyIndex */ Property::Index GetBlurStrengthPropertyIndex() const; @@ -115,14 +122,19 @@ private: // from Control virtual void OnInitialize(); /** - * @copydoc Toolkit::Control::OnControlSizeSet + * @copydoc CustomActorImpl::OnSizeSet() + */ + virtual void OnSizeSet(const Vector3& targetSize); + + /** + * @copydoc CustomActorImpl::OnStageConnection() */ - virtual void OnControlSizeSet(const Vector3& targetSize); + virtual void OnStageConnection( int depth ); /** - * @copydoc Control::OnRelayout() + * @copydoc CustomActorImpl::GetNaturalSize() */ - virtual void OnRelayout( const Vector2& size, ActorSizeContainer& container ); + virtual Vector3 GetNaturalSize(); private: @@ -144,22 +156,27 @@ private: */ void ClearBlurResource(); -private: - - unsigned int mBlurLevels; - - Property::Index mBlurStrengthPropertyIndex; + /** + * Sets shader effect on the control renderer + * @param[in,out] Sets custom shader effect on the given visual + */ + void SetShaderEffect( Toolkit::Visual::Base& visual ); +private: std::vector mGaussianBlurView; std::vector mBlurredImage; - std::vector mImageActors; - bool mResourcesCleared; - + std::vector mVisuals; + Image mInputImage; Vector2 mTargetSize; + Toolkit::SuperBlurView::SuperBlurViewSignal mBlurFinishedSignal; ///< Signal emitted when blur has completed. + + Property::Index mBlurStrengthPropertyIndex; + unsigned int mBlurLevels; + bool mResourcesCleared; }; -} +} // namespace Internal // Helpers for public-api forwarding methods inline Toolkit::Internal::SuperBlurView& GetImpl( Toolkit::SuperBlurView& obj ) @@ -176,8 +193,8 @@ inline const Toolkit::Internal::SuperBlurView& GetImpl( const Toolkit::SuperBlur return static_cast(handle); } -} +} // namespace Toolkit -} +} // namespace Dali -#endif /* __DALI_TOOLKIT_INTERNALSUPER_BLUR_VIEW_H__ */ +#endif // DALI_TOOLKIT_INTERNAL_SUPER_BLUR_VIEW_H