Revert "[Tizen] Restore Uploaded signal for BufferImage and ResourceImage"
[platform/core/uifw/dali-core.git] / dali / internal / event / images / frame-buffer-image-impl.h
index 42d5872..97e5ecb 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef __DALI_INTERNAL_FRAME_BUFFER_IMAGE_H__
-#define __DALI_INTERNAL_FRAME_BUFFER_IMAGE_H__
+#ifndef DALI_INTERNAL_FRAME_BUFFER_IMAGE_H
+#define DALI_INTERNAL_FRAME_BUFFER_IMAGE_H
 
 /*
- * Copyright (c) 2015 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.
@@ -21,6 +21,7 @@
 // INTERNAL INCLUDES
 #include <dali/internal/event/images/image-impl.h>
 #include <dali/public-api/images/frame-buffer-image.h>
+#include <dali/internal/event/rendering/frame-buffer-impl.h>
 
 namespace Dali
 {
@@ -51,7 +52,7 @@ public:
   /**
    * @copydoc Dali::FrameBufferImage::FrameBufferImage
    */
-  FrameBufferImage( unsigned int width, unsigned int height, Pixel::Format pixelFormat, RenderBuffer::Format bufferformat );
+  FrameBufferImage( unsigned int width, unsigned int height );
 
   /**
    * @copydoc Dali::FrameBufferImage::FrameBufferImage
@@ -63,16 +64,13 @@ public:
    */
   bool IsNativeFbo() const;
 
-public: // From Image
   /**
-   * @copydoc Dali::Internal::Image::Connect()
+   * @return Internal FrameBuffer used by this FrameBufferImage
    */
-  virtual void Connect();
-
-  /**
-   * @copydoc Dali::Internal::Image::Disconnect()
-   */
-  virtual void Disconnect();
+  FrameBuffer* GetFrameBuffer() const
+  {
+    return mFrameBufferObject.Get();
+  }
 
 protected:
   /**
@@ -82,9 +80,8 @@ protected:
 
 private:
   // cached values for the size / pixel format we were created with. Needed to recreate us when we Connect() to stage and mTicket was reset from a previous call to Disconnect().
+  FrameBufferPtr  mFrameBufferObject;
   NativeImageInterfacePtr mNativeImage;
-  Pixel::Format mPixelFormat;
-  RenderBuffer::Format mBufferFormat;
   bool mIsNativeFbo;
 }; // class FrameBufferImage
 
@@ -113,4 +110,4 @@ inline const Internal::FrameBufferImage& GetImplementation(const Dali::FrameBuff
 
 } // namespace Dali
 
-#endif // __DALI_INTERNAL_FRAME_BUFFER_IMAGE_H__
+#endif // DALI_INTERNAL_FRAME_BUFFER_IMAGE_H