summaryrefslogtreecommitdiffstats
path: root/chromium/build/android/gyp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-03-08 13:07:32 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-03-08 13:40:10 +0000
commit818d9aed569afd192f6d4f6d9b28b72912df8b93 (patch)
treefa30cbdffa3e8fdc09dbbe37ffc0a721b40fced1 /chromium/build/android/gyp
parent66a2147d838e293f4a5db7711c8eba4e6faaaf0f (diff)
BASELINE: Update Chromium to 65.0.3325.151
Change-Id: I3c71dd500483eb29491ac3eee4123714dda52da9 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/build/android/gyp')
-rwxr-xr-xchromium/build/android/gyp/process_resources.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/chromium/build/android/gyp/process_resources.py b/chromium/build/android/gyp/process_resources.py
index 72c9728ffd2..558ec5b4e95 100755
--- a/chromium/build/android/gyp/process_resources.py
+++ b/chromium/build/android/gyp/process_resources.py
@@ -107,6 +107,16 @@ _DENSITY_SPLITS = {
),
}
+# Pngs that we shouldn't convert to webp. Please add rationale when updating.
+_PNG_WEBP_BLACKLIST_PATTERN = re.compile('|'.join([
+ # Crashes on Galaxy S5 running L (https://crbug.com/807059).
+ r'.*star_gray\.png',
+ # Android requires pngs for 9-patch images.
+ r'.*\.9\.png',
+ # Daydream (*.dd) requires pngs for icon files.
+ r'.*\.dd\.png']))
+
+
class _ResourceWhitelist(object):
def __init__(self, entries=None):
self._entries = None
@@ -750,8 +760,9 @@ def _ConvertToWebP(webp_binary, png_files):
'-lossless', '-o', webp_path]
subprocess.check_call(args)
os.remove(png_path)
- # Android requires pngs for 9-patch images.
- pool.map(convert_image, [f for f in png_files if not f.endswith('.9.png')])
+
+ pool.map(convert_image, [f for f in png_files
+ if not _PNG_WEBP_BLACKLIST_PATTERN.match(f)])
pool.close()
pool.join()