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

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

Issue 2609123003: Roll HarfBuzz to 1.3.4 (Closed)
Patch Set: 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 © 2007,2008,2009 Red Hat, Inc. 2 * Copyright © 2007,2008,2009 Red Hat, Inc.
3 * Copyright © 2012,2013 Google, Inc. 3 * Copyright © 2012,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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 118
119 /* 119 /*
120 * hb_ot_layout_t 120 * hb_ot_layout_t
121 */ 121 */
122 122
123 namespace OT { 123 namespace OT {
124 struct GDEF; 124 struct GDEF;
125 struct GSUB; 125 struct GSUB;
126 struct GPOS; 126 struct GPOS;
127 struct MATH;
127 } 128 }
128 129
129 struct hb_ot_layout_lookup_accelerator_t 130 struct hb_ot_layout_lookup_accelerator_t
130 { 131 {
131 template <typename TLookup> 132 template <typename TLookup>
132 inline void init (const TLookup &lookup) 133 inline void init (const TLookup &lookup)
133 { 134 {
134 digest.init (); 135 digest.init ();
135 lookup.add_coverage (&digest); 136 lookup.add_coverage (&digest);
136 } 137 }
137 138
138 inline void fini (void) 139 inline void fini (void)
139 { 140 {
140 } 141 }
141 142
142 inline bool may_have (hb_codepoint_t g) const { 143 inline bool may_have (hb_codepoint_t g) const {
143 return digest.may_have (g); 144 return digest.may_have (g);
144 } 145 }
145 146
146 private: 147 private:
147 hb_set_digest_t digest; 148 hb_set_digest_t digest;
148 }; 149 };
149 150
150 struct hb_ot_layout_t 151 struct hb_ot_layout_t
151 { 152 {
152 hb_blob_t *gdef_blob; 153 hb_blob_t *gdef_blob;
153 hb_blob_t *gsub_blob; 154 hb_blob_t *gsub_blob;
154 hb_blob_t *gpos_blob; 155 hb_blob_t *gpos_blob;
156 hb_blob_t *math_blob;
155 157
156 const struct OT::GDEF *gdef; 158 const struct OT::GDEF *gdef;
157 const struct OT::GSUB *gsub; 159 const struct OT::GSUB *gsub;
158 const struct OT::GPOS *gpos; 160 const struct OT::GPOS *gpos;
161 const struct OT::MATH *math;
159 162
160 unsigned int gsub_lookup_count; 163 unsigned int gsub_lookup_count;
161 unsigned int gpos_lookup_count; 164 unsigned int gpos_lookup_count;
162 165
163 hb_ot_layout_lookup_accelerator_t *gsub_accels; 166 hb_ot_layout_lookup_accelerator_t *gsub_accels;
164 hb_ot_layout_lookup_accelerator_t *gpos_accels; 167 hb_ot_layout_lookup_accelerator_t *gpos_accels;
165 }; 168 };
166 169
167 170
168 HB_INTERNAL hb_ot_layout_t * 171 HB_INTERNAL hb_ot_layout_t *
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 } 612 }
610 613
611 /* Make sure no one directly touches our props... */ 614 /* Make sure no one directly touches our props... */
612 #undef unicode_props0 615 #undef unicode_props0
613 #undef unicode_props1 616 #undef unicode_props1
614 #undef lig_props 617 #undef lig_props
615 #undef glyph_props 618 #undef glyph_props
616 619
617 620
618 #endif /* HB_OT_LAYOUT_PRIVATE_HH */ 621 #endif /* HB_OT_LAYOUT_PRIVATE_HH */
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-ot-layout-math-table.hh ('k') | third_party/harfbuzz-ng/src/hb-ot-math.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698