From 33c04f6f9f2125191cdcf532b7176675ae76fa64 Mon Sep 17 00:00:00 2001 From: Rasmus Thomsen Date: Wed, 24 Oct 2018 16:37:55 +0200 Subject: [PATCH] chromium: fix build against harfbuzz 2.x --- .../patches/chromium-fix_harfbuzz_2.patch | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 srcpkgs/chromium/patches/chromium-fix_harfbuzz_2.patch diff --git a/srcpkgs/chromium/patches/chromium-fix_harfbuzz_2.patch b/srcpkgs/chromium/patches/chromium-fix_harfbuzz_2.patch new file mode 100644 index 00000000000..9d1a2edce98 --- /dev/null +++ b/srcpkgs/chromium/patches/chromium-fix_harfbuzz_2.patch @@ -0,0 +1,24 @@ +Source: Tom Briden +Upstream: No +Reason: Fix building against harfbuzz[>=2.0.0] + +--- a/third_party/blink/renderer/platform/fonts/shaping/harfbuzz_face.cc 2018-10-23 10:44:18.808106392 +0100 ++++ b/third_party/blink/renderer/platform/fonts/shaping/harfbuzz_face.cc 2018-10-23 10:44:59.552246024 +0100 +@@ -138,7 +138,7 @@ + static void HarfBuzzGetGlyphHorizontalAdvances(hb_font_t* font, + void* font_data, + unsigned count, +- hb_codepoint_t* first_glyph, ++ const hb_codepoint_t* first_glyph, + unsigned int glyph_stride, + hb_position_t* first_advance, + unsigned int advance_stride, +@@ -146,7 +146,7 @@ + HarfBuzzFontData* hb_font_data = + reinterpret_cast(font_data); + SkiaTextMetrics(&hb_font_data->paint_) +- .GetGlyphWidthForHarfBuzz(count, first_glyph, glyph_stride, first_advance, ++ .GetGlyphWidthForHarfBuzz(count, (hb_codepoint_t*)first_glyph, glyph_stride, first_advance, + advance_stride); + } +