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

Issue 688423004: Remove multi-frame image decoder when the image is completely decoded (Closed)

Created:
6 years, 1 month ago by Zhenyu Shan
Modified:
6 years, 1 month ago
CC:
blink-reviews, krit, Rik, jbroman, mkwst+moarreviews_chromium.org, danakj, pdr+graphicswatchlist_chromium.org, Stephen Chennney, rwlbuis, nduca
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Remove multi-frame image decoder when the image is completely decoded Count decoded frames in ImageFrameGenerator, and remove remove multi-frame image decoders when the image is completely decoded This saves memory on pages with a lot of multi-frame images. data and discussion please see https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/KZ8EDtEZ9-c BUG=429614 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185311

Patch Set 1 #

Total comments: 7

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Patch Set 4 : Add a test #

Patch Set 5 : fix DeferredImageDecoderTest crash #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -16 lines) Patch
M Source/platform/graphics/DeferredImageDecoderTest.cpp View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
M Source/platform/graphics/ImageFrameGenerator.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/platform/graphics/ImageFrameGenerator.cpp View 1 2 4 chunks +28 lines, -4 lines 0 comments Download
M Source/platform/graphics/ImageFrameGeneratorTest.cpp View 1 2 3 6 chunks +40 lines, -5 lines 0 comments Download
M Source/platform/graphics/test/MockImageDecoder.h View 1 2 3 3 chunks +13 lines, -6 lines 0 comments Download

Messages

Total messages: 28 (6 generated)
Zhenyu Shan
Please take a look, thanks!
6 years, 1 month ago (2014-10-31 06:57:01 UTC) #2
tomhudson
On 2014/10/31 06:57:01, Zhenyu Shan wrote: > Please take a look, thanks! Please file a ...
6 years, 1 month ago (2014-10-31 12:25:12 UTC) #3
PhistucK
6 years, 1 month ago (2014-10-31 17:03:44 UTC) #5
Alpha Left Google
https://codereview.chromium.org/688423004/diff/1/Source/platform/graphics/ImageFrameGenerator.cpp File Source/platform/graphics/ImageFrameGenerator.cpp (right): https://codereview.chromium.org/688423004/diff/1/Source/platform/graphics/ImageFrameGenerator.cpp#newcode93 Source/platform/graphics/ImageFrameGenerator.cpp:93: , m_framesCount(0) No need to have this variable. https://codereview.chromium.org/688423004/diff/1/Source/platform/graphics/ImageFrameGenerator.cpp#newcode239 ...
6 years, 1 month ago (2014-10-31 17:17:49 UTC) #6
Zhenyu Shan
https://codereview.chromium.org/688423004/diff/1/Source/platform/graphics/ImageFrameGenerator.cpp File Source/platform/graphics/ImageFrameGenerator.cpp (right): https://codereview.chromium.org/688423004/diff/1/Source/platform/graphics/ImageFrameGenerator.cpp#newcode296 Source/platform/graphics/ImageFrameGenerator.cpp:296: if (allDataReceived) { On 2014/10/31 17:17:48, Alpha wrote: > ...
6 years, 1 month ago (2014-11-03 08:19:17 UTC) #7
Alpha Left Google
https://codereview.chromium.org/688423004/diff/1/Source/platform/graphics/ImageFrameGenerator.cpp File Source/platform/graphics/ImageFrameGenerator.cpp (right): https://codereview.chromium.org/688423004/diff/1/Source/platform/graphics/ImageFrameGenerator.cpp#newcode296 Source/platform/graphics/ImageFrameGenerator.cpp:296: if (allDataReceived) { On 2014/11/03 08:19:17, Zhenyu Shan wrote: ...
6 years, 1 month ago (2014-11-05 00:31:00 UTC) #8
Zhenyu Shan
https://codereview.chromium.org/688423004/diff/20001/Source/platform/graphics/ImageFrameGenerator.cpp File Source/platform/graphics/ImageFrameGenerator.cpp (right): https://codereview.chromium.org/688423004/diff/20001/Source/platform/graphics/ImageFrameGenerator.cpp#newcode230 Source/platform/graphics/ImageFrameGenerator.cpp:230: // the decoder. The exception is multi-frame decoder which ...
6 years, 1 month ago (2014-11-05 06:49:09 UTC) #9
Alpha Left Google
Thanks. I think this is really close. Do you mind adding a small unit test ...
6 years, 1 month ago (2014-11-05 07:13:09 UTC) #10
Alpha Left Google
This behavior of deleting the decoder after all frames are decoded is good for the ...
6 years, 1 month ago (2014-11-05 17:18:32 UTC) #11
Zhenyu Shan
On 2014/11/05 07:13:09, Alpha wrote: > Thanks. I think this is really close. Do you ...
6 years, 1 month ago (2014-11-06 09:27:55 UTC) #12
Zhenyu Shan
On 2014/11/05 17:18:32, Alpha wrote: > This behavior of deleting the decoder after all frames ...
6 years, 1 month ago (2014-11-06 09:30:03 UTC) #13
Zhenyu Shan
Ping for your review. Thanks!
6 years, 1 month ago (2014-11-11 02:36:43 UTC) #14
Alpha Left Google
On 2014/11/11 02:36:43, Zhenyu Shan wrote: > Ping for your review. Thanks! Change LGTM.
6 years, 1 month ago (2014-11-12 18:51:03 UTC) #15
Alpha Left Google
On 2014/11/06 09:27:55, Zhenyu Shan wrote: > On 2014/11/05 07:13:09, Alpha wrote: > > Thanks. ...
6 years, 1 month ago (2014-11-12 18:54:00 UTC) #16
Alpha Left Google
On 2014/11/06 09:30:03, Zhenyu Shan wrote: > On 2014/11/05 17:18:32, Alpha wrote: > > This ...
6 years, 1 month ago (2014-11-12 19:00:26 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/688423004/60001
6 years, 1 month ago (2014-11-13 02:24:22 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/19649)
6 years, 1 month ago (2014-11-13 02:33:45 UTC) #21
Zhenyu Shan
Fixed crash in DeferredImageDecoder tests & added file owners. Please take a look, Thanks!
6 years, 1 month ago (2014-11-13 05:24:10 UTC) #23
Stephen White
rsLGTM. As Nat mentioned in the blink-dev thread, it would be really great to have ...
6 years, 1 month ago (2014-11-13 14:59:42 UTC) #24
Stephen White
LGTM
6 years, 1 month ago (2014-11-13 14:59:55 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/688423004/80001
6 years, 1 month ago (2014-11-13 18:12:42 UTC) #27
commit-bot: I haz the power
6 years, 1 month ago (2014-11-13 19:07:36 UTC) #28
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as 185311

Powered by Google App Engine
This is Rietveld 408576698