Generate texture thumbnails in a job thread (#1571)

This commit is contained in:
yuriy0
2021-06-25 12:43:16 -04:00
committed by mnaumov
parent 1db5dc3435
commit b631b78159
2 changed files with 58 additions and 37 deletions
@@ -47,8 +47,9 @@ namespace ImageProcessingAtom
bool Installed() const override;
void RenderThumbnail(AzToolsFramework::Thumbnailer::SharedThumbnailKey thumbnailKey, int thumbnailSize) override;
bool RenderThumbnailFromImage(
AzToolsFramework::Thumbnailer::SharedThumbnailKey thumbnailKey, int thumbnailSize, IImageObjectPtr previewImage) const;
template<class MkImageFn>
void RenderThumbnailFromImage(
AzToolsFramework::Thumbnailer::SharedThumbnailKey thumbnailKey, int thumbnailSize, MkImageFn mkPreviewImage) const;
};
} // namespace Thumbnails
} // namespace ImageProcessingAtom