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

Issue 1423653005: Further plumb visual rect into cc:DisplayItemList. (Closed)

Created:
5 years, 1 month ago by wkorman
Modified:
5 years ago
Reviewers:
danakj, enne (OOO), vmpstr, sky
CC:
bondd+autofillwatch_chromium.org, cc-bugs_chromium.org, chrishtr, chromium-reviews, danakj+watch_chromium.org, estade+watch_chromium.org, jbauman+watch_chromium.org, jdonnelly+autofillwatch_chromium.org, kalyank, piman+watch_chromium.org, rouslan+autofill_chromium.org, sievers+watch_chromium.org, James Su, tdanderson+views_chromium.org, tfarina, Ian Vollick
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Further plumb visual rect into cc:DisplayItemList. Save rects off in cc:DisplayItemList and clear them out in Finalize(), with TODO(vmpstr) to actually use them to build the RTree. Pass along the Blink visual rect obtained via work in http://crrev.com/1426963002. Add logic to UI compositor display item list callsites to pass along a relevant visual rect. Note the Blink side is still passing dummy visual rects. BUG=529938 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/b969018fe0b7eb4b71478199249e58c85fa26847 Cr-Commit-Position: refs/heads/master@{#361612}

Patch Set 1 #

Patch Set 2 : Fix cc unit tests. #

Total comments: 28

Patch Set 3 : Integrate feedback. #

Patch Set 4 : Address more danakj@ feedback. #

Total comments: 3

Patch Set 5 : De-static const rect in test. #

Total comments: 13

Patch Set 6 : More feedback integration. #

Total comments: 4

Patch Set 7 : Add bug comments. #

Patch Set 8 : Rename layer_bounds to bounds_in_layer. Stop caching bounds in PaintCache. #

Total comments: 2

Patch Set 9 : Add comment per danakj. #

Total comments: 2

Patch Set 10 : Sync to head. #

Patch Set 11 : Sync to head. Add view unit test. Include visual rect in display item trace output. #

Patch Set 12 : Document size param in recorders. #

Total comments: 4

Patch Set 13 : Address test feedback. #

Patch Set 14 : Fix clip recorder params in omnibox. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+475 lines, -146 lines) Patch
M cc/blink/web_display_item_list_impl.cc View 13 chunks +26 lines, -14 lines 0 comments Download
M cc/layers/picture_image_layer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M cc/playback/clip_display_item.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -2 lines 0 comments Download
M cc/playback/clip_display_item.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -4 lines 0 comments Download
M cc/playback/clip_path_display_item.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -2 lines 0 comments Download
M cc/playback/clip_path_display_item.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -3 lines 0 comments Download
M cc/playback/compositing_display_item.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -2 lines 0 comments Download
M cc/playback/compositing_display_item.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -2 lines 0 comments Download
M cc/playback/display_item.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M cc/playback/display_item_list.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +10 lines, -1 line 0 comments Download
M cc/playback/display_item_list.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +19 lines, -3 lines 0 comments Download
M cc/playback/display_item_list_unittest.cc View 1 2 3 4 5 6 7 26 chunks +41 lines, -34 lines 0 comments Download
M cc/playback/display_item_proto_factory.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M cc/playback/display_item_proto_factory.cc View 1 2 3 4 5 6 1 chunk +15 lines, -13 lines 0 comments Download
M cc/playback/drawing_display_item.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M cc/playback/drawing_display_item.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -0 lines 0 comments Download
M cc/playback/filter_display_item.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -2 lines 0 comments Download
M cc/playback/filter_display_item.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -3 lines 0 comments Download
M cc/playback/float_clip_display_item.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -2 lines 0 comments Download
M cc/playback/float_clip_display_item.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -3 lines 0 comments Download
M cc/playback/transform_display_item.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -2 lines 0 comments Download
M cc/playback/transform_display_item.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -3 lines 0 comments Download
M cc/test/fake_content_layer_client.cc View 1 2 3 4 5 6 7 8 9 5 chunks +11 lines, -7 lines 0 comments Download
M cc/test/solid_color_content_layer_client.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_pixeltest_masks.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_tiles.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/infobar_view.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M ui/compositor/clip_recorder.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +6 lines, -2 lines 0 comments Download
M ui/compositor/clip_recorder.cc View 1 2 3 4 5 6 7 8 9 3 chunks +19 lines, -8 lines 0 comments Download
M ui/compositor/compositing_recorder.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +11 lines, -2 lines 0 comments Download
M ui/compositor/compositing_recorder.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -4 lines 0 comments Download
M ui/compositor/paint_cache.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M ui/compositor/paint_cache.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -2 lines 0 comments Download
M ui/compositor/paint_context.h View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -0 lines 0 comments Download
M ui/compositor/paint_context.cc View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M ui/compositor/paint_recorder.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M ui/compositor/paint_recorder.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
M ui/compositor/transform_recorder.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +7 lines, -1 line 0 comments Download
M ui/compositor/transform_recorder.cc View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -5 lines 0 comments Download
M ui/views/view.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +9 lines, -3 lines 0 comments Download
M ui/views/view_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +158 lines, -0 lines 0 comments Download

