31 if (fAddedToRasterCache.load()) {
46 src.installPixels(peek);
47 srcRect = origSrcRect;
53 if (!this->
readPixels(dContext,
src.pixmap(), origSrcRect.
x(), origSrcRect.
y())) {
65 SkImageInfo info = fInfo.makeColorType(kN32_SkColorType).makeColorSpace(
nullptr);
110 return this->
onMakeSubset(recorder, subset, requiredProps);
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
void SkNotifyBitmapGenIDIsStale(uint32_t bitmapGenID)
SkColorSpace * sk_srgb_singleton()
@ kUnknown_SkColorType
uninitialized
static SkImage_Base * as_IB(SkImage *image)
sk_sp< T > sk_ref_sp(T *obj)
void SkRescaleAndReadPixels(SkBitmap bmp, const SkImageInfo &resultInfo, const SkIRect &srcRect, SkImage::RescaleGamma rescaleGamma, SkImage::RescaleMode rescaleMode, SkImage::ReadPixelsCallback callback, SkImage::ReadPixelsContext context)
static bool Equals(const SkColorSpace *, const SkColorSpace *)
virtual bool onAsLegacyBitmap(GrDirectContext *, SkBitmap *) const
virtual GrDirectContext * directContext() const
virtual sk_sp< SkImage > onMakeSubset(GrDirectContext *, const SkIRect &) const =0
sk_sp< SkImage > makeSubset(GrDirectContext *direct, const SkIRect &subset) const override
virtual GrImageContext * context() const
sk_sp< SkImage > makeColorTypeAndColorSpace(GrDirectContext *dContext, SkColorType targetColorType, sk_sp< SkColorSpace > targetCS) const override
virtual sk_sp< SkImage > onMakeColorTypeAndColorSpace(SkColorType, sk_sp< SkColorSpace >, GrDirectContext *) const =0
sk_sp< SkImage > makeColorSpace(GrDirectContext *, sk_sp< SkColorSpace >) const override
virtual void onAsyncRescaleAndReadPixelsYUV420(SkYUVColorSpace, bool readAlpha, sk_sp< SkColorSpace > dstColorSpace, SkIRect srcRect, SkISize dstSize, RescaleGamma, RescaleMode, ReadPixelsCallback, ReadPixelsContext) const
virtual void onAsyncRescaleAndReadPixels(const SkImageInfo &, SkIRect srcRect, RescaleGamma, RescaleMode, ReadPixelsCallback, ReadPixelsContext) const
const SkImageInfo & imageInfo() const
SkColorSpace * colorSpace() const
bool readPixels(GrDirectContext *context, const SkImageInfo &dstInfo, void *dstPixels, size_t dstRowBytes, int srcX, int srcY, CachingHint cachingHint=kAllow_CachingHint) const
uint32_t uniqueID() const
bool peekPixels(SkPixmap *pixmap) const
friend class SkImage_Base
SkColorType colorType() const
void(ReadPixelsContext, std::unique_ptr< const AsyncReadResult >) ReadPixelsCallback
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
constexpr int32_t x() const
constexpr int32_t y() const
constexpr SkISize size() const
static constexpr SkIRect MakeSize(const SkISize &size)
static constexpr SkIRect MakeWH(int32_t w, int32_t h)
bool contains(int32_t x, int32_t y) const