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

Issue 1352883004: Purge cached resources on SkImage destruction. (Closed)

Created:
5 years, 3 months ago by f(malita)
Modified:
5 years, 3 months ago
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : avoid spurious notifications #

Patch Set 3 : + test #

Patch Set 4 : fix test #

Patch Set 5 : codestyle #

Total comments: 18

Patch Set 6 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -21 lines) Patch
M gm/image_pict.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download
M src/core/SkBitmapProvider.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkImageCacherator.h View 1 3 chunks +10 lines, -3 lines 0 comments Download
M src/core/SkImageCacherator.cpp View 1 2 3 4 6 chunks +15 lines, -5 lines 0 comments Download
M src/image/SkImage.cpp View 1 2 3 4 5 2 chunks +17 lines, -0 lines 0 comments Download
M src/image/SkImage_Base.h View 3 chunks +12 lines, -8 lines 0 comments Download
M src/image/SkImage_Generator.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M tests/SkResourceCacheTest.cpp View 1 2 3 4 5 2 chunks +68 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (13 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1352883004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1352883004/1
5 years, 3 months ago (2015-09-17 21:28:25 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1352883004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1352883004/40001
5 years, 3 months ago (2015-09-17 23:01:50 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86-Debug-Trybot/builds/3303) Build-Win-MSVC-x86_64-Debug-Trybot on ...
5 years, 3 months ago (2015-09-17 23:04:05 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1352883004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1352883004/60001
5 years, 3 months ago (2015-09-17 23:11:13 UTC) #8
f(malita)
Updated, PTAL.
5 years, 3 months ago (2015-09-17 23:15:12 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-18 03:37:58 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1352883004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1352883004/80001
5 years, 3 months ago (2015-09-18 13:19:11 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-18 13:25:03 UTC) #16
tomhudson
https://codereview.chromium.org/1352883004/diff/80001/src/core/SkBitmapProvider.cpp File src/core/SkBitmapProvider.cpp (left): https://codereview.chromium.org/1352883004/diff/80001/src/core/SkBitmapProvider.cpp#oldcode65 src/core/SkBitmapProvider.cpp:65: // TODO Looks like maybe this mattered but we ...
5 years, 3 months ago (2015-09-18 13:30:54 UTC) #18
f(malita)
https://codereview.chromium.org/1352883004/diff/80001/src/core/SkBitmapProvider.cpp File src/core/SkBitmapProvider.cpp (right): https://codereview.chromium.org/1352883004/diff/80001/src/core/SkBitmapProvider.cpp#newcode65 src/core/SkBitmapProvider.cpp:65: as_IB(fImage)->notifyAddedToCache(); On 2015/09/18 13:30:54, tomhudson wrote: > We're comfortable ...
5 years, 3 months ago (2015-09-18 13:44:24 UTC) #19
mtklein
https://codereview.chromium.org/1352883004/diff/80001/tests/SkResourceCacheTest.cpp File tests/SkResourceCacheTest.cpp (right): https://codereview.chromium.org/1352883004/diff/80001/tests/SkResourceCacheTest.cpp#newcode231 tests/SkResourceCacheTest.cpp:231: // to mitigate this risk. On 2015/09/18 13:44:24, f(malita) ...
5 years, 3 months ago (2015-09-18 13:56:15 UTC) #20
mtklein
https://codereview.chromium.org/1352883004/diff/80001/src/core/SkBitmapProvider.cpp File src/core/SkBitmapProvider.cpp (left): https://codereview.chromium.org/1352883004/diff/80001/src/core/SkBitmapProvider.cpp#oldcode65 src/core/SkBitmapProvider.cpp:65: // TODO On 2015/09/18 13:30:54, tomhudson wrote: > Looks ...
5 years, 3 months ago (2015-09-18 14:32:36 UTC) #21
reed1
I think we can drop the destructor on SkImage (since it inherits from SkRefCnt), but ...
5 years, 3 months ago (2015-09-18 14:32:53 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1352883004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1352883004/100001
5 years, 3 months ago (2015-09-18 15:00:25 UTC) #24
f(malita)
https://codereview.chromium.org/1352883004/diff/80001/src/core/SkImageCacherator.h File src/core/SkImageCacherator.h (right): https://codereview.chromium.org/1352883004/diff/80001/src/core/SkImageCacherator.h#newcode37 src/core/SkImageCacherator.h:37: bool lockAsBitmap(SkBitmap*, const SkImage* client); On 2015/09/18 14:32:36, mtklein ...
5 years, 3 months ago (2015-09-18 15:00:40 UTC) #25
mtklein
gotcha, lgtm
5 years, 3 months ago (2015-09-18 15:03:30 UTC) #26
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-18 15:06:20 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1352883004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1352883004/100001
5 years, 3 months ago (2015-09-18 15:06:57 UTC) #31
commit-bot: I haz the power
5 years, 3 months ago (2015-09-18 15:07:36 UTC) #32
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://skia.googlesource.com/skia/+/3b0d532df72db806c255cad98538fcbb4d9678a8

Powered by Google App Engine
This is Rietveld 408576698