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

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

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_common.cc ('k') | third_party/woff2/src/woff2_dec.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/woff2/src/woff2_compress.cc
diff --git a/third_party/woff2/src/woff2_compress.cc b/third_party/woff2/src/woff2_compress.cc
index 057566f8b8c8327cb26c9122fc0f38509eb6afb9..e5cf710f793daca1a6e73830b1002759c438329b 100644
--- a/third_party/woff2/src/woff2_compress.cc
+++ b/third_party/woff2/src/woff2_compress.cc
@@ -39,14 +39,15 @@ int main(int argc, char **argv) {
string output(output_size, 0);
uint8_t* output_data = reinterpret_cast<uint8_t*>(&output[0]);
+ woff2::WOFF2Params params;
if (!woff2::ConvertTTFToWOFF2(input_data, input.size(),
- output_data, &output_size)) {
+ output_data, &output_size, params)) {
fprintf(stderr, "Compression failed.\n");
return 1;
}
output.resize(output_size);
- woff2::SetFileContents(outfilename, output);
+ woff2::SetFileContents(outfilename, output.begin(), output.end());
return 0;
}
« no previous file with comments | « third_party/woff2/src/woff2_common.cc ('k') | third_party/woff2/src/woff2_dec.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698