Commit 041f3052 authored by Trent Apted's avatar Trent Apted Committed by Commit Bot

Use brotli to compress ink resources on ChromeOS

This CL reduces the size of ChromeOS resources.pak by 996kiB.

One resource wasn't compressed at all, which accounts for 165kiB
of the savings.

Bug: 1015978
Change-Id: Iab7084e57446549187fc22a428e435e39856d267
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1918786Reviewed-by: default avatardstockwell <dstockwell@chromium.org>
Commit-Queue: Trent Apted <tapted@chromium.org>
Cr-Commit-Position: refs/heads/master@{#715592}
parent df480341
...@@ -8,6 +8,8 @@ if (is_chromeos) { ...@@ -8,6 +8,8 @@ if (is_chromeos) {
grit("ink_resources") { grit("ink_resources") {
source = "ink_resources.grd" source = "ink_resources.grd"
use_brotli = true
outputs = [ outputs = [
"grit/ink_resources.h", "grit/ink_resources.h",
"grit/ink_resources_map.cc", "grit/ink_resources_map.cc",
......
...@@ -13,9 +13,9 @@ ...@@ -13,9 +13,9 @@
<if expr="chromeos"> <if expr="chromeos">
<include name="IDR_INK_LIB_BINARY_JS" file="build/ink_lib_binary.js" type="BINDATA" /> <include name="IDR_INK_LIB_BINARY_JS" file="build/ink_lib_binary.js" type="BINDATA" />
<include name="IDR_INK_PTHREAD_MAIN_JS" file="build/wasm-threads/pthread-main.js" type="BINDATA" /> <include name="IDR_INK_PTHREAD_MAIN_JS" file="build/wasm-threads/pthread-main.js" type="BINDATA" />
<include name="IDR_INK_GLCORE_BASE_WASM" file="build/wasm-threads/glcore_base.wasm" compress="gzip" type="BINDATA" /> <include name="IDR_INK_GLCORE_BASE_WASM" file="build/wasm-threads/glcore_base.wasm" compress="brotli" type="BINDATA" />
<include name="IDR_INK_GLCORE_BASE_JS_MEM" file="build/wasm-threads/glcore_base.js.mem" compress="gzip" type="BINDATA" /> <include name="IDR_INK_GLCORE_BASE_JS_MEM" file="build/wasm-threads/glcore_base.js.mem" compress="brotli" type="BINDATA" />
<include name="IDR_INK_GLCORE_WASM_BOOTSTRAP_COMPILED_JS" file="build/wasm-threads/glcore_wasm_bootstrap_compiled.js" type="BINDATA" /> <include name="IDR_INK_GLCORE_WASM_BOOTSTRAP_COMPILED_JS" file="build/wasm-threads/glcore_wasm_bootstrap_compiled.js" compress="brotli" type="BINDATA" />
</if> </if>
</includes> </includes>
</release> </release>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment