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

Issue 1032873002: Add mechanism to proactively purge old resources in GrResourceCache. (Closed)

Created:
5 years, 9 months ago by bsalomon
Modified:
5 years, 8 months ago
Reviewers:
robertphillips
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Add mechanism to proactively purge old resources in GrResourceCache. This change leaves the feature turned off by default. Committed: https://skia.googlesource.com/skia/+/3f324321cdd8fde7976d958e2888a1ec4e657e35

Patch Set 1 #

Patch Set 2 : more #

Patch Set 3 : fix and don't track flushes if array is too big #

Patch Set 4 : change default #

Patch Set 5 : comment/whitespace cleanup #

Patch Set 6 : small comment fix #

Patch Set 7 : rebase to tot #

Total comments: 8

Patch Set 8 : Address comments #

Patch Set 9 : Add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+307 lines, -51 lines) Patch
M include/gpu/GrGpuResource.h View 1 2 3 4 5 7 chunks +30 lines, -10 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrGpuResource.cpp View 1 2 1 chunk +29 lines, -4 lines 0 comments Download
M src/gpu/GrResourceCache.h View 1 2 3 4 5 6 7 8 8 chunks +55 lines, -17 lines 0 comments Download
M src/gpu/GrResourceCache.cpp View 1 2 3 4 5 6 7 10 chunks +106 lines, -20 lines 0 comments Download
M tests/ResourceCacheTest.cpp View 1 2 3 4 3 chunks +86 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
bsalomon
5 years, 8 months ago (2015-03-30 21:05:33 UTC) #2
robertphillips
First pass. It looks good to me but I would like to take a second ...
5 years, 8 months ago (2015-04-06 19:34:51 UTC) #3
bsalomon
https://codereview.chromium.org/1032873002/diff/120001/src/gpu/GrResourceCache.cpp File src/gpu/GrResourceCache.cpp (right): https://codereview.chromium.org/1032873002/diff/120001/src/gpu/GrResourceCache.cpp#newcode395 src/gpu/GrResourceCache.cpp:395: this->validate(); On 2015/04/06 19:34:51, robertphillips wrote: > delete? Done. ...
5 years, 8 months ago (2015-04-07 20:33:46 UTC) #5
robertphillips
lgtm. It seems like we should have some documentation somewhere that summarizes the entire system: ...
5 years, 8 months ago (2015-04-08 14:50:26 UTC) #6
bsalomon
On 2015/04/08 14:50:26, robertphillips wrote: > lgtm. It seems like we should have some documentation ...
5 years, 8 months ago (2015-04-08 17:54:57 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1032873002/180001
5 years, 8 months ago (2015-04-08 17:55:26 UTC) #10
commit-bot: I haz the power
5 years, 8 months ago (2015-04-08 18:02:04 UTC) #11
Message was sent while issue was closed.
Committed patchset #9 (id:180001) as
https://skia.googlesource.com/skia/+/3f324321cdd8fde7976d958e2888a1ec4e657e35

Powered by Google App Engine
This is Rietveld 408576698