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

Issue 2186643002: Fold compositing display items into contained drawings if the drawing is a singleton. (Closed)

Created:
4 years, 4 months ago by chrishtr
Modified:
4 years, 4 months ago
Reviewers:
f(malita), Xianzhu, wkorman
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fold compositing display items into contained drawings if the drawing is a singleton. BUG=628831 Committed: https://crrev.com/09f3b178cfb677eaaf91a282df0d898a041378cd Cr-Commit-Position: refs/heads/master@{#408725}

Patch Set 1 #

Patch Set 2 : none #

Total comments: 9

Patch Set 3 : none #

Total comments: 1

Patch Set 4 : none #

Patch Set 5 : none #

Total comments: 2

Patch Set 6 : none #

Patch Set 7 : none #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -3 lines) Patch
M third_party/WebKit/Source/core/paint/PaintControllerPaintTest.cpp View 1 2 3 4 5 6 2 chunks +23 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/CompositingRecorder.cpp View 1 2 3 4 2 chunks +39 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintController.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (23 generated)
chrishtr
I have verified that the Skia optimization still works properly on http://www.wholecloud.net/. Have not verified ...
4 years, 4 months ago (2016-07-26 17:54:00 UTC) #3
wkorman
lgtm https://codereview.chromium.org/2186643002/diff/20001/third_party/WebKit/Source/platform/graphics/paint/CompositingRecorder.cpp File third_party/WebKit/Source/platform/graphics/paint/CompositingRecorder.cpp (right): https://codereview.chromium.org/2186643002/diff/20001/third_party/WebKit/Source/platform/graphics/paint/CompositingRecorder.cpp#newcode39 third_party/WebKit/Source/platform/graphics/paint/CompositingRecorder.cpp:39: PaintController& paintController = graphicsContext.getPaintController(); Need to turn off ...
4 years, 4 months ago (2016-07-26 18:41:08 UTC) #6
chrishtr
https://codereview.chromium.org/2186643002/diff/20001/third_party/WebKit/Source/platform/graphics/paint/CompositingRecorder.cpp File third_party/WebKit/Source/platform/graphics/paint/CompositingRecorder.cpp (right): https://codereview.chromium.org/2186643002/diff/20001/third_party/WebKit/Source/platform/graphics/paint/CompositingRecorder.cpp#newcode39 third_party/WebKit/Source/platform/graphics/paint/CompositingRecorder.cpp:39: PaintController& paintController = graphicsContext.getPaintController(); On 2016/07/26 18:41:08, wkorman wrote: ...
4 years, 4 months ago (2016-07-26 18:49:45 UTC) #7
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/2186643002/30006
4 years, 4 months ago (2016-07-26 18:59:24 UTC) #13
f(malita)
LGTM w/ a question. https://codereview.chromium.org/2186643002/diff/20001/third_party/WebKit/Source/platform/graphics/paint/CompositingDisplayItem.h File third_party/WebKit/Source/platform/graphics/paint/CompositingDisplayItem.h (right): https://codereview.chromium.org/2186643002/diff/20001/third_party/WebKit/Source/platform/graphics/paint/CompositingDisplayItem.h#newcode33 third_party/WebKit/Source/platform/graphics/paint/CompositingDisplayItem.h:33: bool isBeginCompositingDisplayItem() const final { ...
4 years, 4 months ago (2016-07-26 19:03:16 UTC) #14
chrishtr
https://codereview.chromium.org/2186643002/diff/20001/third_party/WebKit/Source/platform/graphics/paint/CompositingDisplayItem.h File third_party/WebKit/Source/platform/graphics/paint/CompositingDisplayItem.h (right): https://codereview.chromium.org/2186643002/diff/20001/third_party/WebKit/Source/platform/graphics/paint/CompositingDisplayItem.h#newcode33 third_party/WebKit/Source/platform/graphics/paint/CompositingDisplayItem.h:33: bool isBeginCompositingDisplayItem() const final { return true; } On ...
4 years, 4 months ago (2016-07-26 19:54:25 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/266695)
4 years, 4 months ago (2016-07-26 20:13:03 UTC) #17
Xianzhu
Discussed with chrishtr, and found this CL exposes a problem of the current DisplayItemClient cache ...
4 years, 4 months ago (2016-07-27 17:22:30 UTC) #19
chrishtr
https://codereview.chromium.org/2186643002/diff/70001/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp File third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp (right): https://codereview.chromium.org/2186643002/diff/70001/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp#newcode433 third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp:433: item.client().setDisplayItemsUncached(); @xianzhu: added this. WDYT?
4 years, 4 months ago (2016-07-27 17:47:48 UTC) #20
Xianzhu
https://codereview.chromium.org/2186643002/diff/70001/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp File third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp (right): https://codereview.chromium.org/2186643002/diff/70001/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp#newcode433 third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp:433: item.client().setDisplayItemsUncached(); On 2016/07/27 17:47:48, chrishtr wrote: > @xianzhu: added ...
4 years, 4 months ago (2016-07-27 18:00:19 UTC) #23
Xianzhu
Just found a problem affecting this CL in under-invalidation checking of cached subsequences that it ...
4 years, 4 months ago (2016-07-27 21:47:20 UTC) #26
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/2186643002/90001
4 years, 4 months ago (2016-07-28 23:27:41 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/264222)
4 years, 4 months ago (2016-07-29 00:49:25 UTC) #31
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/2186643002/90001
4 years, 4 months ago (2016-07-29 18:00:27 UTC) #33
chrishtr
Fixed one unittest, and added another one to exercise the folding code.
4 years, 4 months ago (2016-07-29 18:05:21 UTC) #35
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/2186643002/110001
4 years, 4 months ago (2016-07-29 18:05:53 UTC) #38
commit-bot: I haz the power
Committed patchset #7 (id:110001)
4 years, 4 months ago (2016-07-29 19:31:04 UTC) #39
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/09f3b178cfb677eaaf91a282df0d898a041378cd Cr-Commit-Position: refs/heads/master@{#408725}
4 years, 4 months ago (2016-07-29 19:33:36 UTC) #41
tzik
4 years, 4 months ago (2016-08-01 04:52:12 UTC) #42
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:110001) has been created in
https://codereview.chromium.org/2197903002/ by tzik@chromium.org.

