Lines Matching refs:sdc

57 bool force_aa_clip(const skgpu::v1::SurfaceDrawContext* sdc) {
58 return sdc->numSamples() > 1 || sdc->alwaysAntialias();
119 auto sdc = SurfaceDrawContext::Make(rContext,
126 return Device::Make(std::move(sdc), kPremul_SkAlphaType, init);
129 sk_sp<BaseDevice> Device::Make(std::unique_ptr<SurfaceDrawContext> sdc,
132 if (!sdc) {
136 GrRecordingContext* rContext = sdc->recordingContext();
141 SkColorType ct = GrColorTypeToSkColorType(sdc->colorInfo().colorType());
148 return sk_sp<Device>(new Device(std::move(sdc), flags));
165 auto sdc = SurfaceDrawContext::Make(rContext,
177 return Device::Make(std::move(sdc), ii.alphaType(), init);
180 Device::Device(std::unique_ptr<SurfaceDrawContext> sdc, DeviceFlags flags)
181 : INHERITED(sk_ref_sp(sdc->recordingContext()),
182 MakeInfo(sdc.get(), flags),
183 sdc->surfaceProps())
184 , fSurfaceDrawContext(std::move(sdc))
697 auto sdc = fSurfaceDrawContext.get();
703 if (sdc->wrapsVkSecondaryCB()) {
707 SkASSERT(sdc->asSurfaceProxy());
710 GrSurfaceProxyView view = sdc->readSurfaceView();
927 auto sdc = SurfaceDrawContext::Make(fContext.get(), grColorType, std::move(newRTP),
929 if (!sdc) {
933 SkASSERT(sdc->dimensions() == fSurfaceDrawContext->dimensions());
934 SkASSERT(sdc->numSamples() == fSurfaceDrawContext->numSamples());
935 SkASSERT(sdc->asSurfaceProxy()->priv().isExact());
942 SkAssertResult(sdc->blitTexture(fSurfaceDrawContext->readSurfaceView(),
947 fSurfaceDrawContext = std::move(sdc);
957 auto* sdc = fSurfaceDrawContext.get();
959 auto dContext = sdc->recordingContext()->asDirectContext();
963 sdc->asyncRescaleAndReadPixels(dContext, info, srcRect, rescaleGamma, rescaleMode, callback,
975 auto* sdc = fSurfaceDrawContext.get();
977 auto dContext = sdc->recordingContext()->asDirectContext();
981 sdc->asyncRescaleAndReadPixelsYUV420(dContext,
1006 auto sdc = SurfaceDrawContext::MakeWithFallback(
1012 if (!sdc) {
1019 return Device::Make(std::move(sdc), cinfo.fInfo.alphaType(), init).release();
1046 auto sdc = fSurfaceDrawContext.get();
1047 SkASSERT(sdc);
1061 sdc->drawRegion(nullptr, std::move(grPaint), aa, SkMatrix::I(), clipRegion,