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

Issue 1928403002: Enable generating SkImage with the same uniqueID in SkImageGenerator subclass (Closed)

Created:
4 years, 7 months ago by aleksandar.stojiljkovic
Modified:
4 years, 7 months ago
Reviewers:
bsalomon, reed2, reed1
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Enable generating SkImage with the same uniqueID in SkImageGenerator subclass Enable reusing uniqueID when instantiating SkImageGenerator subclasses enables using uniqueID in client code to cache generated bitmaps with no need to keep the reference to SkImageGenerator. This is a bug fix for out of memory cause in chromium and 100% CPU usage described in issue 165750#13: - cache uses SkImage::uniqueID() to cache decoded bitmaps. - every animation loop creates new SkImage instances. - after decoding, bitmap copies are added to cache, filling it up with duplicates of previous loops frames. BUG=165750 Blink patch that depends on this: https://codereview.chromium.org/1925533003/ "High CPU and increased memory usage fix for high-res (GIF, WEBP...) animations." Committed: https://skia.googlesource.com/skia/+/95167758572eca33008dce3e8bebe2a7656a06c9

Patch Set 1 #

Patch Set 2 : CL description #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -3 lines) Patch
M include/core/SkImageGenerator.h View 1 chunk +5 lines, -1 line 0 comments Download
M src/core/SkImageGenerator.cpp View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (12 generated)
aleksandar.stojiljkovic
4 years, 7 months ago (2016-04-29 17:26:56 UTC) #7
reed1
lgtm the CL description is good, but more interesting perhaps in a blink CL or ...
4 years, 7 months ago (2016-05-01 18:29:22 UTC) #9
aleksandar.stojiljkovic
On 2016/05/01 18:29:22, reed1 wrote: > lgtm > > the CL description is good, but ...
4 years, 7 months ago (2016-05-02 08:30:20 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1928403002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1928403002/20001
4 years, 7 months ago (2016-05-02 08:30:47 UTC) #15
commit-bot: I haz the power
4 years, 7 months ago (2016-05-02 08:43:43 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/95167758572eca33008dce3e8bebe2a7656a06c9

Powered by Google App Engine
This is Rietveld 408576698