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

Issue 23757024: cc: Speed up CleanUpImageDecodeTasks a bit. (Closed)

Created:
7 years, 3 months ago by vmpstr
Modified:
7 years, 3 months ago
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

cc: Speed up CleanUpImageDecodeTasks a bit. This patch keeps the state of used layers and updates it in register and unregister tile. This eliminates the need for CleanUpImageDecodeTasks. This also provides a fix to the memory limits in the perftest, so by comparison the performance should drop significantly. However, this is only because the perftests are now properly testing the full ManageTiles code path. The patch to remove CleanUpImageDecodeTasks actually improves performance by about 15%. BUG=283777 R=reveman@chromium.org,tomhudson@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221638

Patch Set 1 #

Total comments: 10

Patch Set 2 : #

Total comments: 3

Patch Set 3 : review #

Total comments: 2

Patch Set 4 : review #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -30 lines) Patch
M cc/resources/tile_manager.h View 1 2 3 chunks +6 lines, -1 line 0 comments Download
M cc/resources/tile_manager.cc View 1 2 3 4 4 chunks +9 lines, -28 lines 0 comments Download
M cc/resources/tile_manager_perftest.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M cc/test/fake_tile_manager.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cc/test/fake_tile_manager.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
vmpstr
Please take a look.
7 years, 3 months ago (2013-09-03 23:51:04 UTC) #1
reveman
https://codereview.chromium.org/23757024/diff/1/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/23757024/diff/1/cc/resources/tile_manager.cc#newcode628 cc/resources/tile_manager.cc:628: void TileManager::CleanUpUnusedImageDecodeTasks() { can we clean up this function ...
7 years, 3 months ago (2013-09-04 18:18:52 UTC) #2
tomhudson
If we can't see results better than the early-out on cc_perftests, can we find webpages ...
7 years, 3 months ago (2013-09-04 18:38:34 UTC) #3
enne (OOO)
https://codereview.chromium.org/23757024/diff/1/cc/resources/tile_manager.h File cc/resources/tile_manager.h (right): https://codereview.chromium.org/23757024/diff/1/cc/resources/tile_manager.h#newcode179 cc/resources/tile_manager.h:179: typedef base::hash_map<int, int> LayerCountMap; On 2013/09/04 18:38:34, tomhudson wrote: ...
7 years, 3 months ago (2013-09-04 18:45:23 UTC) #4
vmpstr
So it turns out the perftests were not really testing the second half of manage ...
7 years, 3 months ago (2013-09-04 19:36:40 UTC) #5
reveman
https://codereview.chromium.org/23757024/diff/9001/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/23757024/diff/9001/cc/resources/tile_manager.cc#newcode647 cc/resources/tile_manager.cc:647: used_layer_counts_.erase(*it); can we move these two lines to UnregisterTile ...
7 years, 3 months ago (2013-09-04 21:25:17 UTC) #6
vmpstr
PTAL. https://codereview.chromium.org/23757024/diff/9001/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/23757024/diff/9001/cc/resources/tile_manager.cc#newcode647 cc/resources/tile_manager.cc:647: used_layer_counts_.erase(*it); On 2013/09/04 21:25:17, David Reveman wrote: > ...
7 years, 3 months ago (2013-09-04 22:03:49 UTC) #7
reveman
https://codereview.chromium.org/23757024/diff/13001/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/23757024/diff/13001/cc/resources/tile_manager.cc#newcode205 cc/resources/tile_manager.cc:205: int& count = used_layer_counts_[tile->layer_id()]; I think it would be ...
7 years, 3 months ago (2013-09-05 00:29:27 UTC) #8
tomhudson
https://codereview.chromium.org/23757024/diff/13001/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/23757024/diff/13001/cc/resources/tile_manager.cc#newcode205 cc/resources/tile_manager.cc:205: int& count = used_layer_counts_[tile->layer_id()]; On 2013/09/05 00:29:27, David Reveman ...
7 years, 3 months ago (2013-09-05 07:32:23 UTC) #9
reveman
On 2013/09/05 07:32:23, tomhudson wrote: > https://codereview.chromium.org/23757024/diff/13001/cc/resources/tile_manager.cc > File cc/resources/tile_manager.cc (right): > > https://codereview.chromium.org/23757024/diff/13001/cc/resources/tile_manager.cc#newcode205 > ...
7 years, 3 months ago (2013-09-05 16:31:48 UTC) #10
vmpstr
PTAL.
7 years, 3 months ago (2013-09-05 18:34:43 UTC) #11
reveman
lgtm. I think this is a nice cleanup even if it doesn't provide a performance ...
7 years, 3 months ago (2013-09-05 19:04:25 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vmpstr@chromium.org/23757024/20001
7 years, 3 months ago (2013-09-05 19:11:10 UTC) #13
commit-bot: I haz the power
7 years, 3 months ago (2013-09-06 08:09:38 UTC) #14
Message was sent while issue was closed.
Change committed as 221638

Powered by Google App Engine
This is Rietveld 408576698