X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fsuper-blur-view%2Fsuper-blur-view-impl.h;h=0c782c94610e3f53971c537ecae476e9a4e508d5;hb=a2d9a530516aa8e8db9ffb1cdfc5e121fc0df46d;hp=3488c2c778b7a4bab935e06b0d64762ab4b1fcda;hpb=c3f7ea6cb0c0b75c2276193aff88b5c7a679a2d5;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git 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 3488c2c..0c782c9 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 @@ -2,7 +2,7 @@ #define __DALI_TOOLKIT_INTERNAL_SUPER_BLUR_VIEW_H__ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2017 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,8 @@ // INTERNAL INCLUDES #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; @@ -119,6 +126,16 @@ private: // from Control */ virtual void OnSizeSet(const Vector3& targetSize); + /** + * @copydoc CustomActorImpl::OnStageConnection() + */ + virtual void OnStageConnection( int depth ); + + /** + * @copydoc CustomActorImpl::GetNaturalSize() + */ + virtual Vector3 GetNaturalSize(); + private: /** @@ -139,19 +156,24 @@ 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; }; }