Messages

Total messages: 54 (15 generated)
wkorman
Seeking initial feedback. Still reviewing visual rects in one or two places to make sure ...
5 years, 1 month ago (2015-11-04 01:03:32 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1423653005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1423653005/1
5 years, 1 month ago (2015-11-04 01:13:09 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/153087) android_compile_dbg on ...
5 years, 1 month ago (2015-11-04 01:41:47 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1423653005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1423653005/20001
5 years, 1 month ago (2015-11-04 19:03:51 UTC) #9
commit-bot: I haz the power
Dry run: 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/130342)
5 years, 1 month ago (2015-11-04 19:42:36 UTC) #11
danakj
The cc parts make sense, couple small comments, will review the ui stuff shortly. https://codereview.chromium.org/1423653005/diff/20001/cc/playback/display_item_list.cc ...
5 years, 1 month ago (2015-11-05 23:54:27 UTC) #12
danakj
https://codereview.chromium.org/1423653005/diff/20001/ui/compositor/clip_transform_recorder.cc File ui/compositor/clip_transform_recorder.cc (right): https://codereview.chromium.org/1423653005/diff/20001/ui/compositor/clip_transform_recorder.cc#newcode45 ui/compositor/clip_transform_recorder.cc:45: gfx::Rect visual_rect = clip_rect + context_.offset_; use the same ...
5 years, 1 month ago (2015-11-06 00:32:45 UTC) #13
wkorman
https://codereview.chromium.org/1423653005/diff/20001/ui/compositor/clip_transform_recorder.cc File ui/compositor/clip_transform_recorder.cc (right): https://codereview.chromium.org/1423653005/diff/20001/ui/compositor/clip_transform_recorder.cc#newcode45 ui/compositor/clip_transform_recorder.cc:45: gfx::Rect visual_rect = clip_rect + context_.offset_; On 2015/11/06 at ...
5 years, 1 month ago (2015-11-16 19:01:03 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1423653005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1423653005/40001
5 years, 1 month ago (2015-11-16 20:23:59 UTC) #16
commit-bot: I haz the power
Dry run: 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/135620)
5 years, 1 month ago (2015-11-16 21:05:14 UTC) #18
wkorman
https://codereview.chromium.org/1423653005/diff/20001/cc/playback/display_item_list.cc File cc/playback/display_item_list.cc (right): https://codereview.chromium.org/1423653005/diff/20001/cc/playback/display_item_list.cc#newcode204 cc/playback/display_item_list.cc:204: // TODO(vmpstr): Build and make use of an RTree ...
5 years, 1 month ago (2015-11-17 01:47:23 UTC) #19
wkorman
5 years, 1 month ago (2015-11-17 20:36:00 UTC) #21
vmpstr
I remember there was some talk about changing the name from visual_rect to something else? ...
5 years, 1 month ago (2015-11-17 21:15:14 UTC) #22
wkorman
On 2015/11/17 at 21:15:14, vmpstr wrote: > I remember there was some talk about changing ...
5 years, 1 month ago (2015-11-17 21:43:37 UTC) #23
wkorman
https://codereview.chromium.org/1423653005/diff/60001/cc/playback/display_item_list.cc File cc/playback/display_item_list.cc (right): https://codereview.chromium.org/1423653005/diff/60001/cc/playback/display_item_list.cc#newcode204 cc/playback/display_item_list.cc:204: // TODO(wkorman): Uncomment the assert below once we've investigated ...
5 years, 1 month ago (2015-11-17 21:49:47 UTC) #24
vmpstr
On 2015/11/17 21:49:47, wkorman wrote: > https://codereview.chromium.org/1423653005/diff/60001/cc/playback/display_item_list.cc > File cc/playback/display_item_list.cc (right): > > https://codereview.chromium.org/1423653005/diff/60001/cc/playback/display_item_list.cc#newcode204 > ...
5 years, 1 month ago (2015-11-17 21:55:55 UTC) #25
wkorman
On 2015/11/17 at 21:55:55, vmpstr wrote: > FWIW, we can skip adding things to the ...
5 years, 1 month ago (2015-11-17 21:58:16 UTC) #26
danakj
https://codereview.chromium.org/1423653005/diff/80001/ui/compositor/clip_transform_recorder.cc File ui/compositor/clip_transform_recorder.cc (right): https://codereview.chromium.org/1423653005/diff/80001/ui/compositor/clip_transform_recorder.cc#newcode20 ui/compositor/clip_transform_recorder.cc:20: const gfx::Size& layer_size) IIRC when we'd talked about this, ...
5 years, 1 month ago (2015-11-17 22:14:33 UTC) #27
enne (OOO)
lgtm % danakj && vmpstr https://codereview.chromium.org/1423653005/diff/80001/cc/playback/display_item_list.h File cc/playback/display_item_list.h (right): https://codereview.chromium.org/1423653005/diff/80001/cc/playback/display_item_list.h#newcode68 cc/playback/display_item_list.h:68: visual_rects_.push_back(visual_rect); I don't think ...
5 years, 1 month ago (2015-11-17 22:28:20 UTC) #28
wkorman
On 2015/11/17 at 22:14:33, danakj wrote: > https://codereview.chromium.org/1423653005/diff/80001/ui/views/view.cc#newcode803 > ui/views/view.cc:803: if (is_invalidated || !paint_cache_.UseCache(context)) { ...
5 years, 1 month ago (2015-11-17 23:34:18 UTC) #29
wkorman
https://codereview.chromium.org/1423653005/diff/80001/ui/compositor/clip_transform_recorder.cc File ui/compositor/clip_transform_recorder.cc (right): https://codereview.chromium.org/1423653005/diff/80001/ui/compositor/clip_transform_recorder.cc#newcode20 ui/compositor/clip_transform_recorder.cc:20: const gfx::Size& layer_size) On 2015/11/17 at 22:14:33, danakj (behind ...
5 years, 1 month ago (2015-11-17 23:43:05 UTC) #30
vmpstr
cc lgtm https://codereview.chromium.org/1423653005/diff/100001/cc/playback/display_item_list.cc File cc/playback/display_item_list.cc (right): https://codereview.chromium.org/1423653005/diff/100001/cc/playback/display_item_list.cc#newcode204 cc/playback/display_item_list.cc:204: // TODO(wkorman): Uncomment the assert below once ...
5 years, 1 month ago (2015-11-17 23:51:38 UTC) #31
wkorman
Dana, do you have any other comments? https://codereview.chromium.org/1423653005/diff/100001/cc/playback/display_item_list.cc File cc/playback/display_item_list.cc (right): https://codereview.chromium.org/1423653005/diff/100001/cc/playback/display_item_list.cc#newcode204 cc/playback/display_item_list.cc:204: // TODO(wkorman): ...
5 years, 1 month ago (2015-11-18 19:37:35 UTC) #32
wkorman
On 2015/11/18 at 19:37:35, wkorman wrote: > Dana, do you have any other comments? Addressed ...
5 years, 1 month ago (2015-11-18 20:49:11 UTC) #33
danakj
chrome/ and ui/ LGTM (you'll need sky for owners) +sky https://codereview.chromium.org/1423653005/diff/140001/ui/views/view.cc File ui/views/view.cc (right): https://codereview.chromium.org/1423653005/diff/140001/ui/views/view.cc#newcode803 ...
5 years, 1 month ago (2015-11-18 22:23:14 UTC) #35
wkorman
https://codereview.chromium.org/1423653005/diff/140001/ui/views/view.cc File ui/views/view.cc (right): https://codereview.chromium.org/1423653005/diff/140001/ui/views/view.cc#newcode803 ui/views/view.cc:803: if (is_invalidated || !paint_cache_.UseCache(context, size())) { On 2015/11/18 at ...
5 years, 1 month ago (2015-11-18 23:01:31 UTC) #36
sky
ui/views/view LGTM - note that since you didn't document what the size supplied to the ...
5 years, 1 month ago (2015-11-19 00:37:34 UTC) #37
danakj
On Wed, Nov 18, 2015 at 4:37 PM, <sky@chromium.org> wrote: > ui/views/view LGTM - note ...
5 years, 1 month ago (2015-11-19 00:45:17 UTC) #38
wkorman
danakj@ PTAL, notes on changes: - added visual rect to trace output in display item ...
5 years ago (2015-11-25 00:26:39 UTC) #39
danakj
https://codereview.chromium.org/1423653005/diff/220001/ui/views/view_unittest.cc File ui/views/view_unittest.cc (right): https://codereview.chromium.org/1423653005/diff/220001/ui/views/view_unittest.cc#newcode533 ui/views/view_unittest.cc:533: const gfx::Rect& visual_rect_in_layer_space) { expected_vis... https://codereview.chromium.org/1423653005/diff/220001/ui/views/view_unittest.cc#newcode581 ui/views/view_unittest.cc:581: check the ...
5 years ago (2015-11-25 00:30:56 UTC) #40
wkorman
https://codereview.chromium.org/1423653005/diff/220001/ui/views/view_unittest.cc File ui/views/view_unittest.cc (right): https://codereview.chromium.org/1423653005/diff/220001/ui/views/view_unittest.cc#newcode533 ui/views/view_unittest.cc:533: const gfx::Rect& visual_rect_in_layer_space) { On 2015/11/25 at 00:30:56, danakj ...
5 years ago (2015-11-25 00:44:51 UTC) #41
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1423653005/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1423653005/240001
5 years ago (2015-11-25 00:47:41 UTC) #43
danakj
Thanks for the unit tests and nicer comments! LGTM
5 years ago (2015-11-25 01:00:11 UTC) #44
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/71352)
5 years ago (2015-11-25 01:30:45 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1423653005/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1423653005/260001
5 years ago (2015-11-25 01:31:17 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/101131)
5 years ago (2015-11-25 03:48:07 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1423653005/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1423653005/260001
5 years ago (2015-11-25 06:48:21 UTC) #52
commit-bot: I haz the power
Committed patchset #14 (id:260001)
5 years ago (2015-11-25 09:13:37 UTC) #53
commit-bot: I haz the power
5 years ago (2015-11-25 09:15:06 UTC) #54
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/b969018fe0b7eb4b71478199249e58c85fa26847
Cr-Commit-Position: refs/heads/master@{#361612}

Powered by Google App Engine
This is Rietveld 408576698