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

Issue 10947017: Enable removing uploads to evicted textures from texture upload queues. (Closed)

Created:
8 years, 3 months ago by ccameron
Modified:
8 years, 3 months ago
Reviewers:
jamesr, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

Allow deletion of some (as opposed to all) textures on the impl thread. Enable removing uploads to evicted textures from texture upload queues. Track whether not a CCPrioritizedTexture::Backing has been evicted in the structure itself. Purge texture upload queues of evicted backings instead of clearing the entire queue. Added CCTextureUpdateControllerTest.ClearUploadsToEvictedResources to test the new eviction logic. BUG=134750 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157662

Patch Set 1 #

Total comments: 6

Patch Set 2 : Incorporate review feedback #

Total comments: 1

Patch Set 3 : Incorporate review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -27 lines) Patch
M cc/CCLayerTreeHost.h View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/CCLayerTreeHost.cpp View 1 chunk +7 lines, -0 lines 0 comments Download
M cc/CCPrioritizedTexture.h View 1 3 chunks +10 lines, -1 line 0 comments Download
M cc/CCPrioritizedTexture.cpp View 1 2 chunks +30 lines, -1 line 0 comments Download
M cc/CCPrioritizedTextureManager.h View 1 chunk +2 lines, -1 line 0 comments Download
M cc/CCPrioritizedTextureManager.cpp View 1 2 3 chunks +6 lines, -8 lines 0 comments Download
M cc/CCTextureUpdateController.h View 1 chunk +3 lines, -0 lines 0 comments Download
M cc/CCTextureUpdateController.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M cc/CCTextureUpdateControllerTest.cpp View 1 2 4 chunks +58 lines, -6 lines 0 comments Download
M cc/CCTextureUpdateQueue.h View 2 chunks +2 lines, -1 line 0 comments Download
M cc/CCTextureUpdateQueue.cpp View 1 chunk +14 lines, -3 lines 0 comments Download
M cc/CCThreadProxy.cpp View 2 chunks +10 lines, -6 lines 0 comments Download
M cc/LayerTextureUpdater.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
ccameron
8 years, 3 months ago (2012-09-18 23:57:21 UTC) #1
jamesr
https://codereview.chromium.org/10947017/diff/1/cc/CCPrioritizedTexture.cpp File cc/CCPrioritizedTexture.cpp (right): https://codereview.chromium.org/10947017/diff/1/cc/CCPrioritizedTexture.cpp#newcode139 cc/CCPrioritizedTexture.cpp:139: void CCPrioritizedTexture::Backing::deleteResource(CCResourceProvider* resourceProvider) could we at least in debug ...
8 years, 3 months ago (2012-09-19 18:56:37 UTC) #2
ccameron
Thanks! https://codereview.chromium.org/10947017/diff/1/cc/CCPrioritizedTexture.cpp File cc/CCPrioritizedTexture.cpp (right): https://codereview.chromium.org/10947017/diff/1/cc/CCPrioritizedTexture.cpp#newcode139 cc/CCPrioritizedTexture.cpp:139: void CCPrioritizedTexture::Backing::deleteResource(CCResourceProvider* resourceProvider) On 2012/09/19 18:56:37, jamesr wrote: ...
8 years, 3 months ago (2012-09-19 20:52:02 UTC) #3
jamesr
OK, that makes sense. Could you leave a comment in/around Backing::deleteResource to explain what's going ...
8 years, 3 months ago (2012-09-19 20:54:37 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/10947017/12001
8 years, 3 months ago (2012-09-19 21:41:05 UTC) #5
commit-bot: I haz the power
8 years, 3 months ago (2012-09-19 23:59:02 UTC) #6
Change committed as 157662

Powered by Google App Engine
This is Rietveld 408576698