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

Issue 1608143002: support animated GIF (Closed)

Created:
4 years, 11 months ago by ryoh
Modified:
4 years, 11 months ago
Reviewers:
hirono, yawano
CC:
chromium-reviews, rginda+watch_chromium.org, mtomasz+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

support animated GIF - removes "device resolution" canvas. - allows to use both img element and canvas element to show image. This allows to show animated GIF. - If you need a ImageData of a image, convertes from img to canvas. - This patch speeds up to load large jpg image (@ daisy spring) - loading 14MB 12000x12000 JPG file: 8.62 -> 7.37sec it crashed sometimes in the unpatched revision. - loading 53MB, 8,180x11,950 PNG file: 6.89 -> 6.81sec - it's time consuming to exec pixel operation. - ex) making histgrams to check whether AutoColor filter is applicative. - We should consider to use GLSL to process pixels. BUG=446203 TEST=manually Committed: https://crrev.com/1f78b825f0b429ecbadafd524f1a5cefc01aae4d Cr-Commit-Position: refs/heads/master@{#371191}

Patch Set 1 #

Total comments: 28

Patch Set 2 : fix except anime issues #

Patch Set 3 : refactor undo/redo to animate correctly #

Patch Set 4 : fix nits #

Total comments: 13

Patch Set 5 : . #

Patch Set 6 : ensure that fade attr. is false & do not animate #

Total comments: 4

Patch Set 7 : fix nits and a selector query in tests #

Patch Set 8 : fix test #

Patch Set 9 : fix test #

Total comments: 5

Patch Set 10 : rename width/height to imageWidth/imageHeight #

Patch Set 11 : fix a regression bug that the original image is not removed then the filter applied. #

Total comments: 16

Patch Set 12 : fix in response to the reviews #

Total comments: 4

Patch Set 13 : set "fade" attribute. #

Patch Set 14 : add assert to pass closure compiler #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -259 lines) Patch
M ui/file_manager/file_manager/background/js/test_util_base.js View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -1 line 0 comments Download
M ui/file_manager/gallery/css/gallery.css View 2 chunks +1 line, -12 lines 0 comments Download
M ui/file_manager/gallery/js/image_editor/commands.js View 1 2 3 4 12 chunks +51 lines, -69 lines 0 comments Download
M ui/file_manager/gallery/js/image_editor/filter.js View 1 1 chunk +6 lines, -6 lines 0 comments Download
M ui/file_manager/gallery/js/image_editor/image_adjust.js View 1 1 chunk +5 lines, -2 lines 0 comments Download
M ui/file_manager/gallery/js/image_editor/image_editor.js View 2 chunks +4 lines, -4 lines 0 comments Download
M ui/file_manager/gallery/js/image_editor/image_util.js View 1 2 3 4 5 6 9 chunks +34 lines, -20 lines 0 comments Download
M ui/file_manager/gallery/js/image_editor/image_view.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 16 chunks +88 lines, -128 lines 0 comments Download
M ui/file_manager/gallery/js/slide_mode.js View 1 2 chunks +3 lines, -3 lines 0 comments Download
M ui/file_manager/integration_tests/gallery/open_image_files.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -8 lines 0 comments Download
M ui/file_manager/integration_tests/remote_call.js View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -6 lines 0 comments Download

Messages

