| /* |
| * Copyright 2020 Google Inc. |
| * |
| * Use of this source code is governed by a BSD-style license that can be |
| * found in the LICENSE file. |
| */ |
| |
| #include "src/gpu/GrRecordingContextPriv.h" |
| |
| #include "src/gpu/GrCaps.h" |
| #include "src/gpu/GrDrawingManager.h" |
| |
| void GrRecordingContextPriv::moveRenderTasksToDDL(SkDeferredDisplayList* ddl) { |
| fContext->drawingManager()->moveRenderTasksToDDL(ddl); |
| } |
| |
| GrSDFTControl GrRecordingContextPriv::getSDFTControl(bool useSDFTForSmallText) const { |
| return GrSDFTControl{ |
| this->caps()->shaderCaps()->supportsDistanceFieldText(), |
| useSDFTForSmallText, |
| this->options().fMinDistanceFieldFontSize, |
| this->options().fGlyphsAsPathsFontSize}; |
| } |