move subrun creation to GrTextBlob::Make
Change-Id: Iee920e3751e067ff3b86ed6713b279fc2437fd14
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/381477
Reviewed-by: Brian Osman <brianosman@google.com>
diff --git a/src/gpu/ops/GrAtlasTextOp.cpp b/src/gpu/ops/GrAtlasTextOp.cpp
index 3410107..fcb28c6 100644
--- a/src/gpu/ops/GrAtlasTextOp.cpp
+++ b/src/gpu/ops/GrAtlasTextOp.cpp
@@ -486,14 +486,9 @@
GrSDFTControl control =
rContext->priv().getSDFTControl(rtc->surfaceProps().isUseDeviceIndependentFonts());
- sk_sp<GrTextBlob> blob = GrTextBlob::Make(glyphRunList, drawMatrix);
SkGlyphRunListPainter* painter = rtc->glyphRunPainter();
- painter->processGlyphRun(
- *glyphRunList.begin(),
- drawMatrix,
- glyphRunList.paint(),
- control,
- blob.get());
+ sk_sp<GrTextBlob> blob = GrTextBlob::Make(glyphRunList, drawMatrix, control, painter);
+
if (blob->subRunList().isEmpty()) {
return nullptr;
}