summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorksakamoto@chromium.org <ksakamoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-11 11:16:37 +0000
committerksakamoto@chromium.org <ksakamoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-11 11:16:37 +0000
commit434deaa7fd945afcb6bbb28cc723512130bd1ef3 (patch)
tree00987d6945531bdbbb10be87884856fff94dde00
parent35fb42df350e977d65f99e0b26e95acc12441053 (diff)
downloadchromium_src-434deaa7fd945afcb6bbb28cc723512130bd1ef3.zip
chromium_src-434deaa7fd945afcb6bbb28cc723512130bd1ef3.tar.gz
chromium_src-434deaa7fd945afcb6bbb28cc723512130bd1ef3.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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=240014 Review URL: https://codereview.chromium.org/43183002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240070 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--DEPS4
-rw-r--r--third_party/brotli/OWNERS2
-rw-r--r--third_party/brotli/README.chromium15
-rw-r--r--third_party/brotli/brotli.gyp30
4 files changed, 51 insertions, 0 deletions
diff --git a/DEPS b/DEPS
index 634b349..220a472 100644
--- a/DEPS
+++ b/DEPS
@@ -151,6 +151,10 @@ deps = {
"src/third_party/ots":
(Var("googlecode_url") % "ots") + "/trunk@107",
+ "src/third_party/brotli/src":
+ Var("chromium_git") +
+ "/external/font-compression-reference.git@fe79fac8da1ec850d94679705a6f3405153f51dd",
+
"src/tools/page_cycler/acid3":
"/trunk/deps/page_cycler/acid3@171600",
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..7193c5d
--- /dev/null
+++ b/third_party/brotli/brotli.gyp
@@ -0,0 +1,30 @@
+# 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/streams.c',
+ 'src/brotli/dec/streams.h',
+ 'src/brotli/dec/types.h',
+ ],
+ },
+ ],
+}