X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Frendering%2Fframe-buffer-impl.h;h=9913b4d89f573c8e1196c70a7f7924b42f155c90;hb=79881246746f65474b24ea4fe14151ccef8df3f4;hp=2073209baff8044931676025ac0adf03852780ea;hpb=dbf07cafa9d0da726262249c9b4ebe775cfcb841;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/rendering/frame-buffer-impl.h b/dali/internal/event/rendering/frame-buffer-impl.h index 2073209..9913b4d 100644 --- a/dali/internal/event/rendering/frame-buffer-impl.h +++ b/dali/internal/event/rendering/frame-buffer-impl.h @@ -2,7 +2,7 @@ #define DALI_INTERNAL_FRAME_BUFFER_H /* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 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. @@ -23,16 +23,13 @@ #include // Dali::IntrusivePtr #include #include +#include #include #include namespace Dali { - -namespace Integration -{ -class RenderSurface; -} +using Mask = Dali::FrameBuffer::Attachment::Mask; namespace Internal { @@ -61,15 +58,6 @@ public: static FrameBufferPtr New( uint32_t width, uint32_t height, Mask attachments ); /** - * @brief Create a new FrameBuffer - * - * @param[in] renderSurface The render surface - * @param[in] attachments The attachments comprising the format of the FrameBuffer (bit-mask) - * @return A smart-pointer to the newly allocated Texture. - */ - static FrameBufferPtr New( Dali::Integration::RenderSurface& renderSurface, Mask attachments ); - - /** * A reference counted object may only be deleted by calling Unreference() */ virtual ~FrameBuffer(); @@ -89,7 +77,7 @@ public: /** * @copydoc Dali::FrameBuffer::GetColorTexture() */ - Texture* GetColorTexture(); + Texture* GetColorTexture(uint8_t index) const; /** * @brief Sets the frame buffer size. @@ -98,16 +86,6 @@ public: */ void SetSize( uint32_t width, uint32_t height ); - /** - * @brief Mark the render surface as invalid - * - * The render surface is maked as invalid when it is deleted. - * - * @note Only for FrameBuffer backed by a render surface. - * @return True if the FrameBuffer is backed by a render surface - */ - void MarkSurfaceAsInvalid(); - private: // implementation /** @@ -121,7 +99,7 @@ private: // implementation /** * Second stage initialization of the Texture */ - void Initialize( Integration::RenderSurface* renderSurface = nullptr ); + void Initialize(); protected: @@ -136,13 +114,11 @@ private: // data Internal::EventThreadServices& mEventThreadServices; ///< Used to send messages to the render thread via update thread Internal::Render::FrameBuffer* mRenderObject; ///< The Render::Texture associated to this texture - TexturePtr mColor; + TexturePtr mColor[ Dali::DevelFrameBuffer::MAX_COLOR_ATTACHMENTS ]; uint32_t mWidth; uint32_t mHeight; Mask mAttachments; ///< Bit-mask of type FrameBuffer::Attachment::Mask - - bool mIsSurfaceBacked:1; - + uint8_t mColorAttachmentCount; }; } // namespace Internal