X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Fimages%2Fresource-image-impl.cpp;h=ea72dcb044f6ea439b09e38c5b89597f2da03874;hb=d2d43506df25b63d0385270b2cbd6ccc2ca16ccb;hp=6c9ad3d4aaf7f787da6b026a2a98ce980863e866;hpb=67f05fa704463e240cbbf6030cb27f6bdf6137b4;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/images/resource-image-impl.cpp b/dali/internal/event/images/resource-image-impl.cpp index 6c9ad3d..ea72dcb 100644 --- a/dali/internal/event/images/resource-image-impl.cpp +++ b/dali/internal/event/images/resource-image-impl.cpp @@ -29,7 +29,6 @@ #include #include #include -#include using namespace Dali::Integration; @@ -111,7 +110,7 @@ ResourceImage::~ResourceImage() bool ResourceImage::DoConnectSignal( BaseObject* object, ConnectionTrackerInterface* tracker, const std::string& signalName, FunctorDelegate* functor ) { bool connected( true ); - DALI_ASSERT_DEBUG( dynamic_cast( object ) && "Resource ticket not ImageTicket subclass for image resource.\n" ); + DALI_ASSERT_DEBUG( dynamic_cast( object ) && "Failed to downcast from BaseObject to ResourceImage.\n" ); ResourceImage* image = static_cast(object); if( 0 == strcmp( signalName.c_str(), SIGNAL_IMAGE_LOADING_FINISHED ) ) @@ -148,7 +147,7 @@ void ResourceImage::Reload() mAttributes.GetOrientationCorrection() ); // Note, bitmap is only destroyed when the image is destroyed. - Integration::ResourcePointer resource = platformAbstraction.LoadResourceSynchronously( resourceType, mUrl ); + Integration::ResourcePointer resource = platformAbstraction.LoadImageSynchronously( resourceType, mUrl ); if( resource ) { Integration::Bitmap* bitmap = static_cast( resource.Get() ); @@ -157,7 +156,7 @@ void ResourceImage::Reload() //Create texture Pixel::Format format = bitmap->GetPixelFormat(); - mTexture = NewTexture::New( Dali::TextureType::TEXTURE_2D, format, width, height ); + mTexture = Texture::New( Dali::TextureType::TEXTURE_2D, format, width, height ); //Upload data to the texture size_t bufferSize = bitmap->GetBufferSize(); @@ -182,11 +181,12 @@ void ResourceImage::Reload() } else { - mTexture = NewTexture::New( Dali::TextureType::TEXTURE_2D, Pixel::RGBA8888, 0u, 0u ); + mTexture = Texture::New( Dali::TextureType::TEXTURE_2D, Pixel::RGBA8888, 0u, 0u ); mWidth = mHeight = 0u; mLoadingState = Dali::ResourceLoadingFailed; } + UploadedSignal().Emit( Dali::Image( this ) ); mLoadingFinished.Emit( Dali::ResourceImage( this ) ); }