X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Fimages%2Fresource-image-impl.cpp;h=ea72dcb044f6ea439b09e38c5b89597f2da03874;hb=498f2ed30495419ab696aa6e2820a3c1d44a6e76;hp=68f0acc5e1f8041bb6b41017023d15d6bc466e6a;hpb=c5dfcc2597aa53eef1bcb0efec67955b0436fe8f;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 68f0acc..ea72dcb 100644 --- a/dali/internal/event/images/resource-image-impl.cpp +++ b/dali/internal/event/images/resource-image-impl.cpp @@ -110,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 ) ) @@ -147,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() ); @@ -156,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(); @@ -181,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 ) ); }