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

Issue 10699065: chromeos: Fix pixelated icons in app list and launcher (part 1) (Closed)

Created:
8 years, 5 months ago by xiyuan
Modified:
8 years, 5 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, sadrul, tfarina, ben+watch_chromium.org
Visibility:
Public.

Description

chromeos: Fix pixelated icons in app list and launcher (part 1) - Wrap resize and create-shadow operations into ImageSkiaOperations; - Update launcher, app list grid and search to use ImageSkia instead of SkBitmap; This is part 1 of the change. No visual change until ImageLoadingTracker is updated. BUG=131738, 131739 TEST=None. No visual change to test until the ImageLoadingTracker change is done. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=146944

Patch Set 1 #

Total comments: 6

Patch Set 2 : rebase, move Resize/CreateDropShadow into ImageSkiaSource #

Total comments: 23

Patch Set 3 : for comments in #2 #

Total comments: 19

Patch Set 4 : rebase, address comments in #3 and revert ImageLoadingTracker part #

Total comments: 2

Patch Set 5 : for oshima's comments in #3, #4 #

Total comments: 4

Patch Set 6 : fix nits in #5 #

Total comments: 2

Patch Set 7 : rebase + fix nit in #6 #

Patch Set 8 : fix ash_shell compile #

Total comments: 6

Patch Set 9 : for sky's comments in #8 #

Total comments: 3

