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

Issue 10024050: Metro/HiDPI: Move 1x icons into separate pak file (Closed)

Created:
8 years, 8 months ago by sail
Modified:
8 years, 8 months ago
CC:
chromium-reviews, grt+watch_chromium.org, pam+watch_chromium.org, Emmanuel Saint-loubert-Bié, cpu_(ooo_6.6-7.5), oshima, benm (inactive), pkotwicz
Visibility:
Public.

Description

Metro/HiDPI: Move 1x icons into separate pak file Currently all 1x art files are repacked into chrome.pak files. This is a problem on Windows where we want to choose which pak file to load based on metro and DPI scale. As a first step this CL does the following: - add a new enable_hidpi build flag. This allows us to test HiDPI mode on Windows Chrome. - stop packing theme_resources_standard.pak and ui_resources_standard.pak into chrome.pak - update the Mac and Windows installer code to package the extra pak files. Note, I'll be updating the Linux installer script in a separate CL. I'm still looking into the ChromeOS situation. BUG=114311 TEST=Ran on Windows, and Mac and Linux. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=132517 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=132760 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=133613

Patch Set 1 #

Patch Set 2 : a #

Patch Set 3 : a #

Patch Set 4 : wrong base #

Patch Set 5 : rebase #

Patch Set 6 : fix hidpi flag #

Total comments: 1

Patch Set 7 : add FILES.cfg #

Patch Set 8 : a #

Patch Set 9 : fix test #

Patch Set 10 : fix test #

Patch Set 11 : a #

Patch Set 12 : fix clobber build #

Total comments: 2

Patch Set 13 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -62 lines) Patch
M build/common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +14 lines, -0 lines 0 comments Download
M chrome/chrome_dll.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +10 lines, -8 lines 0 comments Download
M chrome/chrome_repack_chrome.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -2 lines 0 comments Download
D chrome/chrome_repack_theme_resources_2x.gypi View 1 chunk +0 lines, -21 lines 0 comments Download
M chrome/chrome_resources.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +43 lines, -3 lines 0 comments Download
M chrome/installer/mini_installer/chrome.release View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/tools/build/chromeos/FILES.cfg View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/tools/build/linux/FILES.cfg View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/tools/build/win/FILES.cfg View 1 2 3 4 5 6 7 8 12 1 chunk +20 lines, -0 lines 0 comments Download
M chrome/tools/build/win/create_installer_archive.py View 1 2 3 4 chunks +10 lines, -3 lines 0 comments Download
M chrome/tools/build/win/release.rules View 1 chunk +1 line, -1 line 0 comments Download
M ui/base/resource/resource_bundle_android.cc View 1 2 3 4 5 6 7 8 9 1 chunk +14 lines, -5 lines 0 comments Download
M ui/base/resource/resource_bundle_linux.cc View 1 2 3 4 5 6 1 chunk +14 lines, -3 lines 0 comments Download
M ui/base/resource/resource_bundle_mac.mm View 1 4 1 chunk +11 lines, -1 line 0 comments Download
M ui/base/resource/resource_bundle_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +24 lines, -0 lines 0 comments Download
M ui/base/ui_base_paths.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M ui/base/ui_base_paths.cc View 1 1 chunk +0 lines, -10 lines 0 comments Download
M ui/test/test_suite.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
sail
8 years, 8 months ago (2012-04-11 23:58:38 UTC) #1
sky
I'm replacing myself with Tony on this one too.
8 years, 8 months ago (2012-04-12 00:29:27 UTC) #2
Robert Sesek
.mm LGTM
8 years, 8 months ago (2012-04-12 14:08:40 UTC) #3
sky
LGTM
8 years, 8 months ago (2012-04-12 16:23:53 UTC) #4
robertshield
lgtm http://codereview.chromium.org/10024050/diff/9005/chrome/tools/build/win/release.rules File chrome/tools/build/win/release.rules (right): http://codereview.chromium.org/10024050/diff/9005/chrome/tools/build/win/release.rules#newcode1 chrome/tools/build/win/release.rules:1: <?xml version="1.0" encoding="utf-8"?> I'm not sure this file ...
8 years, 8 months ago (2012-04-12 18:53:36 UTC) #5
Michael Moss
You probably also need to add these files to the chrome/tools/build/*/FILES.cfg files, to make sure ...
8 years, 8 months ago (2012-04-13 02:42:40 UTC) #6
sail
On 2012/04/13 02:42:40, Michael Moss wrote: > You probably also need to add these files ...
8 years, 8 months ago (2012-04-13 04:28:56 UTC) #7
Michael Moss
LGTM. Sorry for being slow, I missed your update.
8 years, 8 months ago (2012-04-13 21:29:43 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/10024050/30006
8 years, 8 months ago (2012-04-17 00:04:51 UTC) #9
commit-bot: I haz the power
Change committed as 132517
8 years, 8 months ago (2012-04-17 02:12:13 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/10024050/22003
8 years, 8 months ago (2012-04-18 04:28:55 UTC) #11
commit-bot: I haz the power
Change committed as 132760
8 years, 8 months ago (2012-04-18 07:30:23 UTC) #12
Nico
Sorry for the delay, I was afk. Mac file lgtm, but one question about the ...
8 years, 8 months ago (2012-04-23 15:51:25 UTC) #13
tony
Can we merge ui_resources and theme_resources into the same pak file? Historically, we try to ...
8 years, 8 months ago (2012-04-26 18:16:31 UTC) #14
sail
8 years, 8 months ago (2012-04-26 18:25:08 UTC) #15
On 2012/04/26 18:16:31, tony wrote:
> Can we merge ui_resources and theme_resources into the same pak file? 
> Historically, we try to minimize the number of separate files we load from
disk
> because when the disk is cold, each additional file will result in an extra
disk
> seek (and slow startup).
> 
> Ideally, we would even merge these into an existing .pak file so we don't have
> to open more files than before.

Hi Tony. I've filed http://crbug.com/125209 to track this.

Currently what you're suggesting isn't easy since ChromeOS has 3 copies of
ui_resources* (standard, 2x, and touch).

Once all the ChromeOS touch, ChromeOS high DPI, and Metro high DPI work has
landed I'll come back and combine all the resource paks that I can.

Thanks

Powered by Google App Engine
This is Rietveld 408576698