X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali-toolkit%2Finternal%2Fcontrols%2Fsuper-blur-view%2Fsuper-blur-view-impl.h;h=fbcb5a5e6e07ddca16a64c00f0b35909d9d1f3d1;hb=refs%2Fchanges%2F68%2F81368%2F3;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..fbcb5a5 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 @@ -22,6 +22,7 @@ #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,21 @@ private: // from Control */ virtual void OnSizeSet(const Vector3& targetSize); + /** + * @copydoc CustomActorImpl::OnStageConnection() + */ + virtual void OnStageConnection( int depth ); + + /** + * @copydoc CustomActorImpl::OnStageDisconnection() + */ + virtual void OnStageDisconnection(); + + /** + * @copydoc CustomActorImpl::GetNaturalSize() + */ + virtual Vector3 GetNaturalSize(); + private: /** @@ -139,19 +161,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 renderer + */ + void SetShaderEffect( Toolkit::Visual& renderer ); +private: std::vector mGaussianBlurView; std::vector mBlurredImage; - std::vector mImageActors; - bool mResourcesCleared; - + std::vector mRenderers; + Image mInputImage; Vector2 mTargetSize; + Toolkit::SuperBlurView::SuperBlurViewSignal mBlurFinishedSignal; ///< Signal emitted when blur has completed. + + Property::Index mBlurStrengthPropertyIndex; + unsigned int mBlurLevels; + bool mResourcesCleared; }; }