skia2/tools/fonts
Ben Wagner f73a029506 Make onCreateScalerContext return unique_ptr.
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>
2020-12-28 17:31:09 +00:00
..
create_test_font_color.cpp remove SkMakeSpan use ctor parameter deduction 2020-10-02 01:41:03 +00:00
create_test_font.cpp remove SkMakeSpan use ctor parameter deduction 2020-10-02 01:41:03 +00:00
generate_fir_coeff.py [minor] mark scripts as executable 2019-11-21 17:06:27 +00:00
RandomScalerContext.cpp Make onCreateScalerContext return unique_ptr. 2020-12-28 17:31:09 +00:00
RandomScalerContext.h Make onCreateScalerContext return unique_ptr. 2020-12-28 17:31:09 +00:00
test_font_index.inc
test_font_monospace.inc
test_font_sans_serif.inc
test_font_serif.inc
TestEmptyTypeface.h Make onCreateScalerContext return unique_ptr. 2020-12-28 17:31:09 +00:00
TestFontMgr.cpp
TestFontMgr.h
TestSVGTypeface.cpp Make onCreateScalerContext return unique_ptr. 2020-12-28 17:31:09 +00:00
TestSVGTypeface.h Make onCreateScalerContext return unique_ptr. 2020-12-28 17:31:09 +00:00
TestTypeface.cpp Make onCreateScalerContext return unique_ptr. 2020-12-28 17:31:09 +00:00
TestTypeface.h Make onCreateScalerContext return unique_ptr. 2020-12-28 17:31:09 +00:00
ToolUtilsFont.cpp use pathbuilder 2020-08-25 16:29:48 +00:00