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

Issue 825263005: notify resource caches when pixelref genID goes stale (Closed)

Created:
5 years, 11 months ago by reed1
Modified:
5 years, 10 months ago
Reviewers:
bsalomon, mtklein
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 BUG=skia: Committed: https://skia.googlesource.com/skia/+/4675819b9dbb3ad71ec851776e5de26d342f29fe

Patch Set 1 #

Total comments: 7

Patch Set 2 : create new function-ptr signature for purging #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : add test for purge notifications #

Unified diffs Side-by-side diffs Delta from patch set Stats (+230 lines, -23 lines) Patch
M src/core/SkBitmapCache.h View 1 chunk +10 lines, -0 lines 0 comments Download
M src/core/SkBitmapCache.cpp View 1 2 3 10 chunks +66 lines, -18 lines 0 comments Download
M src/core/SkPixelRef.cpp View 1 3 chunks +11 lines, -0 lines 0 comments Download
M src/core/SkResourceCache.h View 1 2 3 7 chunks +35 lines, -3 lines 0 comments Download
M src/core/SkResourceCache.cpp View 1 2 3 4 chunks +37 lines, -2 lines 0 comments Download
M tests/SkResourceCacheTest.cpp View 1 2 3 3 chunks +71 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
reed1
WIP -- want to sync up next week to discuss
5 years, 11 months ago (2015-01-07 21:14:32 UTC) #2
mtklein
This seems like a good plan to me. (Introducing SkMessageBus into the mix seems unnecessary ...
5 years, 11 months ago (2015-01-07 21:52:43 UTC) #3
reed1
https://codereview.chromium.org/825263005/diff/1/src/core/SkPixelRef.cpp File src/core/SkPixelRef.cpp (right): https://codereview.chromium.org/825263005/diff/1/src/core/SkPixelRef.cpp#newcode240 src/core/SkPixelRef.cpp:240: SkBitmapCache::NotifyGenIDStale(fGenerationID); On 2015/01/07 21:52:43, mtklein wrote: > Feels weird ...
5 years, 11 months ago (2015-01-07 22:20:42 UTC) #4
mtklein
https://codereview.chromium.org/825263005/diff/1/src/core/SkResourceCache.h File src/core/SkResourceCache.h (right): https://codereview.chromium.org/825263005/diff/1/src/core/SkResourceCache.h#newcode131 src/core/SkResourceCache.h:131: * true : Rec is valid > I agree ...
5 years, 11 months ago (2015-01-08 14:11:12 UTC) #5
reed1
https://codereview.chromium.org/825263005/diff/1/src/core/SkPixelRef.cpp File src/core/SkPixelRef.cpp (right): https://codereview.chromium.org/825263005/diff/1/src/core/SkPixelRef.cpp#newcode240 src/core/SkPixelRef.cpp:240: SkBitmapCache::NotifyGenIDStale(fGenerationID); On 2015/01/07 22:20:41, reed1 wrote: > On 2015/01/07 ...
5 years, 10 months ago (2015-02-18 17:30:33 UTC) #6
mtklein
https://codereview.chromium.org/825263005/diff/40001/src/core/SkResourceCache.cpp File src/core/SkResourceCache.cpp (right): https://codereview.chromium.org/825263005/diff/40001/src/core/SkResourceCache.cpp#newcode306 src/core/SkResourceCache.cpp:306: break; Remind me, what does this break out of? ...
5 years, 10 months ago (2015-02-18 18:49:48 UTC) #7
reed1
https://codereview.chromium.org/825263005/diff/40001/src/core/SkResourceCache.cpp File src/core/SkResourceCache.cpp (right): https://codereview.chromium.org/825263005/diff/40001/src/core/SkResourceCache.cpp#newcode306 src/core/SkResourceCache.cpp:306: break; On 2015/02/18 18:49:48, mtklein wrote: > Remind me, ...
5 years, 10 months ago (2015-02-18 19:30:40 UTC) #8
mtklein
lgtm
5 years, 10 months ago (2015-02-18 19:32:48 UTC) #9
reed1
now with unittest
5 years, 10 months ago (2015-02-19 15:23:18 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/825263005/60001
5 years, 10 months ago (2015-02-19 15:24:06 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://skia.googlesource.com/skia/+/4675819b9dbb3ad71ec851776e5de26d342f29fe
5 years, 10 months ago (2015-02-19 16:22:58 UTC) #14
mtklein
5 years, 10 months ago (2015-02-19 16:53:02 UTC) #15
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/936423002/ by mtklein@google.com.

The reason for reverting is: Crazy failures.

http://build.chromium.org/p/client.skia/builders/Test-Mac10.8-MacMini4.1-GeFo....

Powered by Google App Engine
This is Rietveld 408576698