[dali_1.4.36] Merge branch 'devel/master'
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / pixel-buffer.cpp
old mode 100644 (file)
new mode 100755 (executable)
index b041c96..94af7f8
@@ -96,6 +96,11 @@ unsigned char* PixelBuffer::GetBuffer()
   return GetImplementation(*this).GetBuffer();
 }
 
+const unsigned char* const PixelBuffer::GetBuffer() const
+{
+  return GetImplementation(*this).GetConstBuffer();
+}
+
 void PixelBuffer::ApplyMask( PixelBuffer mask, float contentScale, bool cropToMask )
 {
   GetImplementation(*this).ApplyMask( GetImplementation( mask ), contentScale, cropToMask );
@@ -126,9 +131,14 @@ bool PixelBuffer::GetMetadata( Property::Map& metadata ) const
   return GetImplementation(*this).GetMetadata(metadata);
 }
 
-void PixelBuffer::Rotate( Degree angle )
+bool PixelBuffer::Rotate( Degree angle )
+{
+  return GetImplementation(*this).Rotate( angle );
+}
+
+bool PixelBuffer::IsAlphaPreMultiplied() const
 {
-  GetImplementation(*this).Rotate( angle );
+  return GetImplementation(*this).IsAlphaPreMultiplied();
 }
 
 } // namespace Devel