1 /* 2 * Copyright 2020 Google Inc. 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 #include "src/gpu/GrRecordingContextPriv.h" 9 10 #include "src/gpu/GrCaps.h" 11 #include "src/gpu/GrDrawingManager.h" 12 moveRenderTasksToDDL(SkDeferredDisplayList * ddl)13void GrRecordingContextPriv::moveRenderTasksToDDL(SkDeferredDisplayList* ddl) { 14 fContext->drawingManager()->moveRenderTasksToDDL(ddl); 15 } 16 getSDFTControl(bool useSDFTForSmallText) const17GrSDFTControl GrRecordingContextPriv::getSDFTControl(bool useSDFTForSmallText) const { 18 return GrSDFTControl{ 19 this->caps()->shaderCaps()->supportsDistanceFieldText(), 20 useSDFTForSmallText, 21 this->options().fMinDistanceFieldFontSize, 22 this->options().fGlyphsAsPathsFontSize}; 23 } 24