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

Issue 950363002: Notify resource caches when pixelref genID goes stale (Closed)

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

Description

Notify resource caches when pixelref genID goes stale patch from issue 954443002 at patchset 40001 (http://crrev.com/954443002#ps40001) BUG=skia: Committed: https://skia.googlesource.com/skia/+/7eeba2587760a0802fd2b90765b4fd0e5e895375

Patch Set 1 #

Patch Set 2 : use a sharedID for purging #

Total comments: 8

Patch Set 3 : split sharedID into 2 32bits, to unforce padding #

Patch Set 4 : address comments from #2 #

Patch Set 5 : add test for purgeSharedID #

Patch Set 6 : too much, magic bus #

Total comments: 15

Patch Set 7 : tell SkTArray that we can use memcpy #

Total comments: 2

Patch Set 8 : update dox #

Unified diffs Side-by-side diffs Delta from patch set Stats (+250 lines, -40 lines) Patch
M bench/ImageCacheBench.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkBitmapCache.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/core/SkBitmapCache.cpp View 1 11 chunks +49 lines, -20 lines 0 comments Download
M src/core/SkMaskCache.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/core/SkPictureShader.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkPixelRef.cpp View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M src/core/SkResourceCache.h View 1 2 3 4 5 6 7 10 chunks +29 lines, -6 lines 0 comments Download
M src/core/SkResourceCache.cpp View 1 2 3 4 5 7 9 chunks +51 lines, -6 lines 0 comments Download
M src/core/SkYUVPlanesCache.cpp View 1 2 chunks +4 lines, -2 lines 0 comments Download
M tests/ImageCacheTest.cpp View 1 2 3 4 3 chunks +38 lines, -2 lines 0 comments Download
M tests/SkResourceCacheTest.cpp View 1 2 3 4 5 6 7 3 chunks +64 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (10 generated)
reed2
using sharedID to simplify the purge. Will look at messagebus next.
5 years, 10 months ago (2015-02-24 15:55:38 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/950363002/20001
5 years, 10 months ago (2015-02-24 15:56:20 UTC) #4
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 10 months ago (2015-02-24 15:56:21 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu13.10-GCC4.8-Arm7-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu13.10-GCC4.8-Arm7-Debug-Android-Trybot/builds/2202)
5 years, 10 months ago (2015-02-24 15:58:23 UTC) #7
mtklein
https://codereview.chromium.org/950363002/diff/20001/src/core/SkPixelRef.cpp File src/core/SkPixelRef.cpp (right): https://codereview.chromium.org/950363002/diff/20001/src/core/SkPixelRef.cpp#newcode231 src/core/SkPixelRef.cpp:231: SkNotifyBitmapGenIDIsStale(fGenerationID); Just noticed.... this should probably go inside the ...
5 years, 10 months ago (2015-02-24 16:43:40 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/950363002/40001
5 years, 10 months ago (2015-02-24 16:44:14 UTC) #10
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 10 months ago (2015-02-24 16:44:15 UTC) #11
reed2
ptal, now w/ messagebus https://codereview.chromium.org/950363002/diff/20001/src/core/SkPixelRef.cpp File src/core/SkPixelRef.cpp (right): https://codereview.chromium.org/950363002/diff/20001/src/core/SkPixelRef.cpp#newcode231 src/core/SkPixelRef.cpp:231: SkNotifyBitmapGenIDIsStale(fGenerationID); On 2015/02/24 16:43:39, mtklein ...
5 years, 10 months ago (2015-02-24 17:44:52 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/950363002/100001
5 years, 10 months ago (2015-02-24 17:45:04 UTC) #15
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 10 months ago (2015-02-24 17:45:05 UTC) #16
reed2
florin, perhaps we can extend this (separate CL?) to also listen for pictureID "has been ...
5 years, 10 months ago (2015-02-24 17:46:35 UTC) #18
f(malita)
On 2015/02/24 17:46:35, reed2 wrote: > florin, perhaps we can extend this (separate CL?) to ...
5 years, 10 months ago (2015-02-24 20:31:37 UTC) #19
mtklein
Just one question on the test. Otherwise this LGTM. https://codereview.chromium.org/950363002/diff/100001/src/core/SkPixelRef.cpp File src/core/SkPixelRef.cpp (right): https://codereview.chromium.org/950363002/diff/100001/src/core/SkPixelRef.cpp#newcode225 src/core/SkPixelRef.cpp:225: ...
5 years, 10 months ago (2015-02-24 20:48:37 UTC) #21
f(malita)
https://codereview.chromium.org/950363002/diff/100001/src/core/SkPixelRef.cpp File src/core/SkPixelRef.cpp (right): https://codereview.chromium.org/950363002/diff/100001/src/core/SkPixelRef.cpp#newcode225 src/core/SkPixelRef.cpp:225: SkNotifyBitmapGenIDIsStale(fGenerationID); On 2015/02/24 20:48:37, mtklein wrote: > On 2015/02/24 ...
5 years, 10 months ago (2015-02-24 20:54:55 UTC) #22
reed2
https://codereview.chromium.org/950363002/diff/100001/src/core/SkPixelRef.cpp File src/core/SkPixelRef.cpp (right): https://codereview.chromium.org/950363002/diff/100001/src/core/SkPixelRef.cpp#newcode225 src/core/SkPixelRef.cpp:225: SkNotifyBitmapGenIDIsStale(fGenerationID); On 2015/02/24 20:31:36, f(malita) wrote: > IIUC, we're ...
5 years, 10 months ago (2015-02-24 20:56:29 UTC) #23
f(malita)
https://codereview.chromium.org/950363002/diff/100001/src/core/SkResourceCache.h File src/core/SkResourceCache.h (right): https://codereview.chromium.org/950363002/diff/100001/src/core/SkResourceCache.h#newcode128 src/core/SkResourceCache.h:128: * do not call the VisitorProc. If a match ...
5 years, 10 months ago (2015-02-24 20:59:39 UTC) #24
mtklein
https://codereview.chromium.org/950363002/diff/100001/src/core/SkPixelRef.cpp File src/core/SkPixelRef.cpp (right): https://codereview.chromium.org/950363002/diff/100001/src/core/SkPixelRef.cpp#newcode225 src/core/SkPixelRef.cpp:225: SkNotifyBitmapGenIDIsStale(fGenerationID); On 2015/02/24 20:56:28, reed2 wrote: > On 2015/02/24 ...
5 years, 10 months ago (2015-02-24 21:24:59 UTC) #25
reed2
Running through all gms (in DM) we basically only trigger the SkNotify call when we're ...
5 years, 10 months ago (2015-02-24 21:30:08 UTC) #26
mtklein
On 2015/02/24 21:30:08, reed2 wrote: > Running through all gms (in DM) we basically only ...
5 years, 10 months ago (2015-02-24 21:31:42 UTC) #27
reed2
addGenIDChangeListener() requires that I "new" a subclass each time I add something to the cache. ...
5 years, 10 months ago (2015-02-24 21:36:55 UTC) #28
mtklein
On 2015/02/24 21:36:55, reed2 wrote: > addGenIDChangeListener() requires that I "new" a subclass each time ...
5 years, 10 months ago (2015-02-24 21:40:13 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/950363002/130001
5 years, 10 months ago (2015-02-24 21:48:35 UTC) #32
commit-bot: I haz the power
5 years, 10 months ago (2015-02-24 21:54:28 UTC) #33
Message was sent while issue was closed.
Committed patchset #8 (id:130001) as
https://skia.googlesource.com/skia/+/7eeba2587760a0802fd2b90765b4fd0e5e895375

Powered by Google App Engine
This is Rietveld 408576698