Roll update to harfbuzz to 2.1.0 (flutter/engine#6760)

This commit is contained in:
Gary Qian
2018-11-06 12:41:12 -08:00
committed by GitHub
parent 295dcf6ffa
commit 4c32afdeda
2 changed files with 1 additions and 11 deletions

2
DEPS
View File

@@ -138,7 +138,7 @@ deps = {
Var('fuchsia_git') + '/third_party/rapidjson' + '@' + '32d07c55db1bb6c2ae17cba4033491a667647753',
'src/third_party/harfbuzz':
Var('fuchsia_git') + '/third_party/harfbuzz' + '@' + 'd837034f09a957faf2814002e8ebd81da6151d1b',
Var('fuchsia_git') + '/third_party/harfbuzz' + '@' + '02caec6c1c6ad996666788b8e920ccaec8b385e5',
# Chromium-style
#

View File

@@ -170,20 +170,10 @@ class LayoutCache : private android::OnEntryRemoved<LayoutCacheKey, Layout*> {
static const size_t kMaxEntries = 5000;
};
static unsigned int disabledDecomposeCompatibility(hb_unicode_funcs_t*,
hb_codepoint_t,
hb_codepoint_t*,
void*) {
return 0;
}
class LayoutEngine {
public:
LayoutEngine() {
unicodeFunctions = hb_unicode_funcs_create(hb_icu_get_unicode_funcs());
/* Disable the function used for compatibility decomposition */
hb_unicode_funcs_set_decompose_compatibility_func(
unicodeFunctions, disabledDecomposeCompatibility, NULL, NULL);
hbBuffer = hb_buffer_create();
hb_buffer_set_unicode_funcs(hbBuffer, unicodeFunctions);
}