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

Unified Diff: third_party/woff2/src/woff2_dec.h

Issue 1873123002: Update woff2 to 4e698b8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update BUILD.gn (win8 build fix?) Created 4 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/woff2/src/woff2_compress.cc ('k') | third_party/woff2/src/woff2_dec.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/woff2/src/woff2_dec.h
diff --git a/third_party/woff2/src/woff2_dec.h b/third_party/woff2/src/woff2_dec.h
index 74ba7f5cd6abb32529ede11acb6d335efea591f4..98fec074d02cca24e5ed509fb1db49b82e53c2ee 100644
--- a/third_party/woff2/src/woff2_dec.h
+++ b/third_party/woff2/src/woff2_dec.h
@@ -19,6 +19,7 @@
#include <stddef.h>
#include <inttypes.h>
+#include "./woff2_out.h"
namespace woff2 {
@@ -31,6 +32,11 @@ size_t ComputeWOFF2FinalSize(const uint8_t *data, size_t length);
bool ConvertWOFF2ToTTF(uint8_t *result, size_t result_length,
const uint8_t *data, size_t length);
+// Decompresses the font into out. Returns true on success.
+// Works even if WOFF2Header totalSfntSize is wrong.
+bool ConvertWOFF2ToTTF(const uint8_t *data, size_t length,
+ WOFF2Out* out);
+
} // namespace woff2
#endif // WOFF2_WOFF2_DEC_H_
« no previous file with comments | « third_party/woff2/src/woff2_compress.cc ('k') | third_party/woff2/src/woff2_dec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698