The reason for reverting is: This CL seems to break layout tests on bot.
An example of failure is:
https://storage.googleapis.com/chromium-layout-test-archives/WebKit_Linux__db...

STDERR: [4:4:0731/203155:3802475433:FATAL:PaintController.cpp(554)] Check
failed: false. 
STDERR: #0 0x7f109c38b99e base::debug::StackTrace::StackTrace()
STDERR: #1 0x7f109c3f2fef logging::LogMessage::~LogMessage()
STDERR: #2 0x7f1097594655 blink::PaintController::checkUnderInvalidation()
STDERR: #3 0x7f1097592e64 blink::PaintController::processNewItem()
STDERR: #4 0x7f1097583d52
_ZN5blink15PaintController15createAndAppendINS_18DrawingDisplayItemEJRKNS_17DisplayItemClientERKNS_11DisplayItem4TypeEN3WTF10PassRefPtrI9SkPictureEERbEEEvDpOT0_
STDERR: #5 0x7f1097583af1 blink::DrawingRecorder::~DrawingRecorder()
STDERR: #6 0x7f109422f925 base::internal::OptionalStorage<>::~OptionalStorage()
STDERR: #7 0x7f109422f8c5 base::Optional<>::~Optional()
STDERR: #8 0x7f109422ed83
blink::LayoutObjectDrawingRecorder::~LayoutObjectDrawingRecorder()
STDERR: #9 0x7f109423e187
blink::BoxPainter::paintBoxDecorationBackgroundWithRect()
STDERR: #10 0x7f109423dcde blink::BoxPainter::paintBoxDecorationBackground()
STDERR: #11 0x7f10943f34f5 blink::LayoutBox::paintBoxDecorationBackground()
STDERR: #12 0x7f109422dbcd blink::BlockPainter::paintObject()
STDERR: #13 0x7f10943b1bd5 blink::LayoutBlock::paintObject()
STDERR: #14 0x7f109422d25c blink::BlockPainter::paint()
STDERR: #15 0x7f10943b1b55 blink::LayoutBlock::paint().

Powered by Google App Engine
This is Rietveld 408576698