|
16 | 16 | #include "src/gpu/GrRenderTargetContext.h" |
17 | 17 | #include "src/gpu/SkGr.h" |
18 | 18 | #include "src/gpu/ops/GrAtlasTextOp.h" |
| 19 | +#include "src/gpu/text/GrSDFTOptions.h" |
19 | 20 | #include "src/gpu/text/GrTextBlobCache.h" |
20 | | -#include "src/gpu/text/GrTextContext.h" |
21 | 21 | #endif |
22 | 22 |
|
23 | 23 | #include "include/core/SkColorFilter.h" |
@@ -48,7 +48,7 @@ SkGlyphRunListPainter::SkGlyphRunListPainter(const SkSurfaceProps& props, |
48 | 48 | , fColorType{colorType}, fScalerContextFlags{flags} |
49 | 49 | , fStrikeCache{strikeCache} {} |
50 | 50 |
|
51 | | -// TODO: unify with code in GrTextContext.cpp |
| 51 | +// TODO: unify with code in GrSDFTOptions.cpp |
52 | 52 | static SkScalerContextFlags compute_scaler_context_flags(const SkColorSpace* cs) { |
53 | 53 | // If we're doing linear blending, then we can disable the gamma hacks. |
54 | 54 | // Otherwise, leave them on. In either case, we still want the contrast boost: |
@@ -141,7 +141,7 @@ void SkGlyphRunListPainter::processGlyphRunList(const SkGlyphRunList& glyphRunLi |
141 | 141 | const SkMatrix& drawMatrix, |
142 | 142 | const SkSurfaceProps& props, |
143 | 143 | bool contextSupportsDistanceFieldText, |
144 | | - const GrTextContext::Options& options, |
| 144 | + const GrSDFTOptions& options, |
145 | 145 | SkGlyphRunPainterInterface* process) { |
146 | 146 |
|
147 | 147 | SkPoint origin = glyphRunList.origin(); |
|
0 commit comments