Home
last modified time | relevance | path

Searched refs:TRACE_RETURN (Results 1 – 15 of 15) sorted by relevance

/external/harfbuzz_ng/src/
Dhb-ot-layout-gsub-table.hh70 return TRACE_RETURN (c->len == 1 && (this+coverage).get_coverage (c->glyphs[0]) != NOT_COVERED); in would_apply()
78 if (likely (index == NOT_COVERED)) return TRACE_RETURN (false); in apply()
85 return TRACE_RETURN (true); in apply()
94 if (unlikely (!c->extend_min (*this))) return TRACE_RETURN (false); in serialize()
95 …ely (!coverage.serialize (c, this).serialize (c, glyphs, num_glyphs))) return TRACE_RETURN (false); in serialize()
97 return TRACE_RETURN (true); in serialize()
102 return TRACE_RETURN (coverage.sanitize (c, this) && deltaGlyphID.sanitize (c)); in sanitize()
146 return TRACE_RETURN (c->len == 1 && (this+coverage).get_coverage (c->glyphs[0]) != NOT_COVERED); in would_apply()
154 if (likely (index == NOT_COVERED)) return TRACE_RETURN (false); in apply()
156 if (unlikely (index >= substitute.len)) return TRACE_RETURN (false); in apply()
[all …]
Dhb-ot-layout-gpos-table.hh182 …return TRACE_RETURN (c->check_range (values, get_size ()) && (!has_device () || sanitize_value_dev… in sanitize_value()
189 if (!c->check_array (values, get_size (), count)) return TRACE_RETURN (false); in sanitize_values()
191 if (!has_device ()) return TRACE_RETURN (true); in sanitize_values()
195 return TRACE_RETURN (false); in sanitize_values()
199 return TRACE_RETURN (true); in sanitize_values()
206 if (!has_device ()) return TRACE_RETURN (true); in sanitize_values_stride_unsafe()
210 return TRACE_RETURN (false); in sanitize_values_stride_unsafe()
214 return TRACE_RETURN (true); in sanitize_values_stride_unsafe()
230 return TRACE_RETURN (c->check_struct (this)); in sanitize()
259 return TRACE_RETURN (c->check_struct (this)); in sanitize()
[all …]
Dhb-ot-layout-common-private.hh71 return TRACE_RETURN (c->check_struct (this) && offset.sanitize (c, base, &closure)); in sanitize()
126 return TRACE_RETURN (RecordArrayOf<Type>::sanitize (c, this)); in sanitize()
139 return TRACE_RETURN (c->check_struct (this)); in sanitize()
204 return TRACE_RETURN (c->check_struct (this) && featureIndex.sanitize (c)); in sanitize()
243 return TRACE_RETURN (defaultLangSys.sanitize (c, this) && langSys.sanitize (c, this)); in sanitize()
265 if (unlikely (!c->check_struct (this))) return TRACE_RETURN (false); in sanitize()
317 return TRACE_RETURN (false); in sanitize()
322 return TRACE_RETURN (true); in sanitize()
327 return TRACE_RETURN (false); in sanitize()
329 return TRACE_RETURN (true); in sanitize()
[all …]
Dhb-ot-cmap-table.hh56 return TRACE_RETURN (c->check_struct (this)); in sanitize()
132 return TRACE_RETURN (false); in sanitize()
143 return TRACE_RETURN (false); in sanitize()
146 return TRACE_RETURN (16 + 4 * (unsigned int) segCountX2 <= length); in sanitize()
188 return TRACE_RETURN (c->check_struct (this)); in sanitize()
215 return TRACE_RETURN (c->check_struct (this) && glyphIdArray.sanitize (c)); in sanitize()
247 return TRACE_RETURN (c->check_struct (this) && groups.sanitize (c)); in sanitize()
293 return TRACE_RETURN (c->check_struct (this)); in sanitize()
314 return TRACE_RETURN (c->check_struct (this)); in sanitize()
353 return TRACE_RETURN (c->check_struct (this) && in sanitize()
[all …]
Dhb-ot-layout-gsubgpos-private.hh740 if (unlikely (count > MAX_CONTEXT_LENGTH)) TRACE_RETURN (false); in match_input()
746 if (skippy_iter.has_no_chance ()) return TRACE_RETURN (false); in match_input()
777 if (!skippy_iter.next ()) return TRACE_RETURN (false); in match_input()
789 return TRACE_RETURN (false); in match_input()
795 return TRACE_RETURN (false); in match_input()
810 return TRACE_RETURN (true); in match_input()
902 TRACE_RETURN (true); in ligate_input()
915 if (skippy_iter.has_no_chance ()) return TRACE_RETURN (false); in match_backtrack()
919 return TRACE_RETURN (false); in match_backtrack()
921 return TRACE_RETURN (true); in match_backtrack()
[all …]
Dhb-ot-layout-gdef-table.hh76 return TRACE_RETURN (coverage.sanitize (c, this) && attachPoint.sanitize (c, this)); in sanitize()
106 return TRACE_RETURN (c->check_struct (this)); in sanitize()
132 return TRACE_RETURN (c->check_struct (this)); in sanitize()
155 return TRACE_RETURN (c->check_struct (this) && deviceTable.sanitize (c, this)); in sanitize()
183 if (!u.format.sanitize (c)) return TRACE_RETURN (false); in sanitize()
185 case 1: return TRACE_RETURN (u.format1.sanitize (c)); in sanitize()
186 case 2: return TRACE_RETURN (u.format2.sanitize (c)); in sanitize()
187 case 3: return TRACE_RETURN (u.format3.sanitize (c)); in sanitize()
188 default:return TRACE_RETURN (true); in sanitize()
224 return TRACE_RETURN (carets.sanitize (c, this)); in sanitize()
[all …]
Dhb-open-file-private.hh58 return TRACE_RETURN (c->check_struct (this)); in sanitize()
107 …return TRACE_RETURN (c->check_struct (this) && c->check_array (tables, TableRecord::static_size, n… in sanitize()
135 return TRACE_RETURN (table.sanitize (c, this)); in sanitize()
174 if (unlikely (!u.header.version.sanitize (c))) return TRACE_RETURN (false); in sanitize()
177 case 1: return TRACE_RETURN (u.version1.sanitize (c)); in sanitize()
178 default:return TRACE_RETURN (true); in sanitize()
238 if (unlikely (!u.tag.sanitize (c))) return TRACE_RETURN (false); in sanitize()
243 case TrueTypeTag: return TRACE_RETURN (u.fontFace.sanitize (c)); in sanitize()
244 case TTCTag: return TRACE_RETURN (u.ttcHeader.sanitize (c)); in sanitize()
245 default: return TRACE_RETURN (true); in sanitize()
Dhb-open-type-private.hh624 return TRACE_RETURN (likely (c->check_struct (this))); in sanitize()
651 return TRACE_RETURN (likely (c->check_struct (this))); in sanitize()
724 return TRACE_RETURN (c->check_struct (this)); in sanitize()
759 if (unlikely (!c->check_struct (this))) return TRACE_RETURN (false); in sanitize()
761 if (unlikely (!offset)) return TRACE_RETURN (true); in sanitize()
763 return TRACE_RETURN (likely (obj.sanitize (c)) || neuter (c)); in sanitize()
768 if (unlikely (!c->check_struct (this))) return TRACE_RETURN (false); in sanitize()
770 if (unlikely (!offset)) return TRACE_RETURN (true); in sanitize()
772 return TRACE_RETURN (likely (obj.sanitize (c, user_data)) || neuter (c)); in sanitize()
823 if (unlikely (!c->extend_min (*this))) return TRACE_RETURN (false); in serialize()
[all …]
Dhb-ot-name-table.hh62 …return TRACE_RETURN (c->check_struct (this) && c->check_range ((char *) base, (unsigned int) lengt… in sanitize()
109 if (!nameRecord[i].sanitize (c, string_pool)) return TRACE_RETURN (false); in sanitize_records()
110 return TRACE_RETURN (true); in sanitize_records()
115 return TRACE_RETURN (c->check_struct (this) && in sanitize()
Dhb-ot-layout-jstf-table.hh59 return TRACE_RETURN (c->check_struct (this) && in sanitize()
128 return TRACE_RETURN (OffsetListOf<JstfPriority>::sanitize (c)); in sanitize()
168 return TRACE_RETURN (extenderGlyphs.sanitize (c, this) && in sanitize()
211 return TRACE_RETURN (version.sanitize (c) && likely (version.major == 1) && in sanitize()
Dhb-ot-maxp-table.hh52 return TRACE_RETURN (c->check_struct (this) && in sanitize()
Dhb-ot-hmtx-table.hh64 return TRACE_RETURN (true); in sanitize()
Dhb-ot-head-table.hh56 return TRACE_RETURN (c->check_struct (this) && likely (version.major == 1)); in sanitize()
Dhb-ot-hhea-table.hh54 return TRACE_RETURN (c->check_struct (this) && likely (version.major == 1)); in sanitize()
Dhb-private.hh807 #define TRACE_RETURN(RET) trace.ret (RET, __LINE__) macro