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

Unified Diff: third_party/ots/src/ots.h

Issue 1487543005: Update OTS to revision 99a3b7f (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/ots/src/name.cc ('k') | third_party/ots/src/ots.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/ots/src/ots.h
diff --git a/third_party/ots/src/ots.h b/third_party/ots/src/ots.h
index b2dd9ad48d7255b0e98cd43eec033d3205c0f1be..2d13f8d6d25423a921c0ce482d8eb2639103385e 100644
--- a/third_party/ots/src/ots.h
+++ b/third_party/ots/src/ots.h
@@ -158,6 +158,7 @@ class Buffer {
const uint8_t *buffer() const { return buffer_; }
size_t offset() const { return offset_; }
size_t length() const { return length_; }
+ size_t remaining() const { return length_ - offset_; }
void set_offset(size_t newoffset) { offset_ = newoffset; }
@@ -230,8 +231,13 @@ FOR_EACH_TABLE_TYPE
#undef F
struct Font {
- Font(const OpenTypeFile *f) {
- file = f;
+ explicit Font(const OpenTypeFile *f)
+ : file(f),
+ version(0),
+ num_tables(0),
+ search_range(0),
+ entry_selector(0),
+ range_shift(0) {
#define F(name, capname) \
name = NULL; \
name##_reused = false;
« no previous file with comments | « third_party/ots/src/name.cc ('k') | third_party/ots/src/ots.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698