[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 df54151..94af7f8
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2018 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.
@@ -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,6 +131,16 @@ bool PixelBuffer::GetMetadata( Property::Map& metadata ) const
   return GetImplementation(*this).GetMetadata(metadata);
 }
 
+bool PixelBuffer::Rotate( Degree angle )
+{
+  return GetImplementation(*this).Rotate( angle );
+}
+
+bool PixelBuffer::IsAlphaPreMultiplied() const
+{
+  return GetImplementation(*this).IsAlphaPreMultiplied();
+}
+
 } // namespace Devel
 
 } // namespace Dali