Fix compile error. Non initialized variable.
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / controls / super-blur-view / super-blur-view-impl.h
index 594693c..117d34a 100644 (file)
@@ -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.
  *
  */
 
+// EXTERNAL INCLUDES
+#include <dali/public-api/rendering/frame-buffer.h>
+#include <dali/public-api/rendering/renderer.h>
+
 // INTERNAL INCLUDES
 #include <dali-toolkit/public-api/controls/control-impl.h>
 #include <dali-toolkit/devel-api/controls/super-blur-view/super-blur-view.h>
-#include <dali-toolkit/public-api/controls/gaussian-blur-view/gaussian-blur-view.h>
-#include <dali-toolkit/devel-api/controls/renderer-factory/renderer-factory.h>
+#include <dali-toolkit/devel-api/controls/gaussian-blur-view/gaussian-blur-view.h>
+#include <dali-toolkit/devel-api/visual-factory/visual-factory.h>
 
 namespace Dali
 {
@@ -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
 
@@ -127,14 +125,14 @@ private: // from Control
   virtual void OnSizeSet(const Vector3& targetSize);
 
   /**
-   * @copydoc CustomActorImpl::OnStageConnection()
+   * @copydoc CustomActorImpl::OnSceneConnection()
    */
-  virtual void OnStageConnection( int depth );
+  virtual void OnSceneConnection( int depth );
 
   /**
-   * @copydoc CustomActorImpl::OnStageDisconnection()
+   * @copydoc CustomActorImpl::OnSceneDisconnection()
    */
-  virtual void OnStageDisconnection();
+  virtual void OnSceneDisconnection();
 
   /**
    * @copydoc CustomActorImpl::GetNaturalSize()
@@ -146,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
@@ -163,13 +161,14 @@ private:
 
 private:
   std::vector<Toolkit::GaussianBlurView> mGaussianBlurView;
-  std::vector<FrameBufferImage>          mBlurredImage;
-  std::vector<Toolkit::ControlRenderer>  mRenderers;
-  Image                                  mInputImage;
+  std::vector<FrameBuffer>               mBlurredImage;
+  std::vector<Renderer>                  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;
@@ -196,4 +195,4 @@ inline const Toolkit::Internal::SuperBlurView& GetImpl( const Toolkit::SuperBlur
 
 }
 
-#endif /* __DALI_TOOLKIT_INTERNALSUPER_BLUR_VIEW_H__ */
+#endif // DALI_TOOLKIT_INTERNAL_SUPER_BLUR_VIEW_H