Make deferred render target context without config or format
config is completely redundant. No caller really cares what the backend
format is.
Change-Id: I93f1feb3ee61db6c21b7915bab3ee3fba5656f92
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/225194
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/text/GrTextContext.cpp b/src/gpu/text/GrTextContext.cpp
index 5f1098a..95d8893 100644
--- a/src/gpu/text/GrTextContext.cpp
+++ b/src/gpu/text/GrTextContext.cpp
@@ -234,13 +234,9 @@
gTextContext = GrTextContext::Make(GrTextContext::Options());
}
- const GrBackendFormat format =
- context->priv().caps()->getBackendFormatFromColorType(kRGBA_8888_SkColorType);
-
// Setup dummy SkPaint / GrPaint / GrRenderTargetContext
sk_sp<GrRenderTargetContext> rtc(context->priv().makeDeferredRenderTargetContext(
- format, SkBackingFit::kApprox, 1024, 1024, kRGBA_8888_GrPixelConfig,
- GrColorType::kRGBA_8888, nullptr));
+ SkBackingFit::kApprox, 1024, 1024, GrColorType::kRGBA_8888, nullptr));
SkMatrix viewMatrix = GrTest::TestMatrixInvertible(random);