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

Issue 2230513005: Move visual rect unioning between paired items to cc::DisplayItemList. (Closed)

Created:
4 years, 4 months ago by wkorman
Modified:
4 years, 4 months ago
Reviewers:
danakj, chrishtr, vmpstr, sky
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, dglazkov+blink, dshwang, drott+blinkwatch_chromium.org, krit, estade+watch_chromium.org, f(malita), jbauman+watch_chromium.org, jbroman, jdonnelly+autofillwatch_chromium.org, Justin Novosad, kalyank, pdr+graphicswatchlist_chromium.org, piman+watch_chromium.org, rwlbuis, rouslan+autofill_chromium.org, Stephen Chennney, sievers+watch_chromium.org, tfarina, vabr+watchlistautofill_chromium.org, Ian Vollick
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move visual rect unioning between paired items to cc::DisplayItemList. http://crrev.com/1814013003 added this for Blink-driven visual rects, and it turns out we need it for ui/views as well, so we centralize in cc directly. Visual rects now only have to be explicitly passed for drawing display items. BUG=634239 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/923cfdd728ac4e0f7f35333c994c79e6f9403625 Cr-Commit-Position: refs/heads/master@{#411195}

Patch Set 1 #

Patch Set 2 : Fix missing increment on closer, and pairing for clip path with AA. #

Patch Set 3 : Rename CreateAndAppend method variants for consistency. #

Patch Set 4 : Port unit tests. #

Total comments: 17

Patch Set 5 : Code review feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+574 lines, -578 lines) Patch
M cc/blink/web_display_item_list_impl.h View 1 2 3 4 1 chunk +15 lines, -22 lines 0 comments Download
M cc/blink/web_display_item_list_impl.cc View 1 2 5 chunks +35 lines, -49 lines 0 comments Download
M cc/layers/picture_image_layer.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/playback/display_item_list.h View 1 2 3 4 4 chunks +70 lines, -11 lines 0 comments Download
M cc/playback/display_item_list.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M cc/playback/display_item_list_unittest.cc View 1 2 3 4 25 chunks +335 lines, -43 lines 0 comments Download
M cc/playback/display_item_proto_factory.cc View 1 2 1 chunk +13 lines, -13 lines 0 comments Download
M cc/test/fake_content_layer_client.cc View 1 2 2 chunks +6 lines, -7 lines 0 comments Download
M cc/test/geometry_test_utils.h View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M cc/test/solid_color_content_layer_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_pixeltest_masks.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_tiles.cc View 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/tabs/tab_strip.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/ClipDisplayItem.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/CompositingDisplayItem.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.h View 2 chunks +0 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.cpp View 1 chunk +1 line, -30 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/DisplayItemListTest.cpp View 1 2 3 4 chunks +5 lines, -286 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/FilterDisplayItem.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/FloatClipDisplayItem.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp View 1 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/ScrollDisplayItem.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/Transform3DDisplayItem.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/TransformDisplayItem.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/WebDisplayItemList.h View 1 chunk +14 lines, -14 lines 0 comments Download
M ui/compositor/clip_recorder.h View 2 chunks +1 line, -3 lines 0 comments Download
M ui/compositor/clip_recorder.cc View 1 2 1 chunk +16 lines, -28 lines 0 comments Download
M ui/compositor/compositing_recorder.h View 2 chunks +0 lines, -7 lines 0 comments Download
M ui/compositor/compositing_recorder.cc View 1 2 1 chunk +4 lines, -8 lines 0 comments Download
M ui/compositor/paint_cache.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/compositor/paint_recorder.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M ui/compositor/transform_recorder.h View 3 chunks +1 line, -7 lines 0 comments Download
M ui/compositor/transform_recorder.cc View 1 2 1 chunk +4 lines, -7 lines 0 comments Download
M ui/views/view.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 29 (17 generated)
wkorman
Main changes are in {cc,blink}::DisplayItemList. Others are mainly method signature rename/splitting to allow differentiating between ...
4 years, 4 months ago (2016-08-10 19:26:29 UTC) #9
vmpstr
Just reviewed cc. Overall looks good, just some small comments. https://codereview.chromium.org/2230513005/diff/60001/cc/blink/web_display_item_list_impl.h File cc/blink/web_display_item_list_impl.h (right): https://codereview.chromium.org/2230513005/diff/60001/cc/blink/web_display_item_list_impl.h#newcode45 ...
4 years, 4 months ago (2016-08-10 19:47:31 UTC) #12
chrishtr
lgtm
4 years, 4 months ago (2016-08-10 19:55:58 UTC) #13
wkorman
https://codereview.chromium.org/2230513005/diff/60001/cc/blink/web_display_item_list_impl.h File cc/blink/web_display_item_list_impl.h (right): https://codereview.chromium.org/2230513005/diff/60001/cc/blink/web_display_item_list_impl.h#newcode45 cc/blink/web_display_item_list_impl.h:45: void appendDrawingItem(const blink::WebRect&, On 2016/08/10 at 19:47:31, vmpstr wrote: ...
4 years, 4 months ago (2016-08-10 21:04:26 UTC) #14
vmpstr
cc lgtm https://codereview.chromium.org/2230513005/diff/60001/cc/playback/display_item_list.h File cc/playback/display_item_list.h (right): https://codereview.chromium.org/2230513005/diff/60001/cc/playback/display_item_list.h#newcode95 cc/playback/display_item_list.h:95: GrowCurrentBeginItemVisualRect(inputs_.visual_rects[last_begin_index]); On 2016/08/10 21:04:25, wkorman wrote: > ...
4 years, 4 months ago (2016-08-10 21:09:43 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2230513005/80001
4 years, 4 months ago (2016-08-10 21:20:02 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/235348)
4 years, 4 months ago (2016-08-10 21:29:26 UTC) #20
wkorman
+sky for chrome/browser/ui/views, ui/compositor, and ui/views OWNERS. Changes are nearly all just method name/signature changes. ...
4 years, 4 months ago (2016-08-10 21:29:35 UTC) #22
sky
LGTM
4 years, 4 months ago (2016-08-10 22:27:06 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2230513005/80001
4 years, 4 months ago (2016-08-10 22:30:41 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-11 00:04:49 UTC) #27
commit-bot: I haz the power
4 years, 4 months ago (2016-08-11 00:07:06 UTC) #29
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/923cfdd728ac4e0f7f35333c994c79e6f9403625
Cr-Commit-Position: refs/heads/master@{#411195}

Powered by Google App Engine
This is Rietveld 408576698