Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: tools/resources/optimize-png-files.sh

Issue 1815463002: Remove win8/metro_driver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | win8/metro_driver/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash -i 1 #!/bin/bash -i
2 # Copyright 2013 The Chromium Authors. All rights reserved. 2 # Copyright 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # The optimization code is based on pngslim (http://goo.gl/a0XHg) 6 # The optimization code is based on pngslim (http://goo.gl/a0XHg)
7 # and executes a similar pipleline to optimize the png file size. 7 # and executes a similar pipleline to optimize the png file size.
8 # The steps that require pngoptimizercl/pngrewrite/deflopt are omitted, 8 # The steps that require pngoptimizercl/pngrewrite/deflopt are omitted,
9 # but this runs all other processes, including: 9 # but this runs all other processes, including:
10 # 1) various color-dependent optimizations using optipng. 10 # 1) various color-dependent optimizations using optipng.
(...skipping 14 matching lines...) Expand all
25 component/resources 25 component/resources
26 content/public/android/java/res 26 content/public/android/java/res
27 content/app/resources 27 content/app/resources
28 content/renderer/resources 28 content/renderer/resources
29 content/shell/resources 29 content/shell/resources
30 remoting/resources 30 remoting/resources
31 ui/android/java/res 31 ui/android/java/res
32 ui/resources 32 ui/resources
33 ui/chromeos/resources 33 ui/chromeos/resources
34 ui/webui/resources/images 34 ui/webui/resources/images
35 win8/metro_driver/resources 35 win8/resources
36 " 36 "
37 37
38 # Files larger than this file size (in bytes) will 38 # Files larger than this file size (in bytes) will
39 # use the optimization parameters tailored for large files. 39 # use the optimization parameters tailored for large files.
40 LARGE_FILE_THRESHOLD=3000 40 LARGE_FILE_THRESHOLD=3000
41 41
42 # Constants used for optimization 42 # Constants used for optimization
43 readonly DEFAULT_MIN_BLOCK_SIZE=128 43 readonly DEFAULT_MIN_BLOCK_SIZE=128
44 readonly DEFAULT_LIMIT_BLOCKS=256 44 readonly DEFAULT_LIMIT_BLOCKS=256
45 readonly DEFAULT_RANDOM_TRIALS=100 45 readonly DEFAULT_RANDOM_TRIALS=100
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 if [ $PROCESSED_FILE != 0 ]; then 540 if [ $PROCESSED_FILE != 0 ]; then
541 let diff=$TOTAL_OLD_BYTES-$TOTAL_NEW_BYTES 541 let diff=$TOTAL_OLD_BYTES-$TOTAL_NEW_BYTES
542 let percent=$diff*100/$TOTAL_OLD_BYTES 542 let percent=$diff*100/$TOTAL_OLD_BYTES
543 echo "Result: $TOTAL_OLD_BYTES => $TOTAL_NEW_BYTES bytes" \ 543 echo "Result: $TOTAL_OLD_BYTES => $TOTAL_NEW_BYTES bytes" \
544 "($diff bytes: $percent%)" 544 "($diff bytes: $percent%)"
545 fi 545 fi
546 if [ $CORRUPTED_FILE != 0 ]; then 546 if [ $CORRUPTED_FILE != 0 ]; then
547 echo "Warning: corrupted files found: $CORRUPTED_FILE" 547 echo "Warning: corrupted files found: $CORRUPTED_FILE"
548 echo "Please contact the author of the CL that landed corrupted png files" 548 echo "Please contact the author of the CL that landed corrupted png files"
549 fi 549 fi
OLDNEW
« no previous file with comments | « no previous file | win8/metro_driver/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698