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

Issue 420743002: Gallery: Store image caches in Gallery items. (Closed)

Created:
6 years, 5 months ago by hirono
Modified:
6 years, 4 months ago
Reviewers:
mtomasz
CC:
chromium-reviews, rginda+watch_chromium.org, mtomasz+watch_chromium.org, yoshiki+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Previously the caches are stored in the UI class. The CL moves the caches in Gallery items to: * Simplify UI class. * Share the cache different UI classes. * Move loading logic into the items in future patches. BUG=391643 TEST=manually Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285890

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : #

Patch Set 4 : . #

Total comments: 6

Patch Set 5 : Fixed. #

Total comments: 4

Patch Set 6 : Fixed. #

Total comments: 2

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -159 lines) Patch
M ui/file_manager/file_manager/common/js/util.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/file_manager/gallery/js/gallery.js View 1 2 3 4 5 3 chunks +61 lines, -0 lines 0 comments Download
M ui/file_manager/gallery/js/gallery_item.js View 1 2 3 4 5 6 2 chunks +40 lines, -0 lines 0 comments Download
M ui/file_manager/gallery/js/image_editor/image_view.js View 1 2 5 chunks +11 lines, -143 lines 0 comments Download
M ui/file_manager/gallery/js/slide_mode.js View 5 chunks +0 lines, -15 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
hirono
Previously the caches are stored in the UI class. The CL moves the caches in ...
6 years, 5 months ago (2014-07-25 09:19:03 UTC) #1
hirono
PTAL. Thanks!
6 years, 5 months ago (2014-07-25 09:19:46 UTC) #2
mtomasz
On 2014/07/25 09:19:46, hirono wrote: > PTAL. Thanks! Do we need this cache? Image loader ...
6 years, 5 months ago (2014-07-26 05:14:59 UTC) #3
hirono
On 2014/07/26 05:14:59, mtomasz wrote: > On 2014/07/25 09:19:46, hirono wrote: > > PTAL. Thanks! ...
6 years, 4 months ago (2014-07-28 04:50:58 UTC) #4
mtomasz
On 2014/07/28 04:50:58, hirono wrote: > On 2014/07/26 05:14:59, mtomasz wrote: > > On 2014/07/25 ...
6 years, 4 months ago (2014-07-28 05:05:42 UTC) #5
mtomasz
https://codereview.chromium.org/420743002/diff/60001/ui/file_manager/gallery/js/gallery.js File ui/file_manager/gallery/js/gallery.js (right): https://codereview.chromium.org/420743002/diff/60001/ui/file_manager/gallery/js/gallery.js#newcode151 ui/file_manager/gallery/js/gallery.js:151: var contentCacheCount = 2; I think the code is ...
6 years, 4 months ago (2014-07-28 05:13:02 UTC) #6
hirono
> Did you perform any resizing? JPEG decoding + encoding is slow on Chrome OS. ...
6 years, 4 months ago (2014-07-28 06:50:19 UTC) #7
hirono
Thanks! https://codereview.chromium.org/420743002/diff/60001/ui/file_manager/gallery/js/gallery.js File ui/file_manager/gallery/js/gallery.js (right): https://codereview.chromium.org/420743002/diff/60001/ui/file_manager/gallery/js/gallery.js#newcode151 ui/file_manager/gallery/js/gallery.js:151: var contentCacheCount = 2; On 2014/07/28 05:13:01, mtomasz ...
6 years, 4 months ago (2014-07-28 06:50:32 UTC) #8
mtomasz
On 2014/07/28 06:50:19, hirono wrote: > > Did you perform any resizing? JPEG decoding + ...
6 years, 4 months ago (2014-07-28 07:51:15 UTC) #9
mtomasz
https://codereview.chromium.org/420743002/diff/80001/ui/file_manager/gallery/js/gallery.js File ui/file_manager/gallery/js/gallery.js (right): https://codereview.chromium.org/420743002/diff/80001/ui/file_manager/gallery/js/gallery.js#newcode159 ui/file_manager/gallery/js/gallery.js:159: currentSelectedItem.lastAccessed = Date.now(); I think updating lastAccessed time shouldn't ...
6 years, 4 months ago (2014-07-28 07:51:21 UTC) #10
hirono
https://codereview.chromium.org/420743002/diff/80001/ui/file_manager/gallery/js/gallery.js File ui/file_manager/gallery/js/gallery.js (right): https://codereview.chromium.org/420743002/diff/80001/ui/file_manager/gallery/js/gallery.js#newcode159 ui/file_manager/gallery/js/gallery.js:159: currentSelectedItem.lastAccessed = Date.now(); On 2014/07/28 07:51:21, mtomasz wrote: > ...
6 years, 4 months ago (2014-07-28 09:10:33 UTC) #11
mtomasz
https://codereview.chromium.org/420743002/diff/80001/ui/file_manager/gallery/js/gallery.js File ui/file_manager/gallery/js/gallery.js (right): https://codereview.chromium.org/420743002/diff/80001/ui/file_manager/gallery/js/gallery.js#newcode159 ui/file_manager/gallery/js/gallery.js:159: currentSelectedItem.lastAccessed = Date.now(); On 2014/07/28 09:10:33, hirono wrote: > ...
6 years, 4 months ago (2014-07-28 09:14:00 UTC) #12
hirono
https://codereview.chromium.org/420743002/diff/80001/ui/file_manager/gallery/js/gallery.js File ui/file_manager/gallery/js/gallery.js (right): https://codereview.chromium.org/420743002/diff/80001/ui/file_manager/gallery/js/gallery.js#newcode159 ui/file_manager/gallery/js/gallery.js:159: currentSelectedItem.lastAccessed = Date.now(); On 2014/07/28 09:14:00, mtomasz wrote: > ...
6 years, 4 months ago (2014-07-28 09:27:21 UTC) #13
mtomasz
lgtm with a nit. https://codereview.chromium.org/420743002/diff/100001/ui/file_manager/gallery/js/gallery_item.js File ui/file_manager/gallery/js/gallery_item.js (right): https://codereview.chromium.org/420743002/diff/100001/ui/file_manager/gallery/js/gallery_item.js#newcode129 ui/file_manager/gallery/js/gallery_item.js:129: return this.lastAccessed_ = Date.now(); nit: ...
6 years, 4 months ago (2014-07-28 10:07:43 UTC) #14
hirono
Thank you! https://codereview.chromium.org/420743002/diff/100001/ui/file_manager/gallery/js/gallery_item.js File ui/file_manager/gallery/js/gallery_item.js (right): https://codereview.chromium.org/420743002/diff/100001/ui/file_manager/gallery/js/gallery_item.js#newcode129 ui/file_manager/gallery/js/gallery_item.js:129: return this.lastAccessed_ = Date.now(); On 2014/07/28 10:07:43, ...
6 years, 4 months ago (2014-07-28 10:31:30 UTC) #15
hirono
The CQ bit was checked by hirono@chromium.org
6 years, 4 months ago (2014-07-28 10:31:33 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hirono@chromium.org/420743002/120001
6 years, 4 months ago (2014-07-28 10:32:18 UTC) #17
commit-bot: I haz the power
6 years, 4 months ago (2014-07-28 11:44:07 UTC) #18
Message was sent while issue was closed.
Change committed as 285890

Powered by Google App Engine
This is Rietveld 408576698