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

Issue 334053007: Android: Optimize PNG files in chrome/android/java/res. (Closed)

Created:
6 years, 6 months ago by Lei Zhang
Modified:
6 years, 6 months ago
CC:
chromium-reviews, aurimas (slooooooooow)
Project:
chromium
Visibility:
Public.

Description

Android: Optimize some PNG files in chrome/android/java/res. Result: 283628 => 128506 bytes (155122 bytes: 54%) R=newt@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278635

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+-9 lines, --10 lines) Patch
M chrome/android/java/res/drawable-hdpi/btn_back_disabled.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-hdpi/btn_back_normal.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-hdpi/btn_back_pressed.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-hdpi/btn_forward_disabled.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-hdpi/btn_forward_normal.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-hdpi/btn_forward_pressed.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-hdpi/btn_star_filled.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-hdpi/btn_star_normal.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-hdpi/btn_star_pressed.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-hdpi/dismiss.png View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/android/java/res/drawable-hdpi/globe_favicon.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-hdpi/pageinfo_bad.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-hdpi/pageinfo_enterprise_managed.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-hdpi/pageinfo_good.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-hdpi/pageinfo_info.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-hdpi/pageinfo_warning_minor.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-hdpi/warning.png View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/android/java/res/drawable-ldrtl-hdpi/warning.png View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/android/java/res/drawable-ldrtl-xhdpi/warning.png View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/android/java/res/drawable-ldrtl/warning.png View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/android/java/res/drawable-tvdpi/back.png View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/android/java/res/drawable-tvdpi/back_disabled.png View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/android/java/res/drawable-tvdpi/globe_favicon.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xhdpi/btn_back_disabled.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xhdpi/btn_back_normal.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xhdpi/btn_back_pressed.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xhdpi/btn_forward_disabled.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xhdpi/btn_forward_normal.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xhdpi/btn_forward_pressed.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xhdpi/btn_star_filled.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xhdpi/btn_star_normal.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xhdpi/btn_star_pressed.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xhdpi/dismiss.png View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/android/java/res/drawable-xhdpi/distillation_quality_answer_no_faded.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xhdpi/distillation_quality_answer_no_pressed.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xhdpi/distillation_quality_answer_yes_faded.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xhdpi/distillation_quality_answer_yes_pressed.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xhdpi/globe_favicon.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xhdpi/pageinfo_bad.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xhdpi/pageinfo_enterprise_managed.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xhdpi/pageinfo_good.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xhdpi/pageinfo_info.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xhdpi/pageinfo_warning_minor.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xhdpi/warning.png View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/android/java/res/drawable-xxhdpi/btn_back_disabled.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xxhdpi/btn_back_normal.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xxhdpi/btn_back_pressed.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xxhdpi/btn_forward_disabled.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xxhdpi/btn_forward_normal.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xxhdpi/btn_forward_pressed.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xxhdpi/btn_star_empty.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xxhdpi/btn_star_filled.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xxhdpi/btn_star_full.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xxhdpi/btn_star_half.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xxhdpi/btn_star_normal.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xxhdpi/btn_star_pressed.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xxhdpi/card_background_default.9.png View Binary file 0 comments Download
M chrome/android/java/res/drawable-xxhdpi/google_play_logo.png View Binary file 0 comments Download
M chrome/android/java/res/drawable/btn_back_disabled.png View Binary file 0 comments Download
M chrome/android/java/res/drawable/btn_back_normal.png View Binary file 0 comments Download
M chrome/android/java/res/drawable/btn_back_pressed.png View Binary file 0 comments Download
M chrome/android/java/res/drawable/btn_forward_disabled.png View Binary file 0 comments Download
M chrome/android/java/res/drawable/btn_forward_normal.png View Binary file 0 comments Download
M chrome/android/java/res/drawable/btn_forward_pressed.png View Binary file 0 comments Download
M chrome/android/java/res/drawable/btn_star_filled.png View Binary file 0 comments Download
M chrome/android/java/res/drawable/btn_star_normal.png View Binary file 0 comments Download
M chrome/android/java/res/drawable/btn_star_pressed.png View Binary file 0 comments Download
M chrome/android/java/res/drawable/close_tab_incognito.png View Binary file 0 comments Download
M chrome/android/java/res/drawable/dismiss.png View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/android/java/res/drawable/globe_favicon.png View Binary file 0 comments Download
M chrome/android/java/res/drawable/globe_incognito_favicon.png View Binary file 0 comments Download
M chrome/android/java/res/drawable/missing.png View Binary file 0 comments Download
M chrome/android/java/res/drawable/ntp_toolbar_button_background_pressed_img.png View Binary file 0 comments Download
M chrome/android/java/res/drawable/ntp_toolbar_button_background_selected_img.png View Binary file 0 comments Download
M chrome/android/java/res/drawable/ntp_toolbar_button_background_selected_pressed_img.png View Binary file 0 comments Download
M chrome/android/java/res/drawable/pageinfo_bad.png View Binary file 0 comments Download
M chrome/android/java/res/drawable/pageinfo_enterprise_managed.png View Binary file 0 comments Download
M chrome/android/java/res/drawable/pageinfo_good.png View Binary file 0 comments Download
M chrome/android/java/res/drawable/pageinfo_info.png View Binary file 0 comments Download
M chrome/android/java/res/drawable/pageinfo_warning_minor.png View Binary file 0 comments Download
M chrome/android/java/res/drawable/tabstrip_incognito_switch_incognito.png View Binary file 0 comments Download
M chrome/android/java/res/drawable/tabstrip_incognito_switch_normal.png View Binary file 0 comments Download
M chrome/android/java/res/drawable/warning.png View Binary file 0 comments Download
M chrome/android/java/res/mipmap-hdpi/app_icon.png View Binary file 0 comments Download
M chrome/android/java/res/mipmap-hdpi/bookmark_widget_bg.png View Binary file 0 comments Download
M chrome/android/java/res/mipmap-hdpi/bookmark_widget_bg_highlights.png View Binary file 0 comments Download
M chrome/android/java/res/mipmap-mdpi/app_icon.png View Binary file 0 comments Download
M chrome/android/java/res/mipmap-xhdpi/app_icon.png View Binary file 0 comments Download
M chrome/android/java/res/mipmap-xhdpi/bookmark_widget_bg.png View Binary file 0 comments Download
M chrome/android/java/res/mipmap-xhdpi/bookmark_widget_bg_highlights.png View Binary file 0 comments Download
M chrome/android/java/res/mipmap-xxhdpi/app_icon.png View Binary file 0 comments Download
M tools/resources/optimize-png-files.sh View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Lei Zhang
I noticed zip did a good job compressing these resources.
6 years, 6 months ago (2014-06-18 02:02:29 UTC) #1
aurimas (slooooooooow)
+newt I'm pretty sure that our build system crunches the pngs.
6 years, 6 months ago (2014-06-18 02:08:00 UTC) #2
Lei Zhang
On 2014/06/18 02:08:00, aurimas wrote: > +newt I'm pretty sure that our build system crunches ...
6 years, 6 months ago (2014-06-18 02:09:56 UTC) #3
newt (away)
I didn't know about optimize-png-files.sh, that's neat :) Aurimas is correct, though, build/android/process_resources.py runs Android's ...
6 years, 6 months ago (2014-06-18 03:52:04 UTC) #4
Lei Zhang
On 2014/06/18 03:52:04, newt wrote: > I didn't know about optimize-png-files.sh, that's neat :) > ...
6 years, 6 months ago (2014-06-18 04:19:24 UTC) #5
Lei Zhang
I also noticed chrome/android/java/res/mipmap-xxhdpi/app_icon.png, which this CL takes from 24601 to 22520 bytes, but the ...
6 years, 6 months ago (2014-06-18 04:31:40 UTC) #6
newt (away)
On 2014/06/18 04:19:24, Lei Zhang wrote: > On 2014/06/18 03:52:04, newt wrote: > > I ...
6 years, 6 months ago (2014-06-18 05:57:04 UTC) #7
newt (away)
On 2014/06/18 04:31:40, Lei Zhang wrote: > I also noticed chrome/android/java/res/mipmap-xxhdpi/app_icon.png, which this CL > ...
6 years, 6 months ago (2014-06-18 06:01:08 UTC) #8
newt (away)
lgtm
6 years, 6 months ago (2014-06-18 06:01:18 UTC) #9
newt (away)
FYI, I'm modifying all the infobar_*.png images soon. If you could revert changes to those ...
6 years, 6 months ago (2014-06-19 17:11:14 UTC) #10
Lei Zhang
On 2014/06/19 17:11:14, newt wrote: > FYI, I'm modifying all the infobar_*.png images soon. If ...
6 years, 6 months ago (2014-06-20 06:41:22 UTC) #11
Lei Zhang
Committed patchset #3 manually as r278635 (presubmit successful).
6 years, 6 months ago (2014-06-20 06:49:35 UTC) #12
newt (away)
6 years, 6 months ago (2014-06-20 16:11:28 UTC) #13
Message was sent while issue was closed.
On 2014/06/20 06:41:22, Lei Zhang wrote:
> On 2014/06/19 17:11:14, newt wrote:
> > FYI, I'm modifying all the infobar_*.png images soon. If you could revert
> > changes to those files before landing this, I'd appreciate it. I'll re-run
> > optimize-png-files.sh after updating the images. Thanks!
> 
> Ok, I excluded those and updated the savings results in the commit msg.

Thanks :)

Powered by Google App Engine
This is Rietveld 408576698