зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1064737 pt 1 - Enable WOFF2 support in OTS. r=jdaggett
This commit is contained in:
Родитель
3cc2e09e3d
Коммит
b8f41a1322
|
@ -241,7 +241,7 @@ class OTS_API OTSContext {
|
||||||
void DisableDebugOutput();
|
void DisableDebugOutput();
|
||||||
|
|
||||||
// Enable WOFF2 support(experimental).
|
// Enable WOFF2 support(experimental).
|
||||||
void EnableWOFF2();
|
void OTS_API EnableWOFF2();
|
||||||
|
|
||||||
} // namespace ots
|
} // namespace ots
|
||||||
|
|
||||||
|
|
|
@ -44,6 +44,7 @@ UNIFIED_SOURCES += [
|
||||||
'prep.cc',
|
'prep.cc',
|
||||||
'vhea.cc',
|
'vhea.cc',
|
||||||
'vmtx.cc',
|
'vmtx.cc',
|
||||||
|
'woff2.cc',
|
||||||
]
|
]
|
||||||
|
|
||||||
MSVC_ENABLE_PGO = True
|
MSVC_ENABLE_PGO = True
|
||||||
|
@ -61,5 +62,6 @@ if CONFIG['OS_TARGET'] == 'WINNT':
|
||||||
DEFINES['OTS_DLL'] = True
|
DEFINES['OTS_DLL'] = True
|
||||||
DEFINES['OTS_DLL_EXPORTS'] = True
|
DEFINES['OTS_DLL_EXPORTS'] = True
|
||||||
|
|
||||||
# Disable WOFF2 support.
|
USE_LIBS += [
|
||||||
DEFINES['OTS_DISABLE_WOFF2'] = True;
|
'brotli',
|
||||||
|
]
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
#include <zlib.h>
|
#include <zlib.h>
|
||||||
|
|
||||||
#include "third_party/brotli/src/brotli/dec/decode.h"
|
#include "decode.h"
|
||||||
|
|
||||||
#include "opentype-sanitiser.h"
|
#include "opentype-sanitiser.h"
|
||||||
#include "ots-memory-stream.h"
|
#include "ots-memory-stream.h"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче