Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: third_party/harfbuzz-ng/src/hb-ot-shape-complex-use.cc

Issue 1293323002: Remove an unused function from Harfbuzz. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/harfbuzz-ng/README.chromium ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright © 2015 Mozilla Foundation. 2 * Copyright © 2015 Mozilla Foundation.
3 * Copyright © 2015 Google, Inc. 3 * Copyright © 2015 Google, Inc.
4 * 4 *
5 * This is part of HarfBuzz, a text shaping library. 5 * This is part of HarfBuzz, a text shaping library.
6 * 6 *
7 * Permission is hereby granted, without written agreement and without 7 * Permission is hereby granted, without written agreement and without
8 * license or royalty fees, to use, copy, modify, and distribute this 8 * license or royalty fees, to use, copy, modify, and distribute this
9 * software and its documentation for any purpose, provided that the 9 * software and its documentation for any purpose, provided that the
10 * above copyright notice and the following two paragraphs appear in 10 * above copyright notice and the following two paragraphs appear in
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 vowel_cluster, 231 vowel_cluster,
232 number_joiner_terminated_cluster, 232 number_joiner_terminated_cluster,
233 numeral_cluster, 233 numeral_cluster,
234 symbol_cluster, 234 symbol_cluster,
235 broken_cluster, 235 broken_cluster,
236 }; 236 };
237 237
238 #include "hb-ot-shape-complex-use-machine.hh" 238 #include "hb-ot-shape-complex-use-machine.hh"
239 239
240 240
241 static inline void
242 set_use_properties (hb_glyph_info_t &info)
243 {
244 hb_codepoint_t u = info.codepoint;
245 info.use_category() = hb_use_get_categories (u);
246 }
247
248
249 static void 241 static void
250 setup_masks_use (const hb_ot_shape_plan_t *plan, 242 setup_masks_use (const hb_ot_shape_plan_t *plan,
251 hb_buffer_t *buffer, 243 hb_buffer_t *buffer,
252 hb_font_t *font HB_UNUSED) 244 hb_font_t *font HB_UNUSED)
253 { 245 {
254 const use_shape_plan_t *use_plan = (const use_shape_plan_t *) plan->data; 246 const use_shape_plan_t *use_plan = (const use_shape_plan_t *) plan->data;
255 247
256 /* Do this before allocating use_category(). */ 248 /* Do this before allocating use_category(). */
257 if (use_plan->arabic_plan) 249 if (use_plan->arabic_plan)
258 { 250 {
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 data_create_use, 576 data_create_use,
585 data_destroy_use, 577 data_destroy_use,
586 NULL, /* preprocess_text */ 578 NULL, /* preprocess_text */
587 HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS_NO_SHORT_CIRCUIT, 579 HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS_NO_SHORT_CIRCUIT,
588 NULL, /* decompose */ 580 NULL, /* decompose */
589 compose_use, 581 compose_use,
590 setup_masks_use, 582 setup_masks_use,
591 HB_OT_SHAPE_ZERO_WIDTH_MARKS_NONE, 583 HB_OT_SHAPE_ZERO_WIDTH_MARKS_NONE,
592 false, /* fallback_position */ 584 false, /* fallback_position */
593 }; 585 };
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/README.chromium ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698