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

Side by Side Diff: third_party/harfbuzz-ng/src/hb-open-type-private.hh

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
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-icu.h ('k') | third_party/harfbuzz-ng/src/hb-ot-font.h » ('j') | 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 © 2007,2008,2009,2010 Red Hat, Inc. 2 * Copyright © 2007,2008,2009,2010 Red Hat, Inc.
3 * Copyright © 2012 Google, Inc. 3 * Copyright © 2012 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 { _code; } 96 { _code; }
97 # define _DEFINE_COMPILES_ASSERTION0(_line, _code) _DEFINE_COMPILES_ASSERTION1 ( _line, _code) 97 # define _DEFINE_COMPILES_ASSERTION0(_line, _code) _DEFINE_COMPILES_ASSERTION1 ( _line, _code)
98 # define DEFINE_COMPILES_ASSERTION(_code) _DEFINE_COMPILES_ASSERTION0 (__LINE__, _code) 98 # define DEFINE_COMPILES_ASSERTION(_code) _DEFINE_COMPILES_ASSERTION0 (__LINE__, _code)
99 99
100 100
101 #define DEFINE_SIZE_STATIC(size) \ 101 #define DEFINE_SIZE_STATIC(size) \
102 DEFINE_INSTANCE_ASSERTION (sizeof (*this) == (size)); \ 102 DEFINE_INSTANCE_ASSERTION (sizeof (*this) == (size)); \
103 static const unsigned int static_size = (size); \ 103 static const unsigned int static_size = (size); \
104 static const unsigned int min_size = (size) 104 static const unsigned int min_size = (size)
105 105
106 /* Size signifying variable-sized array */
107 #define VAR 1
108
109 #define DEFINE_SIZE_UNION(size, _member) \ 106 #define DEFINE_SIZE_UNION(size, _member) \
110 DEFINE_INSTANCE_ASSERTION (this->u._member.static_size == (size)); \ 107 DEFINE_INSTANCE_ASSERTION (this->u._member.static_size == (size)); \
111 static const unsigned int min_size = (size) 108 static const unsigned int min_size = (size)
112 109
113 #define DEFINE_SIZE_MIN(size) \ 110 #define DEFINE_SIZE_MIN(size) \
114 DEFINE_INSTANCE_ASSERTION (sizeof (*this) >= (size)); \ 111 DEFINE_INSTANCE_ASSERTION (sizeof (*this) >= (size)); \
115 static const unsigned int min_size = (size) 112 static const unsigned int min_size = (size)
116 113
117 #define DEFINE_SIZE_ARRAY(size, array) \ 114 #define DEFINE_SIZE_ARRAY(size, array) \
118 DEFINE_INSTANCE_ASSERTION (sizeof (*this) == (size) + sizeof (array[0])); \ 115 DEFINE_INSTANCE_ASSERTION (sizeof (*this) == (size) + sizeof (array[0])); \
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 #endif 175 #endif
179 176
180 177
181 #define TRACE_SANITIZE(this) \ 178 #define TRACE_SANITIZE(this) \
182 hb_auto_trace_t<HB_DEBUG_SANITIZE, bool> trace \ 179 hb_auto_trace_t<HB_DEBUG_SANITIZE, bool> trace \
183 (&c->debug_depth, c->get_name (), this, HB_FUNC, \ 180 (&c->debug_depth, c->get_name (), this, HB_FUNC, \
184 ""); 181 "");
185 182
186 /* This limits sanitizing time on really broken fonts. */ 183 /* This limits sanitizing time on really broken fonts. */
187 #ifndef HB_SANITIZE_MAX_EDITS 184 #ifndef HB_SANITIZE_MAX_EDITS
188 #define HB_SANITIZE_MAX_EDITS 8 185 #define HB_SANITIZE_MAX_EDITS 32
189 #endif 186 #endif
190 187
191 struct hb_sanitize_context_t : 188 struct hb_sanitize_context_t :
192 hb_dispatch_context_t<hb_sanitize_context_t, bool, HB_DEBUG_SANITIZE> 189 hb_dispatch_context_t<hb_sanitize_context_t, bool, HB_DEBUG_SANITIZE>
193 { 190 {
194 inline hb_sanitize_context_t (void) : 191 inline hb_sanitize_context_t (void) :
195 debug_depth (0), 192 debug_depth (0),
196 start (NULL), end (NULL), 193 start (NULL), end (NULL),
197 writable (false), edit_count (0), 194 writable (false), edit_count (0),
198 blob (NULL) {} 195 blob (NULL) {}
(...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after
1037 } 1034 }
1038 return -1; 1035 return -1;
1039 } 1036 }
1040 }; 1037 };
1041 1038
1042 1039
1043 } /* namespace OT */ 1040 } /* namespace OT */
1044 1041
1045 1042
1046 #endif /* HB_OPEN_TYPE_PRIVATE_HH */ 1043 #endif /* HB_OPEN_TYPE_PRIVATE_HH */
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-icu.h ('k') | third_party/harfbuzz-ng/src/hb-ot-font.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698