f73a029506
Change SkTypeface::onCreateScalerContext to return std::unique_ptr instead of a bare pointer. The public SkTypeface::createScalerContext implementation already returns std::unique_ptr, so this is an internal change only. Move SkTypeface::createScalerContext implementation from SkScalerContext.cpp to SkTypeface.cpp for consistency. Also change the return type of SkScalerContext::MakeEmptyContext to std::unique_ptr and rename to SkScalerContext::MakeEmpty. Change-Id: I965308e8f9c78b887811e428f0de873dc6196479 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/346658 Reviewed-by: Ben Wagner <bungeman@google.com> Commit-Queue: Ben Wagner <bungeman@google.com> Auto-Submit: Ben Wagner <bungeman@google.com> |
||
---|---|---|
.. | ||
create_test_font_color.cpp | ||
create_test_font.cpp | ||
generate_fir_coeff.py | ||
RandomScalerContext.cpp | ||
RandomScalerContext.h | ||
test_font_index.inc | ||
test_font_monospace.inc | ||
test_font_sans_serif.inc | ||
test_font_serif.inc | ||
TestEmptyTypeface.h | ||
TestFontMgr.cpp | ||
TestFontMgr.h | ||
TestSVGTypeface.cpp | ||
TestSVGTypeface.h | ||
TestTypeface.cpp | ||
TestTypeface.h | ||
ToolUtilsFont.cpp |