Remove dali-any from Property::Value - reimplement multivalue using more efficient...
[platform/core/uifw/dali-core.git] / dali / internal / event / images / resource-image-impl.cpp
index 4724cbc..7463eac 100644 (file)
@@ -18,6 +18,9 @@
 // CLASS HEADER
 #include <dali/internal/event/images/resource-image-impl.h>
 
+// EXTERNAL INCLUDES
+#include <cstring> // for strcmp
+
 // INTERNAL INCLUDES
 #include <dali/public-api/common/dali-common.h>
 #include <dali/public-api/object/type-registry.h>
@@ -68,7 +71,7 @@ ResourceImagePtr ResourceImage::New()
   return image;
 }
 
-ResourceImagePtr ResourceImage::New( const std::string& url, const Dali::ImageAttributes& attributes, LoadPolicy loadPol, ReleasePolicy releasePol )
+ResourceImagePtr ResourceImage::New( const std::string& url, const ImageAttributes& attributes, LoadPolicy loadPol, ReleasePolicy releasePol )
 {
   ResourceImagePtr image;
   if( IsNinePatch( url ) )
@@ -129,7 +132,7 @@ bool ResourceImage::DoConnectSignal( BaseObject* object, ConnectionTrackerInterf
   return connected;
 }
 
-const Dali::ImageAttributes& ResourceImage::GetAttributes() const
+const ImageAttributes& ResourceImage::GetAttributes() const
 {
   if( mTicket )
   {
@@ -163,8 +166,6 @@ unsigned int ResourceImage::GetWidth() const
     Size size;
     mImageFactory.GetImageSize( mRequest, mTicket, size );
     mWidth = size.width;
-    // The app will probably ask for the height immediately, so don't waste the synchronous file IO that ImageFactory may have just done:
-    DALI_ASSERT_DEBUG( 0 == mHeight || unsigned(size.height) == mHeight );
     if( 0 == mHeight )
     {
       mHeight = size.height;
@@ -180,7 +181,6 @@ unsigned int ResourceImage::GetHeight() const
     Size size;
     mImageFactory.GetImageSize( mRequest, mTicket, size );
     mHeight = size.height;
-    DALI_ASSERT_DEBUG( 0 == mWidth || unsigned(size.width) == mWidth );
     if( 0 == mWidth )
     {
       mWidth = size.width;