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

Issue 2229643002: Don't invalidate paint on background image change if it's obscured (Closed)

Created:
4 years, 4 months ago by Xianzhu
Modified:
4 years, 4 months ago
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, eae+blinkwatch, f(malita), jbroman, jchaffraix+rendering, Justin Novosad, leviw+renderwatch, pdr+graphicswatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, rwlbuis, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@BackgroundObscured
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't invalidate paint on background image change if it's obscured BUG=622368 TEST=fast/repaint/obscured-background-no-repaint.html Committed: https://crrev.com/3646f9d8a418eabf1e7d8cb29ca446382848e04c Cr-Commit-Position: refs/heads/master@{#411337}

Patch Set 1 #

Patch Set 2 : - #

Total comments: 14

Patch Set 3 : - #

Patch Set 4 : - #

Total comments: 2

Patch Set 5 : Fix flakiness of the test #

Patch Set 6 : Rebase #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -76 lines) Patch
M third_party/WebKit/LayoutTests/fast/repaint/obscured-background-no-repaint.html View 1 2 3 4 3 chunks +46 lines, -13 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/obscured-background-no-repaint-expected.txt View 1 2 3 4 1 chunk +2 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-insert-svg-shape.html View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-insert-svg-shape-expected.html View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.h View 1 2 3 2 chunks +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 2 3 4 5 6 5 chunks +37 lines, -40 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutImage.cpp View 2 chunks +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 2 3 4 5 4 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 3 4 5 3 chunks +10 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/BitmapImage.cpp View 1 1 chunk +9 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 41 (24 generated)
Xianzhu
4 years, 4 months ago (2016-08-08 23:35:38 UTC) #3
Stephen Chennney
Good idea, more work to do. https://codereview.chromium.org/2229643002/diff/20001/third_party/WebKit/LayoutTests/fast/repaint/obscured-background-no-repaint.html File third_party/WebKit/LayoutTests/fast/repaint/obscured-background-no-repaint.html (right): https://codereview.chromium.org/2229643002/diff/20001/third_party/WebKit/LayoutTests/fast/repaint/obscured-background-no-repaint.html#newcode54 third_party/WebKit/LayoutTests/fast/repaint/obscured-background-no-repaint.html:54: setTimeout(finishRepaintTest, 300); Timeouts ...
4 years, 4 months ago (2016-08-09 14:22:32 UTC) #8
eae
LGTM w/nit for core/layout https://codereview.chromium.org/2229643002/diff/20001/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/2229643002/diff/20001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode1528 third_party/WebKit/Source/core/layout/LayoutBox.cpp:1528: bool isBackground = &layers == ...
4 years, 4 months ago (2016-08-09 14:41:48 UTC) #10
chrishtr
https://codereview.chromium.org/2229643002/diff/20001/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (right): https://codereview.chromium.org/2229643002/diff/20001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#newcode1491 third_party/WebKit/Source/core/layout/LayoutBox.cpp:1491: ShapeValue* shapeOutsideValue = style()->shapeOutside(); I guess you're fixing a ...
4 years, 4 months ago (2016-08-09 16:05:17 UTC) #11
Xianzhu
Just found a problem of this CL: LayoutBox::foregroundIsKnownToBeOpaqueInRect() depends on compositing state which is not ...
4 years, 4 months ago (2016-08-09 16:26:05 UTC) #12
Xianzhu
https://codereview.chromium.org/2229643002/diff/20001/third_party/WebKit/LayoutTests/fast/repaint/obscured-background-no-repaint.html File third_party/WebKit/LayoutTests/fast/repaint/obscured-background-no-repaint.html (right): https://codereview.chromium.org/2229643002/diff/20001/third_party/WebKit/LayoutTests/fast/repaint/obscured-background-no-repaint.html#newcode54 third_party/WebKit/LayoutTests/fast/repaint/obscured-background-no-repaint.html:54: setTimeout(finishRepaintTest, 300); On 2016/08/09 14:22:31, Stephen Chennney wrote: > ...
4 years, 4 months ago (2016-08-09 18:51:48 UTC) #13
Stephen Chennney
OK on the testing issues. See below for notes on perf. At this point I ...
4 years, 4 months ago (2016-08-09 19:06:04 UTC) #14
Xianzhu
On 2016/08/09 19:06:04, Stephen Chennney wrote: > OK on the testing issues. See below for ...
4 years, 4 months ago (2016-08-09 19:11:05 UTC) #15
Stephen Chennney
On 2016/08/09 19:11:05, Xianzhu wrote: > On 2016/08/09 19:06:04, Stephen Chennney wrote: > > OK ...
4 years, 4 months ago (2016-08-09 19:20:04 UTC) #16
chrishtr
https://codereview.chromium.org/2229643002/diff/20001/third_party/WebKit/Source/core/layout/LayoutImage.cpp File third_party/WebKit/Source/core/layout/LayoutImage.cpp (left): https://codereview.chromium.org/2229643002/diff/20001/third_party/WebKit/Source/core/layout/LayoutImage.cpp#oldcode237 third_party/WebKit/Source/core/layout/LayoutImage.cpp:237: if (!m_imageResource->cachedImage()) On 2016/08/09 at 18:51:48, Xianzhu wrote: > ...
4 years, 4 months ago (2016-08-09 22:07:54 UTC) #21
Xianzhu
https://codereview.chromium.org/2229643002/diff/60001/third_party/WebKit/Source/core/layout/LayoutBox.cpp File third_party/WebKit/Source/core/layout/LayoutBox.cpp (left): https://codereview.chromium.org/2229643002/diff/60001/third_party/WebKit/Source/core/layout/LayoutBox.cpp#oldcode1499 third_party/WebKit/Source/core/layout/LayoutBox.cpp:1499: if (!invalidatePaintOfLayerRectsForImage(image, style()->backgroundLayers(), true)) On 2016/08/09 22:07:54, chrishtr wrote: ...
4 years, 4 months ago (2016-08-09 23:07:14 UTC) #22
chrishtr
lgtm
4 years, 4 months ago (2016-08-09 23:13:31 UTC) #23
Xianzhu
Ct task results show flaky results. Run 1136: record_time_caching_disabled (ms) 0.438% 0.437% record_time (ms) 0.312% ...
4 years, 4 months ago (2016-08-10 22:30:21 UTC) #28
Xianzhu
The new ct task (1145) shows progressions: record_time_sk_null_canvas (ms) 0% 0% rasterize_time (ms) -0.058% -0.058% ...
4 years, 4 months ago (2016-08-11 15:30:37 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/2229643002/120001
4 years, 4 months ago (2016-08-11 15:31:43 UTC) #38
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 4 months ago (2016-08-11 15:36:18 UTC) #39
commit-bot: I haz the power
4 years, 4 months ago (2016-08-11 15:38:50 UTC) #41
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/3646f9d8a418eabf1e7d8cb29ca446382848e04c
Cr-Commit-Position: refs/heads/master@{#411337}

Powered by Google App Engine
This is Rietveld 408576698