Total messages: 41 (13 generated)
ryoh
Hi, here is the gif-anime patch. Could you take a look?
4 years, 11 months ago (2016-01-20 05:04:04 UTC) #4
hirono
https://codereview.chromium.org/1608143002/diff/1/ui/file_manager/gallery/js/image_editor/image_util.js File ui/file_manager/gallery/js/image_editor/image_util.js (right): https://codereview.chromium.org/1608143002/diff/1/ui/file_manager/gallery/js/image_editor/image_util.js#newcode623 ui/file_manager/gallery/js/image_editor/image_util.js:623: try { Why is this try closure needed? https://codereview.chromium.org/1608143002/diff/1/ui/file_manager/gallery/js/image_editor/image_view.js ...
4 years, 11 months ago (2016-01-20 06:07:10 UTC) #5
yawano
https://codereview.chromium.org/1608143002/diff/1/ui/file_manager/gallery/js/image_editor/commands.js File ui/file_manager/gallery/js/image_editor/commands.js (right): https://codereview.chromium.org/1608143002/diff/1/ui/file_manager/gallery/js/image_editor/commands.js#newcode12 ui/file_manager/gallery/js/image_editor/commands.js:12: * The canvas with the original image. small nit: ...
4 years, 11 months ago (2016-01-20 06:23:09 UTC) #6
yawano
https://codereview.chromium.org/1608143002/diff/1/ui/file_manager/gallery/js/image_editor/image_util.js File ui/file_manager/gallery/js/image_editor/image_util.js (right): https://codereview.chromium.org/1608143002/diff/1/ui/file_manager/gallery/js/image_editor/image_util.js#newcode494 ui/file_manager/gallery/js/image_editor/image_util.js:494: image, opt_transform); nit: this line also fits in one ...
4 years, 11 months ago (2016-01-20 06:41:34 UTC) #7
ryoh
Hi, I updated the patch in response to your reviews and refactored undo/redo queue to ...
4 years, 11 months ago (2016-01-21 03:19:55 UTC) #8
yawano
Thank you! https://codereview.chromium.org/1608143002/diff/60001/ui/file_manager/gallery/js/image_editor/commands.js File ui/file_manager/gallery/js/image_editor/commands.js (right): https://codereview.chromium.org/1608143002/diff/60001/ui/file_manager/gallery/js/image_editor/commands.js#newcode26 ui/file_manager/gallery/js/image_editor/commands.js:26: nit: remove blank line from line 26. ...
4 years, 11 months ago (2016-01-21 05:14:38 UTC) #9
ryoh
Hi, could you take another look? https://codereview.chromium.org/1608143002/diff/60001/ui/file_manager/gallery/js/image_editor/commands.js File ui/file_manager/gallery/js/image_editor/commands.js (right): https://codereview.chromium.org/1608143002/diff/60001/ui/file_manager/gallery/js/image_editor/commands.js#newcode26 ui/file_manager/gallery/js/image_editor/commands.js:26: On 2016/01/21 05:14:38, ...
4 years, 11 months ago (2016-01-21 07:28:53 UTC) #10
yawano
Thank you! Please try to open an image which is larger than window size. You ...
4 years, 11 months ago (2016-01-21 08:08:14 UTC) #11
ryoh
Hi, thanks for the reviews. Update: - Fixed a probrem that you can't see any ...
4 years, 11 months ago (2016-01-21 08:42:32 UTC) #12
yawano
lgtm. Please also wait l-g-t-m from hirono@. nit: Is the last item in the description ...
4 years, 11 months ago (2016-01-21 09:11:32 UTC) #13
hirono
It looks GalleryBrowserTest is broken. Could you take a look? https://codereview.chromium.org/1608143002/diff/100001/ui/file_manager/gallery/js/image_editor/image_view.js File ui/file_manager/gallery/js/image_editor/image_view.js (right): https://codereview.chromium.org/1608143002/diff/100001/ui/file_manager/gallery/js/image_editor/image_view.js#newcode586 ...
4 years, 11 months ago (2016-01-21 10:12:16 UTC) #14
ryoh
Hi, thanks for your reviews. I fixed the tests and all tests are green now. ...
4 years, 11 months ago (2016-01-22 01:15:55 UTC) #15
yawano
https://codereview.chromium.org/1608143002/diff/160001/ui/file_manager/file_manager/background/js/test_util_base.js File ui/file_manager/file_manager/background/js/test_util_base.js (right): https://codereview.chromium.org/1608143002/diff/160001/ui/file_manager/file_manager/background/js/test_util_base.js#newcode43 ui/file_manager/file_manager/background/js/test_util_base.js:43: width: Number(element.width), Why don't you simply use renderedWidth? I ...
4 years, 11 months ago (2016-01-22 05:03:12 UTC) #16
ryoh
Thank you for your reviews! I will reply to you. Please take a look. https://codereview.chromium.org/1608143002/diff/160001/ui/file_manager/file_manager/background/js/test_util_base.js ...
4 years, 11 months ago (2016-01-22 05:20:49 UTC) #17
yawano
Thank you! https://codereview.chromium.org/1608143002/diff/160001/ui/file_manager/file_manager/background/js/test_util_base.js File ui/file_manager/file_manager/background/js/test_util_base.js (right): https://codereview.chromium.org/1608143002/diff/160001/ui/file_manager/file_manager/background/js/test_util_base.js#newcode43 ui/file_manager/file_manager/background/js/test_util_base.js:43: width: Number(element.width), I get it. Thank you! ...
4 years, 11 months ago (2016-01-22 05:52:04 UTC) #18
ryoh
Thank you for the review. I renamed width/height to imageWidth/imageHeight, and fix a regression bug ...
4 years, 11 months ago (2016-01-22 06:46:03 UTC) #19
yawano
lgtm with nits. Thank you! https://codereview.chromium.org/1608143002/diff/160001/ui/file_manager/file_manager/background/js/test_util_base.js File ui/file_manager/file_manager/background/js/test_util_base.js (right): https://codereview.chromium.org/1608143002/diff/160001/ui/file_manager/file_manager/background/js/test_util_base.js#newcode43 ui/file_manager/file_manager/background/js/test_util_base.js:43: width: Number(element.width), nit: 0 ...
4 years, 11 months ago (2016-01-22 07:02:49 UTC) #20
hirono
Sorry for late! https://codereview.chromium.org/1608143002/diff/200001/ui/file_manager/gallery/js/image_editor/image_view.js File ui/file_manager/gallery/js/image_editor/image_view.js (right): https://codereview.chromium.org/1608143002/diff/200001/ui/file_manager/gallery/js/image_editor/image_view.js#newcode263 ui/file_manager/gallery/js/image_editor/image_view.js:263: this.replace(canvas); Maybe replaceContent is enough here ...
4 years, 11 months ago (2016-01-22 07:24:18 UTC) #21
ryoh
Hi, thank you for your reviews! I updated the patch in response to your review. ...
4 years, 11 months ago (2016-01-25 03:29:26 UTC) #22
hirono
lgtm after resolving comments. Thanks! https://codereview.chromium.org/1608143002/diff/220001/ui/file_manager/gallery/js/image_editor/image_view.js File ui/file_manager/gallery/js/image_editor/image_view.js (right): https://codereview.chromium.org/1608143002/diff/220001/ui/file_manager/gallery/js/image_editor/image_view.js#newcode628 ui/file_manager/gallery/js/image_editor/image_view.js:628: this.container_.insertBefore(oldContentImage,this.container_.firstChild); nit: Please insert ...
4 years, 11 months ago (2016-01-25 04:21:32 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1608143002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1608143002/240001
4 years, 11 months ago (2016-01-25 05:09:34 UTC) #26
ryoh
Hi, thanks for your review. I updated the CL and sent to the Commit Queue. ...
4 years, 11 months ago (2016-01-25 05:18:45 UTC) #27
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 11 months ago (2016-01-25 05:40:41 UTC) #29
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/1f78b825f0b429ecbadafd524f1a5cefc01aae4d Cr-Commit-Position: refs/heads/master@{#371191}
4 years, 11 months ago (2016-01-25 05:42:23 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1608143002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1608143002/260001
4 years, 11 months ago (2016-01-25 06:04:59 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/149649) mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 11 months ago (2016-01-25 06:07:03 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1608143002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1608143002/260001
4 years, 11 months ago (2016-01-25 06:18:04 UTC) #39
commit-bot: I haz the power
4 years, 11 months ago (2016-01-25 06:20:30 UTC) #41
Try jobs failed on following builders:
  android_chromium_gn_compile_rel on tryserver.chromium.android (JOB_FAILED,
https://build.chromium.org/p/tryserver.chromium.android/builders/android_chro...)
  android_compile_dbg on tryserver.chromium.android (JOB_FAILED,
https://build.chromium.org/p/tryserver.chromium.android/builders/android_comp...)
  linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED,
http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
  linux_chromium_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED,
http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
  mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED,
http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_r...)
  mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED,
http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)

Powered by Google App Engine
This is Rietveld 408576698