X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fimaging%2Fcommon%2Fpixel-buffer-impl.h;h=5513f8bf064866325d573dc5303ad133bdf42c1f;hb=d812b55170d8de790183a2bbfaa8980bc09a0186;hp=b0fe5cedfd6caed94583a924d82b0b33b9913bfd;hpb=48c38e83680b54a7cb719f6662e56a7cdc140335;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/imaging/common/pixel-buffer-impl.h b/dali/internal/imaging/common/pixel-buffer-impl.h index b0fe5ce..5513f8b 100644 --- a/dali/internal/imaging/common/pixel-buffer-impl.h +++ b/dali/internal/imaging/common/pixel-buffer-impl.h @@ -2,7 +2,7 @@ #define DALI_INTERNAL_ADAPTOR_PIXEL_BUFFER_H /* - * Copyright (c) 2018 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. @@ -104,7 +104,7 @@ protected: * * Release the pixel buffer if exists. */ - ~PixelBuffer(); + ~PixelBuffer() override; public: @@ -133,6 +133,11 @@ public: unsigned char* GetBuffer() const; /** + * @copydoc Devel::PixelBuffer::GetBuffer() + */ + const unsigned char* const GetConstBuffer() const; + + /** * Get the size of the buffer in bytes * @return The size of the buffer */ @@ -217,6 +222,11 @@ public: */ bool Rotate( Degree angle ); + /** + * @copydoc Devel::PixelBuffer::IsAlphaPreMultiplied() + */ + bool IsAlphaPreMultiplied() const; + private: /* * Undefined copy constructor. @@ -278,6 +288,7 @@ private: unsigned int mWidth; ///< Buffer width in pixels unsigned int mHeight; ///< Buffer height in pixels Pixel::Format mPixelFormat; ///< Pixel format + bool mPreMultiplied; ///< PreMultiplied }; } // namespace Adaptor @@ -307,4 +318,4 @@ inline const Internal::Adaptor::PixelBuffer& GetImplementation( const Devel::Pix } // namespace Dali -#endif // __DALI_INTERNAL_ADAPTOR_PIXEL_BUFFER_H__ +#endif // DALI_INTERNAL_ADAPTOR_PIXEL_BUFFER_H