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

Unified Diff: third_party/woff2/src/woff2_enc.cc

Issue 1913773002: Update woff2 to 2bc6acf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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_dec.cc ('k') | third_party/woff2/woff2.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/woff2/src/woff2_enc.cc
diff --git a/third_party/woff2/src/woff2_enc.cc b/third_party/woff2/src/woff2_enc.cc
index 920c614fcc1f4b4926d13e0e5149b43efcbe851b..48878b5f7e3100ca9973094f6e1623b67a12a38d 100644
--- a/third_party/woff2/src/woff2_enc.cc
+++ b/third_party/woff2/src/woff2_enc.cc
@@ -23,7 +23,7 @@
#include <string>
#include <vector>
-#include "./encode.h"
+#include "./compressor.h"
#include "./buffer.h"
#include "./font.h"
#include "./normalize.h"
@@ -148,14 +148,6 @@ size_t ComputeWoff2Length(const FontCollection& font_collection,
return size;
}
-size_t ComputeTTFLength(const std::vector<Table>& tables) {
- size_t size = 12 + 16 * tables.size(); // sfnt header
- for (const auto& table : tables) {
- size += Round4(table.src_length);
- }
- return size;
-}
-
size_t ComputeUncompressedLength(const Font& font) {
// sfnt header + offset table
size_t size = 12 + 16 * font.num_tables;
« no previous file with comments | « third_party/woff2/src/woff2_dec.cc ('k') | third_party/woff2/woff2.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698