Fixes by clang-tidy.
[platform/core/uifw/dali-adaptor.git] / dali / internal / imaging / common / pixel-buffer-impl.h
index b0fe5ce..5513f8b 100644 (file)
@@ -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