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

Side by Side Diff: third_party/harfbuzz-ng/src/hb-ot-shape-private.hh

Issue 2622553002: Roll HarfBuzz to 1.4.1 (Closed)
Patch Set: Linux rebaselines Created 3 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 © 2010 Google, Inc. 2 * Copyright © 2010 Google, Inc.
3 * 3 *
4 * This is part of HarfBuzz, a text shaping library. 4 * This is part of HarfBuzz, a text shaping library.
5 * 5 *
6 * Permission is hereby granted, without written agreement and without 6 * Permission is hereby granted, without written agreement and without
7 * license or royalty fees, to use, copy, modify, and distribute this 7 * license or royalty fees, to use, copy, modify, and distribute this
8 * software and its documentation for any purpose, provided that the 8 * software and its documentation for any purpose, provided that the
9 * above copyright notice and the following two paragraphs appear in 9 * above copyright notice and the following two paragraphs appear in
10 * all copies of this software. 10 * all copies of this software.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 const struct hb_ot_complex_shaper_t *shaper; 70 const struct hb_ot_complex_shaper_t *shaper;
71 hb_ot_map_builder_t map; 71 hb_ot_map_builder_t map;
72 72
73 hb_ot_shape_planner_t (const hb_shape_plan_t *master_plan) : 73 hb_ot_shape_planner_t (const hb_shape_plan_t *master_plan) :
74 face (master_plan->face_unsafe), 74 face (master_plan->face_unsafe),
75 props (master_plan->props), 75 props (master_plan->props),
76 shaper (NULL), 76 shaper (NULL),
77 map (face, &props) {} 77 map (face, &props) {}
78 ~hb_ot_shape_planner_t (void) { map.finish (); } 78 ~hb_ot_shape_planner_t (void) { map.finish (); }
79 79
80 inline void compile (hb_ot_shape_plan_t &plan) 80 inline void compile (hb_ot_shape_plan_t &plan,
81 » » const int *coords,
82 » » unsigned int num_coords)
81 { 83 {
82 plan.props = props; 84 plan.props = props;
83 plan.shaper = shaper; 85 plan.shaper = shaper;
84 map.compile (plan.map); 86 map.compile (plan.map, coords, num_coords);
85 87
86 plan.rtlm_mask = plan.map.get_1_mask (HB_TAG ('r','t','l','m')); 88 plan.rtlm_mask = plan.map.get_1_mask (HB_TAG ('r','t','l','m'));
87 plan.frac_mask = plan.map.get_1_mask (HB_TAG ('f','r','a','c')); 89 plan.frac_mask = plan.map.get_1_mask (HB_TAG ('f','r','a','c'));
88 plan.numr_mask = plan.map.get_1_mask (HB_TAG ('n','u','m','r')); 90 plan.numr_mask = plan.map.get_1_mask (HB_TAG ('n','u','m','r'));
89 plan.dnom_mask = plan.map.get_1_mask (HB_TAG ('d','n','o','m')); 91 plan.dnom_mask = plan.map.get_1_mask (HB_TAG ('d','n','o','m'));
90 92
91 plan.kern_mask = plan.map.get_mask (HB_DIRECTION_IS_HORIZONTAL (plan.props.d irection) ? 93 plan.kern_mask = plan.map.get_mask (HB_DIRECTION_IS_HORIZONTAL (plan.props.d irection) ?
92 HB_TAG ('k','e','r','n') : HB_TAG ('v',' k','r','n')); 94 HB_TAG ('k','e','r','n') : HB_TAG ('v',' k','r','n'));
93 95
94 plan.has_frac = plan.frac_mask || (plan.numr_mask && plan.dnom_mask); 96 plan.has_frac = plan.frac_mask || (plan.numr_mask && plan.dnom_mask);
95 plan.has_kern = !!plan.kern_mask; 97 plan.has_kern = !!plan.kern_mask;
96 plan.has_mark = !!plan.map.get_1_mask (HB_TAG ('m','a','r','k')); 98 plan.has_mark = !!plan.map.get_1_mask (HB_TAG ('m','a','r','k'));
97 } 99 }
98 100
99 private: 101 private:
100 NO_COPY (hb_ot_shape_planner_t); 102 NO_COPY (hb_ot_shape_planner_t);
101 }; 103 };
102 104
103 105
104 #endif /* HB_OT_SHAPE_PRIVATE_HH */ 106 #endif /* HB_OT_SHAPE_PRIVATE_HH */
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-ot-shape-complex-use.cc ('k') | third_party/harfbuzz-ng/src/hb-private.hh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698