зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1365358. Add an implementation of CopyGlyphsToBuilder for Recording. r=Bas
This commit is contained in:
Родитель
b9411eb4eb
Коммит
b075675c65
|
@ -212,6 +212,13 @@ ScaledFontBase::CopyGlyphsToBuilder(const GlyphBuffer &aBuffer, PathBuilder *aBu
|
|||
cairoPath->AppendPathToBuilder(builder);
|
||||
return;
|
||||
}
|
||||
if (backendType == BackendType::RECORDING) {
|
||||
SkPath skPath = GetSkiaPathForGlyphs(aBuffer);
|
||||
RefPtr<Path> path = MakeAndAddRef<PathSkia>(skPath, FillRule::FILL_WINDING);
|
||||
path->StreamToSink(aBuilder);
|
||||
return;
|
||||
}
|
||||
MOZ_ASSERT(false, "Path not being copied");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче