7996591182
This work has been on hold for a while. Revisiting removal of thumbnail contexts now while debugging related lockups exiting tools from script. Thumbnail contexts are an unused layer of indirection that makes debugging the system more difficult. All systems were only referencing the default context. Signed-off-by: Guthrie Adams <guthadam@amazon.com>
73 lines
2.2 KiB
C++
73 lines
2.2 KiB
C++
/*
|
|
* Copyright (c) Contributors to the Open 3D Engine Project.
|
|
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
*
|
|
*/
|
|
|
|
#include <AzCore/std/smart_ptr/make_shared.h>
|
|
#include <AzCore/Serialization/SerializeContext.h>
|
|
#include <AzToolsFramework/Thumbnails/ThumbnailerNullComponent.h>
|
|
#include <AzToolsFramework/Thumbnails/MissingThumbnail.h>
|
|
|
|
namespace AzToolsFramework
|
|
{
|
|
namespace Thumbnailer
|
|
{
|
|
ThumbnailerNullComponent::ThumbnailerNullComponent() :
|
|
m_nullThumbnail()
|
|
{
|
|
}
|
|
|
|
ThumbnailerNullComponent::~ThumbnailerNullComponent() = default;
|
|
|
|
void ThumbnailerNullComponent::Activate()
|
|
{
|
|
BusConnect();
|
|
}
|
|
|
|
void ThumbnailerNullComponent::Deactivate()
|
|
{
|
|
BusDisconnect();
|
|
}
|
|
|
|
void ThumbnailerNullComponent::Reflect(AZ::ReflectContext* context)
|
|
{
|
|
AZ::SerializeContext* serialize = azrtti_cast<AZ::SerializeContext*>(context);
|
|
if (serialize)
|
|
{
|
|
serialize->Class<ThumbnailerNullComponent, AZ::Component>();
|
|
}
|
|
}
|
|
|
|
void ThumbnailerNullComponent::GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& services)
|
|
{
|
|
services.push_back(AZ_CRC("ThumbnailerService", 0x65422b97));
|
|
}
|
|
|
|
void ThumbnailerNullComponent::RegisterThumbnailProvider(AzToolsFramework::Thumbnailer::SharedThumbnailProvider /*provider*/)
|
|
{
|
|
}
|
|
|
|
void ThumbnailerNullComponent::UnregisterThumbnailProvider(const char* /*providerName*/)
|
|
{
|
|
}
|
|
|
|
AzToolsFramework::Thumbnailer::SharedThumbnail ThumbnailerNullComponent::GetThumbnail(AzToolsFramework::Thumbnailer::SharedThumbnailKey /*key*/)
|
|
{
|
|
return m_nullThumbnail;
|
|
}
|
|
|
|
bool ThumbnailerNullComponent::IsLoading(AzToolsFramework::Thumbnailer::SharedThumbnailKey /*thumbnailKey*/)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
QThreadPool* ThumbnailerNullComponent::GetThreadPool()
|
|
{
|
|
return nullptr;
|
|
}
|
|
} // namespace Thumbnailer
|
|
} // namespace AzToolsFramework
|