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

Issue 2629133002: Avoid UI unresponsiveness when switching between large images. (Closed)

Created:
3 years, 11 months ago by yamaguchi
Modified:
3 years, 11 months ago
Reviewers:
oka, fukino
CC:
chromium-reviews, oka+watch_chromium.org, rginda+watch_chromium.org, mtomasz+watch_chromium.org, yamaguchi+watch_chromium.org, fukino+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid UI unresponsiveness when switching between large images. A new rendering of a big image can cause visible UI freeze even when the image binary were already prefetched. This change forces to use thumbnail image to begin slide-in animation quicker. Downside of this change is that the thumbnail image will always be used for the slide animation for larger images than the threshold, even when flipping between 2 adjacent images back and forth. Before this change, the full image could have been cached in the renderer by chance and might have been working smoother on some platforms. BUG=656430 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2629133002 Cr-Commit-Position: refs/heads/master@{#443880} Committed: https://chromium.googlesource.com/chromium/src/+/9eb76629f83b6d9285876f88ce64e9fbe3ab373c

Patch Set 1 #

Total comments: 4

Patch Set 2 : Early return when metadataItem or any field is undefined. #

Patch Set 3 : Fix errors. #

Total comments: 3

Patch Set 4 : Remove @private from the constant to be consistent with others. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -1 line) Patch
M ui/file_manager/gallery/js/gallery_item.js View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
M ui/file_manager/gallery/js/image_editor/image_view.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 25 (15 generated)
yamaguchi
ptal
3 years, 11 months ago (2017-01-12 14:11:51 UTC) #7
fukino
lgtm with a nit https://codereview.chromium.org/2629133002/diff/1/ui/file_manager/gallery/js/gallery_item.js File ui/file_manager/gallery/js/gallery_item.js (right): https://codereview.chromium.org/2629133002/diff/1/ui/file_manager/gallery/js/gallery_item.js#newcode451 ui/file_manager/gallery/js/gallery_item.js:451: GalleryItem.HEAVY_RENDERING_THRESHOLD_PIXELS = 4e3 * 3e3; ...
3 years, 11 months ago (2017-01-13 02:50:33 UTC) #8
oka
https://codereview.chromium.org/2629133002/diff/1/ui/file_manager/gallery/js/gallery_item.js File ui/file_manager/gallery/js/gallery_item.js (right): https://codereview.chromium.org/2629133002/diff/1/ui/file_manager/gallery/js/gallery_item.js#newcode459 ui/file_manager/gallery/js/gallery_item.js:459: var numPixels = this.metadataItem_.imageHeight * I think imageHeight can ...
3 years, 11 months ago (2017-01-13 04:23:19 UTC) #10
yamaguchi
https://codereview.chromium.org/2629133002/diff/1/ui/file_manager/gallery/js/gallery_item.js File ui/file_manager/gallery/js/gallery_item.js (right): https://codereview.chromium.org/2629133002/diff/1/ui/file_manager/gallery/js/gallery_item.js#newcode451 ui/file_manager/gallery/js/gallery_item.js:451: GalleryItem.HEAVY_RENDERING_THRESHOLD_PIXELS = 4e3 * 3e3; On 2017/01/13 02:50:33, fukino ...
3 years, 11 months ago (2017-01-13 12:25:40 UTC) #15
oka
https://codereview.chromium.org/2629133002/diff/40001/ui/file_manager/gallery/js/gallery_item.js File ui/file_manager/gallery/js/gallery_item.js (right): https://codereview.chromium.org/2629133002/diff/40001/ui/file_manager/gallery/js/gallery_item.js#newcode450 ui/file_manager/gallery/js/gallery_item.js:450: * @private On 2017/01/13 12:25:39, yamaguchi wrote: > Changed ...
3 years, 11 months ago (2017-01-16 02:23:39 UTC) #16
oka
(I just drove by. Feel free to commit it without my lgtm.) On Mon, Jan ...
3 years, 11 months ago (2017-01-16 02:27:21 UTC) #17
yamaguchi
https://codereview.chromium.org/2629133002/diff/40001/ui/file_manager/gallery/js/gallery_item.js File ui/file_manager/gallery/js/gallery_item.js (right): https://codereview.chromium.org/2629133002/diff/40001/ui/file_manager/gallery/js/gallery_item.js#newcode450 ui/file_manager/gallery/js/gallery_item.js:450: * @private On 2017/01/16 02:23:39, oka wrote: > On ...
3 years, 11 months ago (2017-01-16 11:36:20 UTC) #18
yamaguchi
This change will make Gallery app show thumbnail image longer, but it is sometimes rotated ...
3 years, 11 months ago (2017-01-16 11:42:17 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2629133002/60001
3 years, 11 months ago (2017-01-16 12:48:15 UTC) #22
commit-bot: I haz the power
3 years, 11 months ago (2017-01-16 13:14:47 UTC) #25
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/9eb76629f83b6d9285876f88ce64...

Powered by Google App Engine
This is Rietveld 408576698