Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2255)

Issue 6262043: AutoScratchTexture can now release its texture and it will return to the texture cache when freed (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by robertphillips
Modified:
12 years ago
Reviewers:
bungeman, bsalomon, reed1
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Total comments: 5

Patch Set 2 : Simplified given improvements to GrTexture #

Total comments: 7

Patch Set 3 : Addressed code review issues #

Total comments: 5

Patch Set 4 : Added method to encapsulate shared code in GrResourceCache #

Patch Set 5 : svn updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -19 lines) Patch
M include/core/SkBitmap.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M include/core/SkRefCnt.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M include/gpu/GrContext.h View 1 2 3 4 5 chunks +43 lines, -3 lines 0 comments Download
M include/gpu/GrTexture.h View 1 2 3 4 3 chunks +27 lines, -5 lines 0 comments Download
M include/gpu/GrTypes.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 2 3 4 2 chunks +18 lines, -0 lines 0 comments Download
M src/gpu/GrResourceCache.h View 1 2 3 4 3 chunks +22 lines, -4 lines 0 comments Download
M src/gpu/GrResourceCache.cpp View 1 2 3 4 4 chunks +27 lines, -6 lines 0 comments Download
M src/gpu/GrSoftwarePathRenderer.cpp View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M src/gpu/GrTexture.cpp View 1 2 3 4 2 chunks +29 lines, -0 lines 0 comments Download

Messages

Total messages: 11
robertphillips
http://codereview.appspot.com/6262043/diff/1/include/gpu/GrContext.h File include/gpu/GrContext.h (right): http://codereview.appspot.com/6262043/diff/1/include/gpu/GrContext.h#newcode214 include/gpu/GrContext.h:214: Could make this protected but that would require even ...
12 years, 1 month ago (2012-05-30 14:22:38 UTC) #1
reed1
adding ben to review the change to SkRefCnt.h
12 years, 1 month ago (2012-05-30 14:31:57 UTC) #2
robertphillips
Abandoned in favor of different approach
12 years, 1 month ago (2012-05-30 15:33:23 UTC) #3
robertphillips
PTAL - this version is a bit simpler then the prior one since we have ...
12 years ago (2012-06-13 20:59:31 UTC) #4
robertphillips
The improvements are mainly in GrContext's addExistingTextureToCache method which no longer takes a descriptor (since ...
12 years ago (2012-06-13 21:07:26 UTC) #5
bsalomon
I hope this is leading to eventually killing TextureCacheEntry and GrAutoScratchTexture (and hiding making GrResourceEntry ...
12 years ago (2012-06-13 21:49:52 UTC) #6
robertphillips
I believe we have the same vision for the texture cache system. I have started ...
12 years ago (2012-06-14 13:52:45 UTC) #7
bsalomon
Mostly LGTM, minor comments inline. http://codereview.appspot.com/6262043/diff/6003/src/gpu/GrResourceCache.cpp File src/gpu/GrResourceCache.cpp (right): http://codereview.appspot.com/6262043/diff/6003/src/gpu/GrResourceCache.cpp#newcode208 src/gpu/GrResourceCache.cpp:208: On 2012/06/14 13:52:45, robertphillips ...
12 years ago (2012-06-18 12:39:49 UTC) #8
robertphillips
http://codereview.appspot.com/6262043/diff/6003/src/gpu/GrResourceCache.cpp File src/gpu/GrResourceCache.cpp (right): http://codereview.appspot.com/6262043/diff/6003/src/gpu/GrResourceCache.cpp#newcode208 src/gpu/GrResourceCache.cpp:208: On 2012/06/18 12:39:49, bsalomon wrote: > On 2012/06/14 13:52:45, ...
12 years ago (2012-06-18 15:24:11 UTC) #9
bsalomon
LGTM
12 years ago (2012-06-18 15:30:15 UTC) #10
robertphillips
12 years ago (2012-06-22 12:42:07 UTC) #11
committed as r4301
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b