Rename GrRenderTargetContext::getContext to recordingContext
This makes it match GrCanvas' recordingContext call.
Change-Id: Ia93190cce845d7ed0880ee1e8f7bbbf4b0bc65b0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/304596
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Adlai Holler <adlai@google.com>
diff --git a/src/gpu/ops/GrAtlasTextOp.cpp b/src/gpu/ops/GrAtlasTextOp.cpp
index 4c3b179..6a41ac5 100644
--- a/src/gpu/ops/GrAtlasTextOp.cpp
+++ b/src/gpu/ops/GrAtlasTextOp.cpp
@@ -476,14 +476,15 @@
return nullptr;
}
- const GrRecordingContextPriv& contextPriv = rtc->priv().getContext()->priv();
- GrSDFTOptions SDFOptions = contextPriv.SDFTOptions();
+
+ auto rContext = rtc->priv().recordingContext();
+ GrSDFTOptions SDFOptions = rContext->priv().SDFTOptions();
sk_sp<GrTextBlob> blob = GrTextBlob::Make(glyphRunList, drawMatrix);
SkGlyphRunListPainter* painter = rtc->priv().testingOnly_glyphRunPainter();
painter->processGlyphRunList(
glyphRunList, drawMatrix, rtc->surfaceProps(),
- contextPriv.caps()->shaderCaps()->supportsDistanceFieldText(),
+ rContext->priv().caps()->shaderCaps()->supportsDistanceFieldText(),
SDFOptions, blob.get());
if (!blob->subRunList().head()) {
return nullptr;