summaryrefslogtreecommitdiffstats
path: root/third_party/brotli
diff options
context:
space:
mode:
authorksakamoto@chromium.org <ksakamoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-11 04:42:18 +0000
committerksakamoto@chromium.org <ksakamoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-11 04:42:18 +0000
commite3476cdf6c3fe825d5b6baae909011bba0fa9250 (patch)
tree31aa0e3cad8507cccd2b11afa5ef0fd0d4fc7a27 /third_party/brotli
parent63e56c83c4689dd0dfcef4b40e5fa8ef135e86f5 (diff)
downloadchromium_src-e3476cdf6c3fe825d5b6baae909011bba0fa9250.zip
chromium_src-e3476cdf6c3fe825d5b6baae909011bba0fa9250.tar.gz
chromium_src-e3476cdf6c3fe825d5b6baae909011bba0fa9250.tar.bz2
[WOFF 2.0] Add third_party/brotli
Brotli is the byte-level compression algorithm of WOFF 2.0 font file format. This patch adds a dependency on the font-compression-reference repository[1] which includes Brotli decoder. This library will be used by third_party/ots, as the replacement of LZMA. WOFF 2.0 feature is currently available behind the enable-experimental-web-platform-features flag. The Brotli decoder runs in render processes. [1] https://code.google.com/p/font-compression-reference/ BUG=307828 Review URL: https://codereview.chromium.org/43183002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240014 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/brotli')
-rw-r--r--third_party/brotli/OWNERS2
-rw-r--r--third_party/brotli/README.chromium15
-rw-r--r--third_party/brotli/brotli.gyp28
3 files changed, 45 insertions, 0 deletions
diff --git a/third_party/brotli/OWNERS b/third_party/brotli/OWNERS
new file mode 100644
index 0000000..458697e
--- /dev/null
+++ b/third_party/brotli/OWNERS
@@ -0,0 +1,2 @@
+ksakamoto@chromium.org
+bashi@chromium.org
diff --git a/third_party/brotli/README.chromium b/third_party/brotli/README.chromium
new file mode 100644
index 0000000..c17c9c3
--- /dev/null
+++ b/third_party/brotli/README.chromium
@@ -0,0 +1,15 @@
+Name: Brotli
+URL: https://code.google.com/p/font-compression-reference/
+Version: 0
+License: Apache 2.0
+License File: src/brotli/LICENSE
+Security Critical: yes
+
+Description:
+Brotli is a generic byte-level compression algorithm that is proposed to
+be used at the byte-compression level in WOFF 2.0 font file format.
+
+This library is used by src/third_party/ots, to decode WOFF 2.0 fonts.
+
+The font-compression-reference repository includes WOFF 2.0 encoder and
+tools, but Chrome/Chromium need only files under brotli/dec.
diff --git a/third_party/brotli/brotli.gyp b/third_party/brotli/brotli.gyp
new file mode 100644
index 0000000..44b7674
--- /dev/null
+++ b/third_party/brotli/brotli.gyp
@@ -0,0 +1,28 @@
+# Copyright 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'targets': [
+ {
+ 'target_name': 'brotli',
+ 'type': 'static_library',
+ 'include_dirs': [
+ 'src/brotli/dec',
+ ],
+ 'sources': [
+ 'src/brotli/dec/bit_reader.c',
+ 'src/brotli/dec/bit_reader.h',
+ 'src/brotli/dec/context.h',
+ 'src/brotli/dec/decode.c',
+ 'src/brotli/dec/decode.h',
+ 'src/brotli/dec/huffman.c',
+ 'src/brotli/dec/huffman.h',
+ 'src/brotli/dec/prefix.h',
+ 'src/brotli/dec/safe_malloc.c',
+ 'src/brotli/dec/safe_malloc.h',
+ 'src/brotli/dec/types.h',
+ ],
+ },
+ ],
+}