Bug 1365358. Add an implementation of CopyGlyphsToBuilder for Recording. r=Bas

This commit is contained in:
Jeff Muizelaar 2017-05-16 15:23:48 -04:00
Родитель b9411eb4eb
Коммит b075675c65
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -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
}