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

Issue 257093002: Add size change notifications to GrResourceCache (Closed)

Created:
6 years, 7 months ago by Chris Dalton
Modified:
6 years, 7 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Adds a mechanism for GrCacheable objects to notify the resource cache when their size has changed. GrResourceCacheEntry now holds a reference to the cache, and a cached value of the resource's most recent size. Also utilizes this new functionality for mipmaps, and adds a test for changing resource sizes. Committed: http://code.google.com/p/skia/source/detail?r=14576

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Total comments: 20

Patch Set 4 : #

Total comments: 3

Patch Set 5 : #

Patch Set 6 : (oops, forgot to remove the SK_OVERRIDE from GrTexture.cpp) #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -25 lines) Patch
M include/gpu/GrCacheable.h View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M include/gpu/GrTexture.h View 1 2 3 3 chunks +11 lines, -11 lines 0 comments Download
M src/gpu/GrResourceCache.h View 1 2 3 3 chunks +20 lines, -1 line 0 comments Download
M src/gpu/GrResourceCache.cpp View 1 2 3 4 5 6 10 chunks +63 lines, -10 lines 0 comments Download
M src/gpu/GrTexture.cpp View 1 2 3 4 5 1 chunk +27 lines, -0 lines 0 comments Download
M tests/ResourceCacheTest.cpp View 1 2 3 4 5 chunks +106 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Chris Dalton
6 years, 7 months ago (2014-04-28 20:55:09 UTC) #1
bsalomon
Some minor style/naming comments. Otherwise looking good to me but I'd like Rob to look ...
6 years, 7 months ago (2014-04-28 21:08:33 UTC) #2
Chris Dalton
Set 3 should address all the comments thus far https://codereview.chromium.org/257093002/diff/20001/include/gpu/GrCacheable.h File include/gpu/GrCacheable.h (right): https://codereview.chromium.org/257093002/diff/20001/include/gpu/GrCacheable.h#newcode49 include/gpu/GrCacheable.h:49: ...
6 years, 7 months ago (2014-04-28 22:30:57 UTC) #3
robertphillips
https://codereview.chromium.org/257093002/diff/40001/include/gpu/GrCacheable.h File include/gpu/GrCacheable.h (right): https://codereview.chromium.org/257093002/diff/40001/include/gpu/GrCacheable.h#newcode48 include/gpu/GrCacheable.h:48: // This entry point should be called whenever gpuMemorySize ...
6 years, 7 months ago (2014-04-29 13:46:25 UTC) #4
Chris Dalton
I forgot, is it possoble to update the commit message with another patchset? https://codereview.chromium.org/257093002/diff/40001/include/gpu/GrTexture.h File ...
6 years, 7 months ago (2014-04-30 16:47:38 UTC) #5
robertphillips
You can always edit the commit message separate. I would edit it first and then ...
6 years, 7 months ago (2014-04-30 17:31:49 UTC) #6
bsalomon
On 2014/04/30 16:47:38, Chris Dalton wrote: > I forgot, is it possoble to update the ...
6 years, 7 months ago (2014-04-30 17:54:37 UTC) #7
Chris Dalton
I think that's everything https://codereview.chromium.org/257093002/diff/60001/include/gpu/GrTexture.h File include/gpu/GrTexture.h (right): https://codereview.chromium.org/257093002/diff/60001/include/gpu/GrTexture.h#newcode158 include/gpu/GrTexture.h:158: kAllocated_MipMapsStatus, NotAllocated/Allocated/Valid is what I ...
6 years, 7 months ago (2014-04-30 18:43:29 UTC) #8
robertphillips
lgtm & a question https://codereview.chromium.org/257093002/diff/60001/tests/ResourceCacheTest.cpp File tests/ResourceCacheTest.cpp (right): https://codereview.chromium.org/257093002/diff/60001/tests/ResourceCacheTest.cpp#newcode205 tests/ResourceCacheTest.cpp:205: TestResource* a = new TestResource(); ...
6 years, 7 months ago (2014-04-30 19:06:53 UTC) #9
Chris Dalton
https://codereview.chromium.org/257093002/diff/60001/tests/ResourceCacheTest.cpp File tests/ResourceCacheTest.cpp (right): https://codereview.chromium.org/257093002/diff/60001/tests/ResourceCacheTest.cpp#newcode205 tests/ResourceCacheTest.cpp:205: TestResource* a = new TestResource(); On 2014/04/30 19:06:54, robertphillips ...
6 years, 7 months ago (2014-04-30 19:08:31 UTC) #10
Chris Dalton
The CQ bit was checked by cdalton@nvidia.com
6 years, 7 months ago (2014-05-05 16:54:58 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/cdalton@nvidia.com/257093002/120001
6 years, 7 months ago (2014-05-05 16:55:07 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-05 16:55:12 UTC) #13
commit-bot: I haz the power
Presubmit check for 257093002-120001 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 7 months ago (2014-05-05 16:55:12 UTC) #14
bsalomon
lgtm
6 years, 7 months ago (2014-05-05 17:33:53 UTC) #15
Chris Dalton
The CQ bit was checked by cdalton@nvidia.com
6 years, 7 months ago (2014-05-05 19:02:53 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/cdalton@nvidia.com/257093002/120001
6 years, 7 months ago (2014-05-05 19:03:11 UTC) #17
commit-bot: I haz the power
6 years, 7 months ago (2014-05-05 19:09:28 UTC) #18
Message was sent while issue was closed.
Change committed as 14576

Powered by Google App Engine
This is Rietveld 408576698