+++ /dev/null
-/*
- * Copyright (c) 2021 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.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-// CLASS HEADER
-#include "texture-upload-observer.h"
-
-// INTERNAL INCLUDES
-#include <dali-toolkit/internal/visuals/texture-manager-impl.h>
-
-namespace Dali
-{
-namespace Toolkit
-{
-TextureUploadObserver::TextureInformation::TextureInformation(ReturnType returnType, int32_t textureId, TextureSet textureSet, bool useAtlasing, const Vector4& atlasRect, bool preMultiplied)
-: returnType(returnType),
- textureId(textureId),
- textureSet(textureSet),
- useAtlasing(useAtlasing),
- atlasRect(atlasRect),
- preMultiplied(preMultiplied),
- pixelBuffer(),
- url()
-{
-}
-
-TextureUploadObserver::TextureInformation::TextureInformation(ReturnType returnType, Devel::PixelBuffer pixelBuffer, const std::string& url, bool preMultiplied)
-: returnType(returnType),
- textureId(Internal::TextureManager::INVALID_TEXTURE_ID),
- textureSet(),
- useAtlasing(false),
- atlasRect(Vector4::ZERO),
- preMultiplied(preMultiplied),
- pixelBuffer(pixelBuffer),
- url(url)
-{
-}
-
-TextureUploadObserver::TextureUploadObserver()
-{
-}
-
-TextureUploadObserver::~TextureUploadObserver()
-{
- if(!mDestructionSignal.Empty())
- {
- mDestructionSignal.Emit(this);
- }
-}
-
-TextureUploadObserver::DestructionSignalType& TextureUploadObserver::DestructionSignal()
-{
- return mDestructionSignal;
-}
-
-} // namespace Toolkit
-
-} // namespace Dali