#include "include/codec/SkCodec.h"
#include "include/core/SkAlphaType.h"
#include "include/core/SkData.h"
#include "include/core/SkGraphics.h"
#include "include/core/SkImage.h"
#include "include/core/SkImageGenerator.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkTypes.h"
#include "src/codec/SkCodecImageGenerator.h"
#include "src/image/SkImageGeneratorPriv.h"
#include <memory>
#include <optional>
#include <utility>
static SkGraphics::ImageGeneratorFromEncodedDataFactory gFactory;
SkGraphics::ImageGeneratorFromEncodedDataFactory
SkGraphics::SetImageGeneratorFromEncodedDataFactory(ImageGeneratorFromEncodedDataFactory factory)
{ … }
namespace SkImageGenerators {
std::unique_ptr<SkImageGenerator> MakeFromEncoded(sk_sp<SkData> data,
std::optional<SkAlphaType> at) { … }
}
namespace SkImages {
sk_sp<SkImage> DeferredFromEncodedData(sk_sp<SkData> encoded,
std::optional<SkAlphaType> alphaType) { … }
}
namespace SkCodecs {
sk_sp<SkImage> DeferredImage(std::unique_ptr<SkCodec> codec, std::optional<SkAlphaType> alphaType) { … }
}