-#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.
// 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
{
/**
* @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
*/
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:
/**
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
} // namespace Dali
-#endif // __DALI_INTERNAL_FRAME_BUFFER_IMAGE_H__
+#endif // DALI_INTERNAL_FRAME_BUFFER_IMAGE_H