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

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

Issue 1064913002: Revert of Update OTS to revision 6d2e08b (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/ots/src/os2.cc ('k') | third_party/ots/src/woff2.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/ots/src/ots.cc
diff --git a/third_party/ots/src/ots.cc b/third_party/ots/src/ots.cc
index 28d0285de670f4111aab72e63f7988b6883f2b0d..5ba8dd94c4625a18b89aeb7c78bfdcf2c7768445 100644
--- a/third_party/ots/src/ots.cc
+++ b/third_party/ots/src/ots.cc
@@ -24,7 +24,6 @@
// Generate a message with or without a table tag, when 'header' is the OpenTypeFile pointer
#define OTS_FAILURE_MSG_TAG(msg_,tag_) OTS_FAILURE_MSG_TAG_(header, msg_, tag_)
#define OTS_FAILURE_MSG_HDR(msg_) OTS_FAILURE_MSG_(header, msg_)
-#define OTS_WARNING_MSG_HDR(msg_) OTS_WARNING_MSG_(header, msg_)
struct OpenTypeTable {
@@ -473,7 +472,7 @@
const uint32_t this_tag = ntohl(tables[i].tag);
const uint32_t prev_tag = ntohl(tables[i - 1].tag);
if (this_tag <= prev_tag) {
- OTS_WARNING_MSG_HDR("Table directory is not correctly ordered");
+ return OTS_FAILURE_MSG_HDR("table directory not correctly ordered");
}
}
@@ -819,4 +818,10 @@
return result;
}
+// For backward compatibility
+bool Process(OTSStream *output, const uint8_t *data, size_t length) {
+ static OTSContext context;
+ return context.Process(output, data, length);
+}
+
} // namespace ots
« no previous file with comments | « third_party/ots/src/os2.cc ('k') | third_party/ots/src/woff2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698