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

Issue 2876033005: Track slow paths in DisplayItemList (Closed)

Created:
3 years, 7 months ago by enne (OOO)
Modified:
3 years, 6 months ago
Reviewers:
danakj, chrishtr
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, cc-bugs_chromium.org, chromium-reviews, dglazkov+blink, dshwang, drott+blinkwatch_chromium.org, krit, fmalita+watch_chromium.org, f(malita), Justin Novosad, kinuko+watch, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney, Stephen White
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Track slow paths in DisplayItemList Previously, DisplayItemList only stored a boolean for whether or not the entire DisplayItemList was suitable for gpu raster. (This is used for turning on msaa or not, but it hasn't been renamed). PaintOpBuffer stores indirections to DisplayItemList and so needs to properly track the number of slow paths stored inside of it. The solution is to push down the msaa veto logic from PaintController down into PictureLayer and store slow path count the whole way. I think this is more compatible with spv2, which will want to combine paint artifacts and then decide if the result needs msaa or not. Also, issue 513016 is quite solved, so comments related to it can be removed. CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2876033005 Cr-Commit-Position: refs/heads/master@{#476040} Committed: https://chromium.googlesource.com/chromium/src/+/36ee28f4f311d6f307de81dc4fa42fed14c4bac7

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase #

Total comments: 2

Patch Set 3 : danakj review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -70 lines) Patch
M cc/blink/web_display_item_list_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/blink/web_display_item_list_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/layers/picture_layer.cc View 2 chunks +4 lines, -1 line 0 comments Download
M cc/paint/display_item_list.h View 1 2 chunks +3 lines, -5 lines 0 comments Download
M cc/paint/display_item_list.cc View 1 1 chunk +0 lines, -8 lines 0 comments Download
M cc/paint/paint_op_buffer.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/paint/paint_op_buffer.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M cc/paint/paint_op_buffer_unittest.cc View 1 2 1 chunk +18 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.h View 1 2 3 chunks +3 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp View 1 2 2 chunks +7 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp View 1 2 3 chunks +4 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintControllerTest.cpp View 1 2 8 chunks +10 lines, -25 lines 0 comments Download
M third_party/WebKit/public/platform/WebDisplayItemList.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (12 generated)
enne (OOO)
This depends on https://chromium-review.googlesource.com/c/503472/ and https://codereview.chromium.org/2875343002/ (and the tests in the comment there). Couldn't figure ...
3 years, 7 months ago (2017-05-12 22:59:56 UTC) #4
chrishtr
https://codereview.chromium.org/2876033005/diff/1/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp File third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp (right): https://codereview.chromium.org/2876033005/diff/1/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp#newcode575 third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp:575: num_slow_paths += item.NumberOfSlowPaths(); Why remove the early-out?
3 years, 7 months ago (2017-05-13 01:12:04 UTC) #5
enne (OOO)
https://codereview.chromium.org/2876033005/diff/1/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp File third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp (right): https://codereview.chromium.org/2876033005/diff/1/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp#newcode575 third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp:575: num_slow_paths += item.NumberOfSlowPaths(); On 2017/05/13 at 01:12:04, chrishtr wrote: ...
3 years, 7 months ago (2017-05-13 18:27:41 UTC) #6
chrishtr
lgtm
3 years, 7 months ago (2017-05-15 18:08:41 UTC) #7
enne (OOO)
danakj: cq+2 if'n you like
3 years, 7 months ago (2017-05-23 20:35:59 UTC) #10
danakj
https://codereview.chromium.org/2876033005/diff/20001/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp File third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp (right): https://codereview.chromium.org/2876033005/diff/20001/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp#newcode76 third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp:76: paint_chunks_.clear(); reset it here? https://codereview.chromium.org/2876033005/diff/20001/third_party/WebKit/Source/platform/graphics/paint/PaintControllerTest.cpp File third_party/WebKit/Source/platform/graphics/paint/PaintControllerTest.cpp (right): https://codereview.chromium.org/2876033005/diff/20001/third_party/WebKit/Source/platform/graphics/paint/PaintControllerTest.cpp#newcode1927 ...
3 years, 6 months ago (2017-05-31 18:03:38 UTC) #14
danakj
LGTM % that stuff
3 years, 6 months ago (2017-05-31 18:03:46 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/2876033005/40001
3 years, 6 months ago (2017-05-31 18:19:38 UTC) #18
commit-bot: I haz the power
3 years, 6 months ago (2017-05-31 21:42:27 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/36ee28f4f311d6f307de81dc4fa4...

Powered by Google App Engine
This is Rietveld 408576698