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

Issue 136503002: Allow frames to be free'd even for static images (Closed)

Created:
6 years, 11 months ago by fs
Modified:
6 years, 11 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Allow frames to be free'd even for static images r151702 added limit for pruning in ImageDecoded::clearCacheExceptFrame, which would disallow pruning single-frame/static images altogether. Allow such images to be pruned in their entirety by dropping the condition for <= 1 frames - the for-loop will handle the kNotFound case. (Also related is r156651, which re-added the destroyAll flag.) Modify the ImageFrameGeneratorTest.frameHasAlpha unittest to use frame 0 instead of frame 1, to avoid clearing frame 1 (MockImageDecoder maps all indices to frame 0.) R=hclam@chromium.org,pkasting@chromium.org,senorblanco@chromium.org BUG=302851 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165127

Patch Set 1 #

Total comments: 4

Patch Set 2 : Simplifications #

Patch Set 3 : Update ImageFrameGeneratorTest.frameHasAlpha unittest. #

Total comments: 4

Patch Set 4 : Prune excess h-space. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -9 lines) Patch
M Source/platform/graphics/ImageFrameGeneratorTest.cpp View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M Source/platform/image-decoders/ImageDecoder.cpp View 1 1 chunk +0 lines, -4 lines 0 comments Download
M Source/platform/image-decoders/ImageDecoderTest.cpp View 1 2 3 1 chunk +11 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
fs
6 years, 11 months ago (2014-01-13 11:28:43 UTC) #1
Stephen White
I'll happily rubberstamp this, but Peter or Alpha should weigh in on the correctness.
6 years, 11 months ago (2014-01-13 19:25:17 UTC) #2
Stephen White
I'll happily rubberstamp this, but Peter or Alpha should weigh in on the correctness.
6 years, 11 months ago (2014-01-13 19:25:17 UTC) #3
Peter Kasting
https://codereview.chromium.org/136503002/diff/1/Source/platform/image-decoders/ImageDecoder.cpp File Source/platform/image-decoders/ImageDecoder.cpp (right): https://codereview.chromium.org/136503002/diff/1/Source/platform/image-decoders/ImageDecoder.cpp#newcode140 Source/platform/image-decoders/ImageDecoder.cpp:140: return 0; Nit: Can't we just implement this by ...
6 years, 11 months ago (2014-01-14 00:46:18 UTC) #4
fs
https://codereview.chromium.org/136503002/diff/1/Source/platform/image-decoders/ImageDecoder.cpp File Source/platform/image-decoders/ImageDecoder.cpp (right): https://codereview.chromium.org/136503002/diff/1/Source/platform/image-decoders/ImageDecoder.cpp#newcode140 Source/platform/image-decoders/ImageDecoder.cpp:140: return 0; On 2014/01/14 00:46:18, Peter Kasting wrote: > ...
6 years, 11 months ago (2014-01-14 08:32:09 UTC) #5
fs
6 years, 11 months ago (2014-01-14 11:24:01 UTC) #6
Peter Kasting
LGTM https://codereview.chromium.org/136503002/diff/140001/Source/platform/graphics/ImageFrameGeneratorTest.cpp File Source/platform/graphics/ImageFrameGeneratorTest.cpp (right): https://codereview.chromium.org/136503002/diff/140001/Source/platform/graphics/ImageFrameGeneratorTest.cpp#newcode409 Source/platform/graphics/ImageFrameGeneratorTest.cpp:409: ImageDecodingStore::instance()->unlockCache(m_generator.get(), m_generator->decodeAndScale(fullSize(), 0)); Out of curiosity, why the ...
6 years, 11 months ago (2014-01-14 20:04:49 UTC) #7
fs
https://codereview.chromium.org/136503002/diff/140001/Source/platform/graphics/ImageFrameGeneratorTest.cpp File Source/platform/graphics/ImageFrameGeneratorTest.cpp (right): https://codereview.chromium.org/136503002/diff/140001/Source/platform/graphics/ImageFrameGeneratorTest.cpp#newcode409 Source/platform/graphics/ImageFrameGeneratorTest.cpp:409: ImageDecodingStore::instance()->unlockCache(m_generator.get(), m_generator->decodeAndScale(fullSize(), 0)); On 2014/01/14 20:04:49, Peter Kasting wrote: ...
6 years, 11 months ago (2014-01-15 09:48:24 UTC) #8
jochen (gone - plz use gerrit)
rslgtm
6 years, 11 months ago (2014-01-15 13:19:57 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fs@opera.com/136503002/210001
6 years, 11 months ago (2014-01-15 13:46:26 UTC) #10
commit-bot: I haz the power
Change committed as 165127
6 years, 11 months ago (2014-01-15 14:13:52 UTC) #11
fs
6 years, 9 months ago (2014-03-17 11:47:36 UTC) #12
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/201793002/ by fs@opera.com.

The reason for reverting is: May have caused issue 350653..

Powered by Google App Engine
This is Rietveld 408576698