Add null check for mTextureSet.
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / filters / emboss-filter.h
index bc90e84..122c70c 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef __DALI_TOOLKIT_INTERNAL_EMBOSS_FILTER_H__
-#define __DALI_TOOLKIT_INTERNAL_EMBOSS_FILTER_H__
+#ifndef DALI_TOOLKIT_INTERNAL_EMBOSS_FILTER_H
+#define DALI_TOOLKIT_INTERNAL_EMBOSS_FILTER_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/render-tasks/render-task.h>
-#include <dali-toolkit/public-api/controls/image-view/image-view.h>
-#include <dali-toolkit/devel-api/controls/visual-factory/visual.h>
+#include <dali/public-api/rendering/frame-buffer.h>
+#include <dali/public-api/rendering/renderer.h>
+
+// INTERNAL INCLUDES
 #include "image-filter.h"
 
 namespace Dali
@@ -51,16 +53,16 @@ public:
 
 public: // From ImageFilter
   /// @copydoc Dali::Toolkit::Internal::ImageFilter::Enable
-  virtual void Enable();
+  void Enable() override;
 
   /// @copydoc Dali::Toolkit::Internal::ImageFilter::Disable
-  virtual void Disable();
+  void Disable() override;
 
   /// @copydoc Dali::Toolkit::Internal::ImageFilter::Refresh
-  virtual void Refresh();
+  void Refresh() override;
 
   /// @copydoc Dali::Toolkit::Internal::ImageFilter::SetSize
-  virtual void SetSize( const Vector2& size );
+  void SetSize( const Vector2& size ) override;
 
 private:
   /**
@@ -74,16 +76,16 @@ private:
 
 private: // Attributes
 
-  RenderTask         mRenderTaskForEmboss1;
-  RenderTask         mRenderTaskForEmboss2;
-  RenderTask         mRenderTaskForOutput;
-  FrameBufferImage   mImageForEmboss1;
-  FrameBufferImage   mImageForEmboss2;
-  Toolkit::ImageView mActorForInput1;
-  Toolkit::ImageView mActorForInput2;
-  Toolkit::Visual mRendererForEmboss1;
-  Toolkit::Visual mRendererForEmboss2;
-  Actor              mActorForComposite;
+  RenderTask            mRenderTaskForEmboss1;
+  RenderTask            mRenderTaskForEmboss2;
+  RenderTask            mRenderTaskForOutput;
+  FrameBuffer           mFrameBufferForEmboss1;
+  FrameBuffer           mFrameBufferForEmboss2;
+  Actor                 mActorForInput1;
+  Actor                 mActorForInput2;
+  Renderer              mRendererForEmboss1;
+  Renderer              mRendererForEmboss2;
+  Actor                 mActorForComposite;
 }; // class EmbossFilter
 
 } // namespace Internal
@@ -92,5 +94,5 @@ private: // Attributes
 
 } // namespace Dali
 
-#endif // __DALI_TOOLKIT_INTERNAL_EMBOSS_FILTER_H__
+#endif // DALI_TOOLKIT_INTERNAL_EMBOSS_FILTER_H