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=585703abe01a782517f45fd71674f3cd66629049;hb=19fc7fe98d6e9f2bc68f959bd70e558d0b4be9ab;hp=9f229fb265a386111aee239f106c5d832c5d4f73;hpb=b97b29c76acefabbae2c0a4e9ecc261bf9dd8036;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 9f229fb..585703a 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 @@ -18,6 +18,10 @@ * */ +// EXTERNAL INCLUDES +#include +#include + // INTERNAL INCLUDES #include #include @@ -51,13 +55,7 @@ public: /** * @copydoc Dali::Toolkit::SuperBlurView::SetImage */ - void SetImage(Image inputImage); - - /** - * Get the image for blurring. - * @return The image for blurring. - */ - Image GetImage(); + void SetTexture( Texture texture ); /** * @copydoc Dali::Toolkit::SuperBlurView::GetBlurStrengthPropertyIndex @@ -80,9 +78,9 @@ public: Dali::Toolkit::SuperBlurView::SuperBlurViewSignal& BlurFinishedSignal(); /** - * @copydoc Dali::Toolkit::SuperBlurView::GetBlurredImage + * @copydoc Dali::Toolkit::SuperBlurView::GetBlurredTexture */ - Image GetBlurredImage( unsigned int level ); + Texture GetBlurredTexture( unsigned int level ); // Properties @@ -132,6 +130,11 @@ private: // from Control virtual void OnStageConnection( int depth ); /** + * @copydoc CustomActorImpl::OnStageDisconnection() + */ + virtual void OnStageDisconnection(); + + /** * @copydoc CustomActorImpl::GetNaturalSize() */ virtual Vector3 GetNaturalSize(); @@ -141,9 +144,9 @@ private: /** * Carry out the idx-th pass of blurring * @param[in] idx The blur pass index - * @param[in] image The input image for the current blurring, it is either the original image or the blurred image from the previous pass + * @param[in] texture The input texture for the current blurring, it is either the original image or the blurred texture from the previous pass */ - void BlurImage( unsigned int idx, Image image ); + void BlurTexture( unsigned int idx, Texture texture ); /** * Signal handler to tell when the last blur view completes @@ -156,27 +159,22 @@ private: */ void ClearBlurResource(); - /** - * 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 mVisuals; - Image mInputImage; + std::vector mBlurredImage; + std::vector mRenderers; + Texture mInputTexture; Vector2 mTargetSize; Toolkit::SuperBlurView::SuperBlurViewSignal mBlurFinishedSignal; ///< Signal emitted when blur has completed. + std::string mUrl; Property::Index mBlurStrengthPropertyIndex; unsigned int mBlurLevels; bool mResourcesCleared; }; -} // namespace Internal +} // Helpers for public-api forwarding methods inline Toolkit::Internal::SuperBlurView& GetImpl( Toolkit::SuperBlurView& obj ) @@ -193,8 +191,8 @@ inline const Toolkit::Internal::SuperBlurView& GetImpl( const Toolkit::SuperBlur return static_cast(handle); } -} // namespace Toolkit +} -} // namespace Dali +} #endif // DALI_TOOLKIT_INTERNAL_SUPER_BLUR_VIEW_H