X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Fimages%2Fresource-image-impl.cpp;h=a91bed6d119897d796c0df79f41293fc7808066e;hb=0f1262644308b97565f381e9c170bd7de367fb2e;hp=737eb37237f4e1601fe8490086c3d42be252e1ee;hpb=653ffcbd3750d95ec2b3521696eff42590aeba05;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 737eb37..a91bed6 100644 --- a/dali/internal/event/images/resource-image-impl.cpp +++ b/dali/internal/event/images/resource-image-impl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 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. @@ -27,7 +27,6 @@ #include #include #include -#include #include using namespace Dali::Integration; @@ -66,17 +65,9 @@ ResourceImagePtr ResourceImage::New() ResourceImagePtr ResourceImage::New( const std::string& url, const ImageAttributes& attributes ) { ResourceImagePtr image; - - if( NinePatchImage::IsNinePatchUrl( url ) ) - { - image = NinePatchImage::New( url ); - } - else - { - image = new ResourceImage(url, attributes); - image->Initialize(); - image->Reload(); - } + image = new ResourceImage(url, attributes); + image->Initialize(); + image->Reload(); DALI_LOG_SET_OBJECT_STRING( image, url ); @@ -146,7 +137,6 @@ void ResourceImage::Reload() mLoadingState = Dali::ResourceLoadingFailed; } - UploadedSignal().Emit( Dali::Image( this ) ); mLoadingFinished.Emit( Dali::ResourceImage( this ) ); }