Index: src/gpu/GrContext.cpp |
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp |
index 4994ae04c3f84e802338f4fd0f5f4547c5696deb..1a5ee20721ef5bf09f48d7d5f55b75859c5d8745 100644 |
--- a/src/gpu/GrContext.cpp |
+++ b/src/gpu/GrContext.cpp |
@@ -748,6 +748,23 @@ sk_sp<GrRenderTargetContext> GrContext::makeRenderTargetContextWithFallback( |
sampleCnt, origin, surfaceProps, budgeted); |
} |
+sk_sp<GrRenderTargetContext> GrContext::makeDeferredRenderTargetContextWithFallback( |
+ SkBackingFit fit, |
+ int width, int height, |
+ GrPixelConfig config, |
+ sk_sp<SkColorSpace> colorSpace, |
+ int sampleCnt, |
+ GrSurfaceOrigin origin, |
+ const SkSurfaceProps* surfaceProps, |
+ SkBudgeted budgeted) { |
+ if (!this->caps()->isConfigRenderable(config, sampleCnt > 0)) { |
+ config = GrPixelConfigFallback(config); |
+ } |
+ |
+ return this->makeDeferredRenderTargetContext(fit, width, height, config, std::move(colorSpace), |
+ sampleCnt, origin, surfaceProps, budgeted); |
+} |
+ |
sk_sp<GrRenderTargetContext> GrContext::makeRenderTargetContext(SkBackingFit fit, |
int width, int height, |
GrPixelConfig config, |