X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Fimages%2Fresource-image-impl.cpp;h=5efe56752f97a2af9fd8b94fad3e1f27283156ca;hb=698c38bd1a76158dd449639aaf014d7046dd3ae4;hp=dc116cc9e9c1f1d8bc647e6fbfac9cc2dfe06c32;hpb=06dd86c86edeab0802f5378b3aa238900058887d;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 dc116cc..5efe567 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) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 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. @@ -159,7 +159,7 @@ void ResourceImage::Reload() mTexture = Texture::New( Dali::TextureType::TEXTURE_2D, format, width, height ); //Upload data to the texture - size_t bufferSize = bitmap->GetBufferSize(); + uint32_t bufferSize = bitmap->GetBufferSize(); PixelDataPtr pixelData = PixelData::New( bitmap->GetBufferOwnership(), bufferSize, width, height, format, static_cast< Dali::PixelData::ReleaseFunction >( bitmap->GetReleaseFunction() ) ); mTexture->Upload( pixelData ); @@ -186,6 +186,7 @@ void ResourceImage::Reload() mLoadingState = Dali::ResourceLoadingFailed; } + UploadedSignal().Emit( Dali::Image( this ) ); mLoadingFinished.Emit( Dali::ResourceImage( this ) ); } @@ -201,7 +202,7 @@ unsigned int ResourceImage::GetHeight() const Vector2 ResourceImage::GetNaturalSize() const { - return Vector2(mWidth, mHeight); + return Vector2( static_cast( mWidth ), static_cast( mHeight ) ); }