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

Issue 1045953002: Implement DisplayList GatherPixelRefs (Closed)

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

Description

Implement DisplayList GatherPixelRefs Take advantage of DisplayList playing back to generate SkPicture, and use existing functions that gathers pixel ref from a single SkPicture. R=ajuma, enne, vmpstr BUG=440468, 472590 Committed: https://crrev.com/3d69b19b57904847ffec31b0f5d4f3568b5c6f35 Cr-Commit-Position: refs/heads/master@{#323152} Committed: https://crrev.com/0a2945cbb2595623db241228dab4089c5376f75b Cr-Commit-Position: refs/heads/master@{#323631}

Patch Set 1 #

Total comments: 2

Patch Set 2 : add guard for GatherPixelRefs #

Total comments: 2

Patch Set 3 : address nits #

Total comments: 3

Patch Set 4 : rebase #

Patch Set 5 : TYPED_TEST #

Patch Set 6 : rebase #

Patch Set 7 : fix crash w/ unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+888 lines, -440 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 3 chunks +3 lines, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 4 3 chunks +3 lines, -0 lines 0 comments Download
M cc/layers/picture_layer.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M cc/output/renderer_pixeltest.cc View 1 2 3 4 10 chunks +10 lines, -10 lines 0 comments Download
M cc/resources/display_item_list.h View 3 chunks +6 lines, -0 lines 0 comments Download
M cc/resources/display_item_list.cc View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M cc/resources/display_list_raster_source.cc View 1 chunk +10 lines, -1 line 0 comments Download
M cc/resources/display_list_recording_source.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M cc/resources/display_list_recording_source.cc View 1 3 chunks +5 lines, -1 line 0 comments Download
A cc/resources/display_list_recording_source_unittest.cc View 1 2 3 4 5 6 1 chunk +165 lines, -0 lines 0 comments Download
M cc/resources/picture_pile_impl_unittest.cc View 1 2 3 4 5 6 11 chunks +11 lines, -379 lines 0 comments Download
M cc/resources/pixel_ref_map.h View 3 chunks +5 lines, -1 line 0 comments Download
M cc/resources/pixel_ref_map.cc View 1 2 3 4 5 6 3 chunks +52 lines, -38 lines 0 comments Download
A cc/resources/recording_source_unittest.cc View 1 2 3 4 5 6 1 chunk +470 lines, -0 lines 0 comments Download
M cc/test/fake_content_layer_client.h View 2 chunks +18 lines, -4 lines 0 comments Download
M cc/test/fake_content_layer_client.cc View 2 chunks +22 lines, -0 lines 0 comments Download
A cc/test/fake_display_list_recording_source.h View 1 2 3 4 5 6 1 chunk +89 lines, -0 lines 0 comments Download
M cc/test/fake_picture_pile.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/test/fake_picture_pile.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (4 generated)
weiliangc
Use SkPicture from DisplayList to gather pixel refs.
5 years, 8 months ago (2015-03-30 20:20:22 UTC) #1
ajuma
This looks great. I just have one nit: https://codereview.chromium.org/1045953002/diff/1/cc/resources/display_list_recording_source.cc File cc/resources/display_list_recording_source.cc (right): https://codereview.chromium.org/1045953002/diff/1/cc/resources/display_list_recording_source.cc#newcode119 cc/resources/display_list_recording_source.cc:119: display_list_->GatherPixelRefs(grid_cell_size_); ...
5 years, 8 months ago (2015-03-30 20:46:38 UTC) #2
weiliangc
Addressed review comments. https://codereview.chromium.org/1045953002/diff/1/cc/resources/display_list_recording_source.cc File cc/resources/display_list_recording_source.cc (right): https://codereview.chromium.org/1045953002/diff/1/cc/resources/display_list_recording_source.cc#newcode119 cc/resources/display_list_recording_source.cc:119: display_list_->GatherPixelRefs(grid_cell_size_); On 2015/03/30 at 20:46:37, ajuma ...
5 years, 8 months ago (2015-03-31 14:04:11 UTC) #3
ajuma
Thanks, lgtm % {vmpstr, enne}
5 years, 8 months ago (2015-03-31 14:23:56 UTC) #4
vmpstr
lgtm with nits https://codereview.chromium.org/1045953002/diff/20001/cc/resources/display_item_list.cc File cc/resources/display_item_list.cc (right): https://codereview.chromium.org/1045953002/diff/20001/cc/resources/display_item_list.cc#newcode149 cc/resources/display_item_list.cc:149: DCHECK(pixel_refs_->empty()); I don't think this is ...
5 years, 8 months ago (2015-03-31 17:10:31 UTC) #5
enne (OOO)
https://codereview.chromium.org/1045953002/diff/40001/cc/resources/display_list_recording_source_unittest.cc File cc/resources/display_list_recording_source_unittest.cc (right): https://codereview.chromium.org/1045953002/diff/40001/cc/resources/display_list_recording_source_unittest.cc#newcode89 cc/resources/display_list_recording_source_unittest.cc:89: TEST(DisplayListRecordingSourceTest, EmptyPixelRefs) { This looks suspiciously familiar to PicturePileImplTest.PixelRefIteratorEmpty. ...
5 years, 8 months ago (2015-03-31 18:50:49 UTC) #6
weiliangc
https://codereview.chromium.org/1045953002/diff/40001/cc/resources/display_list_recording_source_unittest.cc File cc/resources/display_list_recording_source_unittest.cc (right): https://codereview.chromium.org/1045953002/diff/40001/cc/resources/display_list_recording_source_unittest.cc#newcode89 cc/resources/display_list_recording_source_unittest.cc:89: TEST(DisplayListRecordingSourceTest, EmptyPixelRefs) { On 2015/03/31 at 18:50:49, enne wrote: ...
5 years, 8 months ago (2015-03-31 19:16:42 UTC) #7
enne (OOO)
https://codereview.chromium.org/1045953002/diff/40001/cc/resources/display_list_recording_source_unittest.cc File cc/resources/display_list_recording_source_unittest.cc (right): https://codereview.chromium.org/1045953002/diff/40001/cc/resources/display_list_recording_source_unittest.cc#newcode89 cc/resources/display_list_recording_source_unittest.cc:89: TEST(DisplayListRecordingSourceTest, EmptyPixelRefs) { On 2015/03/31 19:16:42, weiliangc wrote: > ...
5 years, 8 months ago (2015-03-31 19:42:26 UTC) #8
weiliangc
Made unittest into TYPED_TEST - add file for FakeDisplayListRecordingSource - changed so both fake recording ...
5 years, 8 months ago (2015-03-31 21:46:10 UTC) #9
enne (OOO)
lgtm, thanks! Also, I meant to say this before, but I like how this patch ...
5 years, 8 months ago (2015-03-31 21:48:54 UTC) #10
weiliangc
On 2015/03/31 at 21:48:54, enne wrote: > lgtm, thanks! > > Also, I meant to ...
5 years, 8 months ago (2015-03-31 21:50:46 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1045953002/80001
5 years, 8 months ago (2015-03-31 23:21:16 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 8 months ago (2015-04-01 00:11:48 UTC) #15
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/3d69b19b57904847ffec31b0f5d4f3568b5c6f35 Cr-Commit-Position: refs/heads/master@{#323152}
5 years, 8 months ago (2015-04-01 00:13:09 UTC) #16
weiliangc
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/1047413003/ by weiliangc@chromium.org. ...
5 years, 8 months ago (2015-04-01 20:35:24 UTC) #17
weiliangc
Cause of crash: Picture owns a PixelRefMap, DisplayList owns a scoped_ptr<PixelRefMap>. If we don't gather ...
5 years, 8 months ago (2015-04-02 19:29:38 UTC) #18
weiliangc
This crash is not caught by unittest because in unittest we always gather pixel refs. ...
5 years, 8 months ago (2015-04-02 19:48:41 UTC) #19
enne (OOO)
lgtm
5 years, 8 months ago (2015-04-02 19:53:12 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1045953002/120001
5 years, 8 months ago (2015-04-02 19:57:50 UTC) #23
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 8 months ago (2015-04-03 05:29:53 UTC) #24
commit-bot: I haz the power
5 years, 8 months ago (2015-04-03 20:32:35 UTC) #25
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/0a2945cbb2595623db241228dab4089c5376f75b
Cr-Commit-Position: refs/heads/master@{#323631}

Powered by Google App Engine
This is Rietveld 408576698