#include "src/image/SkPictureImageGenerator.h"
#include "include/core/SkAlphaType.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColorSpace.h"
#include "include/core/SkColorType.h"
#include "include/core/SkImage.h"
#include "include/core/SkImageGenerator.h"
#include "include/core/SkImageInfo.h"
#include "include/core/SkMatrix.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPicture.h"
#include "include/core/SkSize.h"
#include "src/base/SkTLazy.h"
#include "src/image/SkImageGeneratorPriv.h"
#include <memory>
#include <utility>
namespace SkImageGenerators {
std::unique_ptr<SkImageGenerator> MakeFromPicture(
const SkISize& size,
sk_sp<SkPicture> picture,
const SkMatrix* matrix,
const SkPaint* paint,
SkImages::BitDepth bitDepth,
sk_sp<SkColorSpace> colorSpace) { … }
std::unique_ptr<SkImageGenerator> MakeFromPicture(const SkISize& size,
sk_sp<SkPicture> picture,
const SkMatrix* matrix,
const SkPaint* paint,
SkImages::BitDepth bitDepth,
sk_sp<SkColorSpace> colorSpace,
SkSurfaceProps props) { … }
}
SkPictureImageGenerator::SkPictureImageGenerator(const SkImageInfo& info, sk_sp<SkPicture> picture,
const SkMatrix* matrix, const SkPaint* paint,
const SkSurfaceProps& props)
: … { … }
bool SkPictureImageGenerator::onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes,
const Options& opts) { … }