81 "TextureProxyViewFromData");
90 if (!sContext->writePixels(dContext, pixmap, {0, 0})) {
93 return sContext->readSurfaceView();
100 bool usesMSAASurface,
115 SkDEBUGCODE(
auto analysis =) processors.finalize(analysisColor,
117 &appliedClip, stencilSettings, *caps,
119 SkASSERT(!analysis.requiresDstTexture());
122 std::move(appliedClip), dstProxyView,
123 geomProc,
std::move(processors),
124 primitiveType, renderPassXferBarriers,
125 colorLoadOp,
flags, stencilSettings);
GrProcessorAnalysisCoverage
static SkImage_Base * as_IB(SkImage *image)
SkDEBUGCODE(SK_SPI) SkThreadID SkGetThreadID()
GrRecordingContext * asRecordingContext()
const GrCaps * caps() const
GrBackendFormat getDefaultBackendFormat(GrColorType, GrRenderable) const
skgpu::Swizzle getReadSwizzle(const GrBackendFormat &format, GrColorType colorType) const
bool abandoned() override
GrDirectContextPriv priv()
GrImageContextPriv priv()
const GrColorInfo & colorInfo() const
SkISize dimensions() const
GrColorType colorType() const
sk_sp< GrTextureProxy > createProxy(const GrBackendFormat &, SkISize dimensions, GrRenderable, int renderTargetSampleCnt, skgpu::Mipmapped, SkBackingFit, skgpu::Budgeted, GrProtected, std::string_view label, GrInternalSurfaceFlags=GrInternalSurfaceFlags::kNone, UseAllocator useAllocator=UseAllocator::kYes)
GrProxyProvider * proxyProvider()
std::unique_ptr< skgpu::ganesh::SurfaceContext > makeSC(GrSurfaceProxyView readView, const GrColorInfo &)
virtual GrTextureProxy * asTextureProxy()
virtual GrImageContext * context() const
virtual bool isValid(GrRecordingContext *context) const =0
FlutterSemanticsFlag flags
uint32_t uint32_t * format
sk_sp< const SkImage > image
GrTextureProxy * GetTextureImageProxy(SkImage *image, GrRecordingContext *rContext)
GrSurfaceProxyView MakeTextureProxyViewFromData(GrDirectContext *dContext, GrRenderable renderable, GrSurfaceOrigin origin, GrCPixmap pixmap)
std::tuple< GrSurfaceProxyView, GrColorType > AsView(GrRecordingContext *rContext, const SkImage *img, skgpu::Mipmapped mipmapped, GrImageTexGenPolicy policy)