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

Side by Side Diff: third_party/harfbuzz-ng/src/hb-ot-map.cc

Issue 1580513002: Roll HarfBuzz to 1.1.3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix Created 4 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright © 2009,2010 Red Hat, Inc. 2 * Copyright © 2009,2010 Red Hat, Inc.
3 * Copyright © 2010,2011,2013 Google, Inc. 3 * Copyright © 2010,2011,2013 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 * features not available in either table and not waste precious bits for them . */ 82 * features not available in either table and not waste precious bits for them . */
83 83
84 hb_tag_t script_tags[3] = {HB_TAG_NONE, HB_TAG_NONE, HB_TAG_NONE}; 84 hb_tag_t script_tags[3] = {HB_TAG_NONE, HB_TAG_NONE, HB_TAG_NONE};
85 hb_tag_t language_tag; 85 hb_tag_t language_tag;
86 86
87 hb_ot_tags_from_script (props.script, &script_tags[0], &script_tags[1]); 87 hb_ot_tags_from_script (props.script, &script_tags[0], &script_tags[1]);
88 language_tag = hb_ot_tag_from_language (props.language); 88 language_tag = hb_ot_tag_from_language (props.language);
89 89
90 for (unsigned int table_index = 0; table_index < 2; table_index++) { 90 for (unsigned int table_index = 0; table_index < 2; table_index++) {
91 hb_tag_t table_tag = table_tags[table_index]; 91 hb_tag_t table_tag = table_tags[table_index];
92 found_script[table_index] = hb_ot_layout_table_choose_script (face, table_ta g, script_tags, &script_index[table_index], &chosen_script[table_index]); 92 found_script[table_index] = (bool) hb_ot_layout_table_choose_script (face, t able_tag, script_tags, &script_index[table_index], &chosen_script[table_index]);
93 hb_ot_layout_script_find_language (face, table_tag, script_index[table_index ], language_tag, &language_index[table_index]); 93 hb_ot_layout_script_find_language (face, table_tag, script_index[table_index ], language_tag, &language_index[table_index]);
94 } 94 }
95 } 95 }
96 96
97 void hb_ot_map_builder_t::add_feature (hb_tag_t tag, unsigned int value, 97 void hb_ot_map_builder_t::add_feature (hb_tag_t tag, unsigned int value,
98 hb_ot_map_feature_flags_t flags) 98 hb_ot_map_feature_flags_t flags)
99 { 99 {
100 feature_info_t *info = feature_infos.push(); 100 feature_info_t *info = feature_infos.push();
101 if (unlikely (!info)) return; 101 if (unlikely (!info)) return;
102 if (unlikely (!tag)) return; 102 if (unlikely (!tag)) return;
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 if (likely (stage_map)) { 306 if (likely (stage_map)) {
307 stage_map->last_lookup = last_num_lookups; 307 stage_map->last_lookup = last_num_lookups;
308 stage_map->pause_func = stages[table_index][stage_index].pause_func; 308 stage_map->pause_func = stages[table_index][stage_index].pause_func;
309 } 309 }
310 310
311 stage_index++; 311 stage_index++;
312 } 312 }
313 } 313 }
314 } 314 }
315 } 315 }
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-ot-layout-private.hh ('k') | third_party/harfbuzz-ng/src/hb-ot-map-private.hh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698