Patch Set 10 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -70 lines) Patch
M ash/launcher/launcher_button.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M ash/launcher/launcher_button.cc View 1 2 3 4 5 6 4 chunks +7 lines, -10 lines 0 comments Download
M ash/launcher/launcher_types.h View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M ash/shell/window_watcher.cc View 1 2 3 4 5 6 7 1 chunk +11 lines, -6 lines 0 comments Download
M ash/test/test_launcher_delegate.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/ash/app_list/extension_app_item.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/ash/launcher/chrome_launcher_controller.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/ash/launcher/chrome_launcher_controller.cc View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/ash/launcher/launcher_app_icon_loader.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/app_list/app_list_item_model.h View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M ui/app_list/app_list_item_model.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/app_list/app_list_item_view.cc View 1 2 3 4 5 6 7 8 8 chunks +23 lines, -19 lines 0 comments Download
M ui/app_list/icon_cache.h View 1 2 3 4 2 chunks +6 lines, -6 lines 0 comments Download
M ui/app_list/icon_cache.cc View 1 2 3 4 5 6 7 8 3 chunks +32 lines, -7 lines 0 comments Download
M ui/gfx/image/image_skia_operations.h View 1 2 3 4 5 6 2 chunks +13 lines, -3 lines 0 comments Download
M ui/gfx/image/image_skia_operations.cc View 1 2 3 4 5 6 7 8 3 chunks +87 lines, -0 lines 0 comments Download
M ui/gfx/shadow_value.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/shadow_value.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
xiyuan
Most of the files are just SkBitmap -> ImageSkia renaming. Significant parts of the CL ...
8 years, 5 months ago (2012-07-02 23:02:51 UTC) #1
pkotwicz
Thank you for looking into this. I am really happy that we have people looking ...
8 years, 5 months ago (2012-07-02 23:33:49 UTC) #2
pkotwicz
http://codereview.chromium.org/10699065/diff/1/ui/gfx/shadow_value.cc File ui/gfx/shadow_value.cc (right): http://codereview.chromium.org/10699065/diff/1/ui/gfx/shadow_value.cc#newcode31 ui/gfx/shadow_value.cc:31: return ShadowValue(gfx::Point(offset_.x() * scale, offset_.y() * scale), Use the ...
8 years, 5 months ago (2012-07-02 23:34:01 UTC) #3
oshima
http://codereview.chromium.org/10699065/diff/1/ui/gfx/image/image_skia.h File ui/gfx/image/image_skia.h (right): http://codereview.chromium.org/10699065/diff/1/ui/gfx/image/image_skia.h#newcode111 ui/gfx/image/image_skia.h:111: ImageSkia CreateDropShadow(const gfx::ShadowValues& shadows) const; Can you use new ...
8 years, 5 months ago (2012-07-03 03:47:25 UTC) #4
pkotwicz
Can you make the changes to image_loading_tracker in a separate CL? image_loading_tracker should be modified ...
8 years, 5 months ago (2012-07-03 17:15:20 UTC) #5
xiyuan
On 2012/07/03 17:15:20, pkotwicz wrote: > Can you make the changes to image_loading_tracker in a ...
8 years, 5 months ago (2012-07-03 17:25:31 UTC) #6
xiyuan
All done and splitted ImageLoadingTracker part into a separate CL http://codereview.chromium.org/10701087/. http://codereview.chromium.org/10699065/diff/1/ui/gfx/image/image_skia.h File ui/gfx/image/image_skia.h (right): ...
8 years, 5 months ago (2012-07-03 22:16:00 UTC) #7
oshima
http://codereview.chromium.org/10699065/diff/9001/chrome/browser/extensions/image_loading_tracker.cc File chrome/browser/extensions/image_loading_tracker.cc (right): http://codereview.chromium.org/10699065/diff/9001/chrome/browser/extensions/image_loading_tracker.cc#newcode225 chrome/browser/extensions/image_loading_tracker.cc:225: float scale = ui::GetScaleFactorScale(ui::SCALE_FACTOR_200P); can you comment on why ...
8 years, 5 months ago (2012-07-03 23:00:05 UTC) #8
pkotwicz
http://codereview.chromium.org/10699065/diff/9001/chrome/browser/extensions/image_loading_tracker.cc File chrome/browser/extensions/image_loading_tracker.cc (right): http://codereview.chromium.org/10699065/diff/9001/chrome/browser/extensions/image_loading_tracker.cc#newcode41 chrome/browser/extensions/image_loading_tracker.cc:41: const ExtensionResource& resource, const gfx::Size& max_size) Maybe a bad ...
8 years, 5 months ago (2012-07-04 00:19:50 UTC) #9
xiyuan
http://codereview.chromium.org/10699065/diff/9001/chrome/browser/extensions/image_loading_tracker.cc File chrome/browser/extensions/image_loading_tracker.cc (right): http://codereview.chromium.org/10699065/diff/9001/chrome/browser/extensions/image_loading_tracker.cc#newcode41 chrome/browser/extensions/image_loading_tracker.cc:41: const ExtensionResource& resource, const gfx::Size& max_size) On 2012/07/04 00:19:50, ...
8 years, 5 months ago (2012-07-10 20:02:13 UTC) #10
pkotwicz
http://codereview.chromium.org/10699065/diff/9001/ui/gfx/image/image_skia_sources.cc File ui/gfx/image/image_skia_sources.cc (right): http://codereview.chromium.org/10699065/diff/9001/ui/gfx/image/image_skia_sources.cc#newcode33 ui/gfx/image/image_skia_sources.cc:33: const ImageSkiaRep& image_rep = source_.GetRepresentation(scale_factor); My thought is that ...
8 years, 5 months ago (2012-07-10 22:59:56 UTC) #11
oshima
http://codereview.chromium.org/10699065/diff/9001/ui/app_list/app_list_item_view.cc File ui/app_list/app_list_item_view.cc (right): http://codereview.chromium.org/10699065/diff/9001/ui/app_list/app_list_item_view.cc#newcode118 ui/app_list/app_list_item_view.cc:118: ui::SCALE_FACTOR_200P : ui::SCALE_FACTOR_100P); On 2012/07/10 20:02:13, xiyuan wrote: > ...
8 years, 5 months ago (2012-07-10 23:51:06 UTC) #12
pkotwicz
http://codereview.chromium.org/10699065/diff/9001/ui/app_list/icon_cache.cc File ui/app_list/icon_cache.cc (right): http://codereview.chromium.org/10699065/diff/9001/ui/app_list/icon_cache.cc#newcode15 ui/app_list/icon_cache.cc:15: const SkBitmap* bitmap = image.bitmap(); I understand now. The ...
8 years, 5 months ago (2012-07-11 00:12:44 UTC) #13
xiyuan
CL updated: - Addressed comments in #3; - Reverted the ImageLoadingTracker part that needs more ...
8 years, 5 months ago (2012-07-11 17:39:13 UTC) #14
oshima
http://codereview.chromium.org/10699065/diff/6002/chrome/browser/extensions/image_loading_tracker.cc File chrome/browser/extensions/image_loading_tracker.cc (right): http://codereview.chromium.org/10699065/diff/6002/chrome/browser/extensions/image_loading_tracker.cc#newcode221 chrome/browser/extensions/image_loading_tracker.cc:221: return; On 2012/07/11 17:39:13, xiyuan wrote: > On 2012/07/10 ...
8 years, 5 months ago (2012-07-11 18:08:40 UTC) #15
xiyuan
http://codereview.chromium.org/10699065/diff/6002/chrome/browser/extensions/image_loading_tracker.cc File chrome/browser/extensions/image_loading_tracker.cc (right): http://codereview.chromium.org/10699065/diff/6002/chrome/browser/extensions/image_loading_tracker.cc#newcode221 chrome/browser/extensions/image_loading_tracker.cc:221: return; I see your point. Let's follow ImageLoadingTracker change ...
8 years, 5 months ago (2012-07-11 21:40:40 UTC) #16
oshima
lgtm with a few nits http://codereview.chromium.org/10699065/diff/14004/ui/app_list/icon_cache.cc File ui/app_list/icon_cache.cc (right): http://codereview.chromium.org/10699065/diff/14004/ui/app_list/icon_cache.cc#newcode17 ui/app_list/icon_cache.cc:17: ui::SCALE_FACTOR_200P : ui::SCALE_FACTOR_NONE; I ...
8 years, 5 months ago (2012-07-11 23:11:16 UTC) #17
xiyuan
http://codereview.chromium.org/10699065/diff/14004/ui/app_list/icon_cache.cc File ui/app_list/icon_cache.cc (right): http://codereview.chromium.org/10699065/diff/14004/ui/app_list/icon_cache.cc#newcode17 ui/app_list/icon_cache.cc:17: ui::SCALE_FACTOR_200P : ui::SCALE_FACTOR_NONE; On 2012/07/11 23:11:16, oshima wrote: > ...
8 years, 5 months ago (2012-07-11 23:21:25 UTC) #18
pkotwicz
LGTM
8 years, 5 months ago (2012-07-12 00:18:12 UTC) #19
pkotwicz
http://codereview.chromium.org/10699065/diff/15003/ash/launcher/launcher_button.cc File ash/launcher/launcher_button.cc (right): http://codereview.chromium.org/10699065/diff/15003/ash/launcher/launcher_button.cc#newcode244 ash/launcher/launcher_button.cc:244: icon_view_->SetImage(gfx::ImageSkiaOperations::CreateDropShadowImage( Nit: if you want, can you rename this ...
8 years, 5 months ago (2012-07-12 00:18:24 UTC) #20
xiyuan
Ben, could you bless the CL? http://codereview.chromium.org/10699065/diff/15003/ash/launcher/launcher_button.cc File ash/launcher/launcher_button.cc (right): http://codereview.chromium.org/10699065/diff/15003/ash/launcher/launcher_button.cc#newcode244 ash/launcher/launcher_button.cc:244: icon_view_->SetImage(gfx::ImageSkiaOperations::CreateDropShadowImage( On 2012/07/12 ...
8 years, 5 months ago (2012-07-12 16:52:23 UTC) #21
xiyuan
+sky Quick update: The current plan to add HiDIP icon support for apps in launcher ...
8 years, 5 months ago (2012-07-16 16:29:39 UTC) #22
sky
I'll review part 1 now. Since part 2 is gated by 10702098 it can wait. ...
8 years, 5 months ago (2012-07-16 16:37:25 UTC) #23
sky
http://codereview.chromium.org/10699065/diff/6025/ui/app_list/icon_cache.cc File ui/app_list/icon_cache.cc (right): http://codereview.chromium.org/10699065/diff/6025/ui/app_list/icon_cache.cc#newcode18 ui/app_list/icon_cache.cc:18: ui::SCALE_FACTOR_200P : ui::SCALE_FACTOR_100P; How come if dip is enabled ...
8 years, 5 months ago (2012-07-16 16:49:39 UTC) #24
xiyuan
http://codereview.chromium.org/10699065/diff/6025/ui/app_list/icon_cache.cc File ui/app_list/icon_cache.cc (right): http://codereview.chromium.org/10699065/diff/6025/ui/app_list/icon_cache.cc#newcode18 ui/app_list/icon_cache.cc:18: ui::SCALE_FACTOR_200P : ui::SCALE_FACTOR_100P; On 2012/07/16 16:49:39, sky wrote: > ...
8 years, 5 months ago (2012-07-16 17:08:02 UTC) #25
pkotwicz
Xiyuan, if this CL is going to take a while to load, can you please ...
8 years, 5 months ago (2012-07-16 18:04:33 UTC) #26
sky
On Mon, Jul 16, 2012 at 10:08 AM, <xiyuan@chromium.org> wrote: > > http://codereview.chromium.org/10699065/diff/6025/ui/app_list/icon_cache.cc > File ...
8 years, 5 months ago (2012-07-16 20:57:03 UTC) #27
xiyuan
I have removed the code to pick a scale factor based on IsDIPEnabled. Instead, shadow ...
8 years, 5 months ago (2012-07-16 21:45:39 UTC) #28
pkotwicz
http://codereview.chromium.org/10699065/diff/17002/ui/app_list/app_list_item_view.cc File ui/app_list/app_list_item_view.cc (right): http://codereview.chromium.org/10699065/diff/17002/ui/app_list/app_list_item_view.cc#newcode112 ui/app_list/app_list_item_view.cc:112: for (gfx::ImageSkia::ImageSkiaReps::const_iterator it = image_reps.begin(); This will not work. ...
8 years, 5 months ago (2012-07-16 22:07:05 UTC) #29
xiyuan
http://codereview.chromium.org/10699065/diff/17002/ui/app_list/app_list_item_view.cc File ui/app_list/app_list_item_view.cc (right): http://codereview.chromium.org/10699065/diff/17002/ui/app_list/app_list_item_view.cc#newcode112 ui/app_list/app_list_item_view.cc:112: for (gfx::ImageSkia::ImageSkiaReps::const_iterator it = image_reps.begin(); On 2012/07/16 22:07:05, pkotwicz ...
8 years, 5 months ago (2012-07-16 22:15:12 UTC) #30
pkotwicz
http://codereview.chromium.org/10699065/diff/17002/ui/app_list/app_list_item_view.cc File ui/app_list/app_list_item_view.cc (right): http://codereview.chromium.org/10699065/diff/17002/ui/app_list/app_list_item_view.cc#newcode112 ui/app_list/app_list_item_view.cc:112: for (gfx::ImageSkia::ImageSkiaReps::const_iterator it = image_reps.begin(); Sorry, my bad. This ...
8 years, 5 months ago (2012-07-16 22:49:30 UTC) #31
sky
LGTM
8 years, 5 months ago (2012-07-16 22:52:03 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xiyuan@chromium.org/10699065/18003
8 years, 5 months ago (2012-07-17 00:14:56 UTC) #33
commit-bot: I haz the power
8 years, 5 months ago (2012-07-17 01:30:17 UTC) #34
Change committed as 146944

Powered by Google App Engine
This is Rietveld 408576698