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

Issue 1077033004: cc: Make DisplayItemList::Append replay into an SkPicture (Closed)

Created:
5 years, 8 months ago by ajuma
Modified:
5 years, 8 months ago
CC:
cc-bugs_chromium.org, chrishtr, chromium-reviews, danakj+watch_chromium.org, jbauman+watch_chromium.org, kalyank, piman+watch_chromium.org, Stephen Chennney, sievers+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Make DisplayItemList::Append replay into an SkPicture This makes DisplayItemList no longer retain individual display items when caching into a picture is enabled, except when tracing is also enabled (so that per-item trace output can still be produced). Instead, only an SkPicture representation is retained. This avoids the memory cost of storing both the SkPicture representation (which is needed for raster performance) as well as the individual display items. BUG=476073 Committed: https://crrev.com/ec7c07e57bc5f91e3ba0bdeba8b6f534978615b0 Cr-Commit-Position: refs/heads/master@{#325292}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Rebased #

Total comments: 7

Patch Set 4 : Give DisplayItemList to PaintContentsToDisplayList #

Patch Set 5 : Remove no-longer-needed calls to DisplayItemList::Create #

Patch Set 6 : Keep a no-caching option #

Total comments: 2

Patch Set 7 : Add a PaintContentsToCachedDisplayList test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -130 lines) Patch
M cc/blink/web_compositor_support_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/blink/web_compositor_support_impl.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M cc/blink/web_content_layer_impl.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M cc/blink/web_content_layer_impl.cc View 1 2 3 1 chunk +4 lines, -5 lines 0 comments Download
M cc/blink/web_display_item_list_impl.h View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M cc/blink/web_display_item_list_impl.cc View 1 2 3 1 chunk +3 lines, -6 lines 0 comments Download
M cc/debug/rasterize_and_record_benchmark.cc View 1 2 3 4 5 1 chunk +5 lines, -2 lines 0 comments Download
M cc/layers/content_layer_client.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M cc/layers/picture_image_layer.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M cc/layers/picture_image_layer.cc View 1 2 3 4 1 chunk +3 lines, -5 lines 0 comments Download
M cc/layers/picture_image_layer_unittest.cc View 1 2 3 4 5 6 1 chunk +37 lines, -2 lines 0 comments Download
M cc/layers/picture_layer_unittest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M cc/resources/display_item.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M cc/resources/display_item.cc View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M cc/resources/display_item_list.h View 1 2 3 4 5 3 chunks +9 lines, -5 lines 0 comments Download
M cc/resources/display_item_list.cc View 1 2 3 4 5 4 chunks +43 lines, -20 lines 0 comments Download
M cc/resources/display_item_list_unittest.cc View 1 2 3 4 5 10 chunks +28 lines, -12 lines 0 comments Download
M cc/resources/display_list_recording_source.cc View 1 2 3 4 5 1 chunk +7 lines, -6 lines 0 comments Download
M cc/resources/drawing_display_item.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M cc/resources/drawing_display_item.cc View 1 2 3 4 5 1 chunk +0 lines, -11 lines 0 comments Download
M cc/test/fake_content_layer_client.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M cc/test/fake_content_layer_client.cc View 1 2 3 3 chunks +10 lines, -11 lines 0 comments Download
M cc/test/fake_display_list_recording_source.h View 1 2 3 4 5 1 chunk +5 lines, -3 lines 0 comments Download
M cc/test/solid_color_content_layer_client.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M cc/test/solid_color_content_layer_client.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_masks.cc View 1 2 3 3 chunks +6 lines, -6 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M ui/compositor/layer.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M ui/compositor/layer.cc View 1 2 3 4 2 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 20 (7 generated)
ajuma
https://codereview.chromium.org/1077033004/diff/40001/cc/blink/web_compositor_support_impl.h File cc/blink/web_compositor_support_impl.h (left): https://codereview.chromium.org/1077033004/diff/40001/cc/blink/web_compositor_support_impl.h#oldcode45 cc/blink/web_compositor_support_impl.h:45: virtual blink::WebDisplayItemList* createDisplayItemList(); This has already been removed from ...
5 years, 8 months ago (2015-04-14 18:02:33 UTC) #2
danakj
https://codereview.chromium.org/1077033004/diff/40001/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/1077033004/diff/40001/ui/compositor/layer.cc#newcode758 ui/compositor/layer.cc:758: scoped_refptr<cc::DisplayItemList> list = cc::DisplayItemList::Create(clip); This is weird. Maybe cc ...
5 years, 8 months ago (2015-04-14 20:49:35 UTC) #4
ajuma
https://codereview.chromium.org/1077033004/diff/40001/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/1077033004/diff/40001/ui/compositor/layer.cc#newcode758 ui/compositor/layer.cc:758: scoped_refptr<cc::DisplayItemList> list = cc::DisplayItemList::Create(clip); On 2015/04/14 20:49:34, danakj (away ...
5 years, 8 months ago (2015-04-14 21:51:27 UTC) #5
enne (OOO)
https://codereview.chromium.org/1077033004/diff/40001/cc/resources/display_item_list_unittest.cc File cc/resources/display_item_list_unittest.cc (left): https://codereview.chromium.org/1077033004/diff/40001/cc/resources/display_item_list_unittest.cc#oldcode225 cc/resources/display_item_list_unittest.cc:225: TEST(DisplayItemListTest, CompactingItems) { On 2015/04/14 18:02:32, ajuma wrote: > ...
5 years, 8 months ago (2015-04-14 22:55:35 UTC) #6
ajuma
https://codereview.chromium.org/1077033004/diff/40001/cc/resources/display_item_list_unittest.cc File cc/resources/display_item_list_unittest.cc (left): https://codereview.chromium.org/1077033004/diff/40001/cc/resources/display_item_list_unittest.cc#oldcode225 cc/resources/display_item_list_unittest.cc:225: TEST(DisplayItemListTest, CompactingItems) { On 2015/04/14 22:55:35, enne wrote: > ...
5 years, 8 months ago (2015-04-15 15:38:46 UTC) #7
enne (OOO)
lgtm, if you add a PaintContentsToCachedDisplayList test https://codereview.chromium.org/1077033004/diff/100001/cc/layers/picture_image_layer_unittest.cc File cc/layers/picture_image_layer_unittest.cc (right): https://codereview.chromium.org/1077033004/diff/100001/cc/layers/picture_image_layer_unittest.cc#newcode36 cc/layers/picture_image_layer_unittest.cc:36: bool use_cached_picture ...
5 years, 8 months ago (2015-04-15 16:43:19 UTC) #8
ajuma
https://codereview.chromium.org/1077033004/diff/100001/cc/layers/picture_image_layer_unittest.cc File cc/layers/picture_image_layer_unittest.cc (right): https://codereview.chromium.org/1077033004/diff/100001/cc/layers/picture_image_layer_unittest.cc#newcode36 cc/layers/picture_image_layer_unittest.cc:36: bool use_cached_picture = false; On 2015/04/15 16:43:19, enne wrote: ...
5 years, 8 months ago (2015-04-15 17:24:36 UTC) #9
ajuma
+vollick for ui/compositor
5 years, 8 months ago (2015-04-15 17:30:39 UTC) #14
Ian Vollick
On 2015/04/15 17:30:39, ajuma wrote: > +vollick for ui/compositor lgtm
5 years, 8 months ago (2015-04-15 19:11:38 UTC) #15
Ian Vollick
On 2015/04/15 17:30:39, ajuma wrote: > +vollick for ui/compositor lgtm
5 years, 8 months ago (2015-04-15 19:11:42 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1077033004/120001
5 years, 8 months ago (2015-04-15 19:13:31 UTC) #18
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 8 months ago (2015-04-15 20:21:36 UTC) #19
commit-bot: I haz the power
5 years, 8 months ago (2015-04-15 20:22:27 UTC) #20
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/ec7c07e57bc5f91e3ba0bdeba8b6f534978615b0
Cr-Commit-Position: refs/heads/master@{#325292}

Powered by Google App Engine
This is Rietveld 408576698