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

Issue 1226503006: cc: More consistent reasoning about display list memory usage. (Closed)

Created:
5 years, 5 months ago by jbroman
Modified:
5 years, 5 months ago
Reviewers:
enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: More consistent reasoning about display list memory usage. This refines "picture memory usage" methods to be more consistent. In particular: * DisplayItem::external_memory_usage_ replaces picture_memory_usage_, and only refers to memory owned by the display item but not allocated within it (since that memory can already be accounted for by measuring the ListContainer). * DisplayItemList separately tracks the memory allocated within items_, external memory usage due to those items, and memory usage due to the cached SkPicture, when one is used. These are added to produce total memory usage. BUG=481083 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/b0caed2bedfc19825ba34024c4678adf351d561c Cr-Commit-Position: refs/heads/master@{#337911}

Patch Set 1 #

Patch Set 2 : capacity unit test #

Total comments: 2

Patch Set 3 : merge with master #

Patch Set 4 : DCHECK_EQ #

Patch Set 5 : adjust DisplayItemListTest.ApproximateMemoryUsage #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -49 lines) Patch
M cc/base/list_container.h View 2 chunks +3 lines, -0 lines 0 comments Download
M cc/base/list_container.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M cc/base/list_container_unittest.cc View 1 2 chunks +34 lines, -0 lines 0 comments Download
M cc/base/sidecar_list_container.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/debug/rasterize_and_record_benchmark.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M cc/playback/clip_display_item.cc View 2 chunks +5 lines, -6 lines 0 comments Download
M cc/playback/clip_path_display_item.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M cc/playback/compositing_display_item.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M cc/playback/display_item.h View 2 chunks +7 lines, -5 lines 0 comments Download
M cc/playback/display_item_list.h View 2 chunks +7 lines, -2 lines 0 comments Download
M cc/playback/display_item_list.cc View 4 chunks +18 lines, -5 lines 0 comments Download
M cc/playback/display_item_list_unittest.cc View 1 2 3 4 4 chunks +7 lines, -7 lines 0 comments Download
M cc/playback/display_list_raster_source.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/playback/filter_display_item.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M cc/playback/float_clip_display_item.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M cc/playback/transform_display_item.cc View 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
jbroman
If this looks good, my intention is for Blink to assume a similar methodology, plumb ...
5 years, 5 months ago (2015-07-07 20:15:37 UTC) #2
enne (OOO)
lgtm https://codereview.chromium.org/1226503006/diff/20001/cc/debug/rasterize_and_record_benchmark.cc File cc/debug/rasterize_and_record_benchmark.cc (right): https://codereview.chromium.org/1226503006/diff/20001/cc/debug/rasterize_and_record_benchmark.cc#newcode226 cc/debug/rasterize_and_record_benchmark.cc:226: DCHECK(memory_used == display_list->ApproximateMemoryUsage()); DCHECK_EQ?
5 years, 5 months ago (2015-07-07 21:12:37 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1226503006/60001
5 years, 5 months ago (2015-07-07 21:19:38 UTC) #6
jbroman
https://codereview.chromium.org/1226503006/diff/20001/cc/debug/rasterize_and_record_benchmark.cc File cc/debug/rasterize_and_record_benchmark.cc (right): https://codereview.chromium.org/1226503006/diff/20001/cc/debug/rasterize_and_record_benchmark.cc#newcode226 cc/debug/rasterize_and_record_benchmark.cc:226: DCHECK(memory_used == display_list->ApproximateMemoryUsage()); On 2015/07/07 21:12:37, enne wrote: > ...
5 years, 5 months ago (2015-07-07 21:39:03 UTC) #7
jbroman
On some platforms, this broke the (admittedly brittle) way that the test was avoiding double-counting. ...
5 years, 5 months ago (2015-07-07 23:08:40 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/77621)
5 years, 5 months ago (2015-07-07 23:54:33 UTC) #10
jbroman
PTAL at DisplayItemListTest.ApproximateMemoryUsage. The crux of the issue is that it depends on implementation details ...
5 years, 5 months ago (2015-07-08 19:26:54 UTC) #14
enne (OOO)
Yeah, this test. :C This seems pretty reasonable, though! lgtm
5 years, 5 months ago (2015-07-08 20:20:15 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1226503006/140001
5 years, 5 months ago (2015-07-08 20:22:12 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:140001)
5 years, 5 months ago (2015-07-08 21:27:18 UTC) #18
commit-bot: I haz the power
5 years, 5 months ago (2015-07-08 21:28:12 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b0caed2bedfc19825ba34024c4678adf351d561c
Cr-Commit-Position: refs/heads/master@{#337911}

Powered by Google App Engine
This is Rietveld 408576698