X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fimage-loader%2Fimage-url-impl.cpp;h=31dc6fc61b1485d9acda7542841ad3f1319d4b63;hb=HEAD;hp=fae9fc192d772d23dbc6dc39370fc697474a2c33;hpb=3194e652e08af630b8996c88b0d0f09e3e78b568;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/image-loader/image-url-impl.cpp b/dali-toolkit/internal/image-loader/image-url-impl.cpp index fae9fc1..31dc6fc 100644 --- a/dali-toolkit/internal/image-loader/image-url-impl.cpp +++ b/dali-toolkit/internal/image-loader/image-url-impl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Samsung Electronics Co., Ltd. + * Copyright (c) 2023 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. @@ -30,9 +30,9 @@ namespace Toolkit { namespace Internal { -ImageUrl::ImageUrl(Texture& texture) +ImageUrl::ImageUrl(Texture& texture, bool preMultiplied) { - mUrl = Dali::Toolkit::TextureManager::AddTexture(texture); + mUrl = Dali::Toolkit::TextureManager::AddTexture(texture, preMultiplied); } ImageUrl::ImageUrl(const EncodedImageBuffer& encodedImageBuffer) @@ -66,9 +66,9 @@ ImageUrl::~ImageUrl() } } -ImageUrlPtr ImageUrl::New(Texture& texture) +ImageUrlPtr ImageUrl::New(Texture& texture, bool preMultiplied) { - ImageUrlPtr imageUrlPtr = new ImageUrl(texture); + ImageUrlPtr imageUrlPtr = new ImageUrl(texture, preMultiplied); return imageUrlPtr; }