X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Fimages%2Fresource-image-impl.cpp;h=dc116cc9e9c1f1d8bc647e6fbfac9cc2dfe06c32;hb=0b46c533530b62d898765b28eada591f2ce347d5;hp=68f0acc5e1f8041bb6b41017023d15d6bc466e6a;hpb=e68a638bd0697215334042c53c47fc98ce979fa3;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..dc116cc 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,7 +181,7 @@ 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; }