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

Issue 11301007: Load the resources for max scale factor first. (Closed)

Created:
8 years, 1 month ago by oshima
Modified:
8 years, 1 month ago
Reviewers:
flackr, pkotwicz, sail, sky
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Load the resources for max scale factor first. - made SCALE_FACTOR_NONE != SCALE_FACTOR_100P - updated a few places that used SCALE_FACTOR_NONE to load 100P images - Don't include 200P to supported scale factor unless we have 200P assets (on chromeos) BUG=156569 TEST=covered by test. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=167622

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Patch Set 5 : #

Total comments: 8

Patch Set 6 : rebase #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : do this only for chromeos for now #

Total comments: 2

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Total comments: 2

Patch Set 14 : #

Patch Set 15 : #

Patch Set 16 : rebase #

Patch Set 17 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -52 lines) Patch
M ash/shell/window_watcher.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/favicon_source.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/fileicon_source.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/web_ui_util.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/web_ui_util_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ui/base/layout.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -5 lines 0 comments Download
M ui/base/layout.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +4 lines, -2 lines 0 comments Download
M ui/base/layout_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -6 lines 0 comments Download
M ui/base/resource/resource_bundle.h View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M ui/base/resource/resource_bundle.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +24 lines, -19 lines 0 comments Download
M ui/base/resource/resource_bundle_android.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/base/resource/resource_bundle_aurax11.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ui/base/resource/resource_bundle_gtk.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/base/resource/resource_bundle_mac.mm View 1 chunk +1 line, -1 line 0 comments Download
M ui/base/resource/resource_bundle_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +29 lines, -4 lines 0 comments Download
M ui/gfx/image/image_skia.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +10 lines, -3 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
oshima
I still need to go through all use of SCALE_FACTOR_NONE, but sending to you for ...
8 years, 1 month ago (2012-10-28 00:59:21 UTC) #1
pkotwicz
Cool!
8 years, 1 month ago (2012-10-29 20:06:19 UTC) #2
oshima
sail -> ui/base/resource_bundle* pkotwicz -> everything (especially icon changes) flackr -> webui/web_ui_util*
8 years, 1 month ago (2012-11-05 23:31:12 UTC) #3
sail
https://codereview.chromium.org/11301007/diff/8013/ui/base/resource/resource_bundle_unittest.cc File ui/base/resource/resource_bundle_unittest.cc (right): https://codereview.chromium.org/11301007/diff/8013/ui/base/resource/resource_bundle_unittest.cc#newcode384 ui/base/resource/resource_bundle_unittest.cc:384: FilePath locale_path = dir.path().Append(FILE_PATH_LITERAL("empty.pak")); use AppendASCII instead of FILE_PATH_LITERAL? ...
8 years, 1 month ago (2012-11-05 23:46:39 UTC) #4
flackr
webui/web_ui_util* lgtm
8 years, 1 month ago (2012-11-06 00:19:03 UTC) #5
oshima
https://codereview.chromium.org/11301007/diff/8013/ui/base/resource/resource_bundle_unittest.cc File ui/base/resource/resource_bundle_unittest.cc (right): https://codereview.chromium.org/11301007/diff/8013/ui/base/resource/resource_bundle_unittest.cc#newcode384 ui/base/resource/resource_bundle_unittest.cc:384: FilePath locale_path = dir.path().Append(FILE_PATH_LITERAL("empty.pak")); On 2012/11/05 23:46:39, sail wrote: ...
8 years, 1 month ago (2012-11-06 00:36:51 UTC) #6
sail
LGTM
8 years, 1 month ago (2012-11-06 16:33:29 UTC) #7
pkotwicz
LGTM with nits http://codereview.chromium.org/11301007/diff/8014/ui/base/layout.h File ui/base/layout.h (right): http://codereview.chromium.org/11301007/diff/8014/ui/base/layout.h#newcode36 ui/base/layout.h:36: // string, html/js files or an ...
8 years, 1 month ago (2012-11-07 06:40:44 UTC) #8
oshima
http://codereview.chromium.org/11301007/diff/8014/ui/base/layout.h File ui/base/layout.h (right): http://codereview.chromium.org/11301007/diff/8014/ui/base/layout.h#newcode36 ui/base/layout.h:36: // string, html/js files or an image that can ...
8 years, 1 month ago (2012-11-07 22:35:30 UTC) #9
oshima
sky -> OWNERS review
8 years, 1 month ago (2012-11-07 22:35:47 UTC) #10
sky
https://codereview.chromium.org/11301007/diff/17002/ui/base/layout.h File ui/base/layout.h (right): https://codereview.chromium.org/11301007/diff/17002/ui/base/layout.h#newcode39 ui/base/layout.h:39: SCALE_FACTOR_NONE = 0, Instead of NONE should it be ...
8 years, 1 month ago (2012-11-07 22:51:44 UTC) #11
sky
LGTM
8 years, 1 month ago (2012-11-07 23:50:17 UTC) #12
oshima
https://codereview.chromium.org/11301007/diff/17002/ui/base/layout.h File ui/base/layout.h (right): https://codereview.chromium.org/11301007/diff/17002/ui/base/layout.h#newcode39 ui/base/layout.h:39: SCALE_FACTOR_NONE = 0, On 2012/11/07 22:51:44, sky wrote: > ...
8 years, 1 month ago (2012-11-07 23:51:45 UTC) #13
oshima
Scott, I have to change the CL a bit: I couldn't use ResourceBundle in GetSupportedScaleFactorsInternal ...
8 years, 1 month ago (2012-11-09 22:32:37 UTC) #14
sky
LGTM https://codereview.chromium.org/11301007/diff/10017/ui/base/layout.cc File ui/base/layout.cc (right): https://codereview.chromium.org/11301007/diff/10017/ui/base/layout.cc#newcode32 ui/base/layout.cc:32: #include "base/debug/stack_trace.h" remove this
8 years, 1 month ago (2012-11-09 23:02:17 UTC) #15
oshima
https://codereview.chromium.org/11301007/diff/10017/ui/base/layout.cc File ui/base/layout.cc (right): https://codereview.chromium.org/11301007/diff/10017/ui/base/layout.cc#newcode32 ui/base/layout.cc:32: #include "base/debug/stack_trace.h" On 2012/11/09 23:02:17, sky wrote: > remove ...
8 years, 1 month ago (2012-11-09 23:49:37 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/11301007/17005
8 years, 1 month ago (2012-11-13 18:34:21 UTC) #17
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years, 1 month ago (2012-11-13 18:42:53 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/11301007/28041
8 years, 1 month ago (2012-11-13 21:44:18 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/11301007/5045
8 years, 1 month ago (2012-11-14 05:49:11 UTC) #20
commit-bot: I haz the power
8 years, 1 month ago (2012-11-14 07:28:42 UTC) #21
Change committed as 167622

Powered by Google App Engine
This is Rietveld 408576698