Index: third_party/harfbuzz-ng/src/hb-buffer-private.hh |
diff --git a/third_party/harfbuzz-ng/src/hb-buffer-private.hh b/third_party/harfbuzz-ng/src/hb-buffer-private.hh |
index 5eccd3c31fc3f958435e9a68664044c85795209c..069f9255811b552c4bd6aa77842cc2901189ca95 100644 |
--- a/third_party/harfbuzz-ng/src/hb-buffer-private.hh |
+++ b/third_party/harfbuzz-ng/src/hb-buffer-private.hh |
@@ -48,15 +48,13 @@ struct hb_buffer_t { |
ASSERT_POD (); |
/* Information about how the text in the buffer should be treated */ |
- |
hb_unicode_funcs_t *unicode; /* Unicode functions */ |
- hb_segment_properties_t props; /* Script, language, direction */ |
hb_buffer_flags_t flags; /* BOT / EOT / etc. */ |
hb_codepoint_t replacement; /* U+FFFD or something else. */ |
/* Buffer contents */ |
- |
hb_buffer_content_type_t content_type; |
+ hb_segment_properties_t props; /* Script, language, direction */ |
bool in_error; /* Allocation failed */ |
bool have_output; /* Whether we have an output buffer going on */ |
@@ -183,6 +181,9 @@ struct hb_buffer_t { |
inline bool ensure (unsigned int size) |
{ return likely (!size || size < allocated) ? true : enlarge (size); } |
+ inline bool ensure_inplace (unsigned int size) |
+ { return likely (!size || size < allocated); } |
+ |
HB_INTERNAL bool make_room_for (unsigned int num_in, unsigned int num_out); |
HB_INTERNAL bool shift_forward (unsigned int count); |