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

Unified Diff: test/side-by-side.cc

Issue 658573004: Updating to new OTS repo from https://github.com/khaledhosny/ots.git (Closed) Base URL: https://chromium.googlesource.com/external/ots@master
Patch Set: Adding Colored Emoji changes from external/git repo Created 6 years, 2 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
« .gitmodules ('K') | « test/perf.cc ('k') | test/validator-checker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/side-by-side.cc
diff --git a/test/side-by-side.cc b/test/side-by-side.cc
old mode 100644
new mode 100755
index 08056ba77ff46e25cfb4331b5010e82733297ca3..c34f64a076a7018b6b8b1801dddb9e547ba78cf1
--- a/test/side-by-side.cc
+++ b/test/side-by-side.cc
@@ -3,9 +3,9 @@
// found in the LICENSE file.
#include <fcntl.h>
-#include <freetype/ftoutln.h>
#include <ft2build.h>
#include FT_FREETYPE_H
+#include FT_OUTLINE_H
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
@@ -267,8 +267,9 @@ int main(int argc, char **argv) {
static const size_t kPadLen = 20 * 1024;
uint8_t *trans_font = new uint8_t[orig_len + kPadLen];
ots::MemoryStream output(trans_font, orig_len + kPadLen);
+ ots::OTSContext context;
- bool result = ots::Process(&output, orig_font, orig_len);
+ bool result = context.Process(&output, orig_font, orig_len);
if (!result) {
std::fprintf(stderr, "Failed to sanitise file! %s\n", argv[1]);
return 1;
« .gitmodules ('K') | « test/perf.cc ('k') | test/validator-checker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698