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

Issue 1428643004: Repaint on interest rect change (Closed)

Created:
5 years, 1 month ago by Xianzhu
Modified:
5 years, 1 month ago
Reviewers:
chrishtr, ajuma
CC:
apavlov+blink_chromium.org, blink-layers+watch_chromium.org, blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, caseq+blink_chromium.org, chromium-reviews, danakj, devtools-reviews_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, eae+blinkwatch, f(malita), jbroman, jchaffraix+rendering, Justin Novosad, kozyatinskiy+blink_chromium.org, leviw+renderwatch, lushnikov+blink_chromium.org, pdr+renderingwatchlist_chromium.org, pdr+graphicswatchlist_chromium.org, pfeldman+blink_chromium.org, rwlbuis, Stephen Chennney, sergeyv+blink_chromium.org, slimming-paint-reviews_chromium.org, szager+layoutwatch_chromium.org, vmpstr+blinkwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@EnableSyncPaint
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Repaint on interest rect change This is needed before we enable sync painting. Repaint when interest rect changed sufficiently. Also combine GraphicsLayer::paintIfNeeded() and GraphicsLayer::paint(). The former was needed because the caller needed to check the result to determine if it's safe to commit the new paints. Now this is not needed. Actually we always paint, and output CachedDisplayItemList when the whole display item list is cached. BUG=536999 Committed: https://crrev.com/f118da73a9f15420c1757133de7b89a019186bb3 Cr-Commit-Position: refs/heads/master@{#356979}

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Total comments: 2

Patch Set 4 : Copy display_list_recording_source unit tests #

Total comments: 2

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+394 lines, -346 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/paint/overflow/interest-rect-change-scroll-down.html View 1 2 3 4 1 chunk +7 lines, -7 lines 0 comments Download
A + third_party/WebKit/LayoutTests/paint/overflow/interest-rect-change-scroll-down-expected.html View 1 2 3 4 1 chunk +10 lines, -6 lines 0 comments Download
A third_party/WebKit/LayoutTests/paint/overflow/interest-rect-change-scroll-up.html View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/paint/overflow/interest-rect-change-scroll-up-expected.html View 1 2 3 4 2 chunks +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.h View 1 2 3 4 3 chunks +5 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 4 5 chunks +11 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/frame/VisualViewport.h View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/VisualViewport.cpp View 1 chunk +1 line, -5 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h View 1 2 3 4 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp View 1 2 3 2 chunks +60 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp View 1 2 3 2 chunks +70 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp View 1 2 3 1 chunk +11 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintControllerPaintTest.h View 1 2 3 4 1 chunk +63 lines, -34 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerPainterTest.cpp View 1 2 3 4 5 chunks +73 lines, -190 lines 0 comments Download
M third_party/WebKit/Source/core/paint/TableCellPainterTest.cpp View 1 2 3 4 3 chunks +19 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.h View 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayer.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp View 1 1 chunk +2 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayerClient.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayerTest.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageLayerChromiumTest.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintController.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/PageOverlay.h View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/web/PageOverlay.cpp View 1 chunk +1 line, -6 lines 0 comments Download
M third_party/WebKit/Source/web/PageOverlayTest.cpp View 1 chunk +3 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 30 (9 generated)
Xianzhu
5 years, 1 month ago (2015-10-28 19:55:45 UTC) #3
chrishtr
https://codereview.chromium.org/1428643004/diff/20001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp File third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp (right): https://codereview.chromium.org/1428643004/diff/20001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp#newcode2207 third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp:2207: return std::abs(newValue - previousValue) * 16 < baseValue; > ...
5 years, 1 month ago (2015-10-28 21:03:54 UTC) #4
Xianzhu
https://codereview.chromium.org/1428643004/diff/20001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp File third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp (right): https://codereview.chromium.org/1428643004/diff/20001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp#newcode2210 third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp:2210: static bool interestRectChangeNeedsRepaint(const IntRect& newInterestRect, const IntRect& previousInterestRect) On ...
5 years, 1 month ago (2015-10-29 01:55:09 UTC) #5
chrishtr
https://codereview.chromium.org/1428643004/diff/40001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp File third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp (right): https://codereview.chromium.org/1428643004/diff/40001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp#newcode211 third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp:211: TEST_F(CompositedLayerMappingTest, InterestRectChangedEnoughToRepaint) Please copy the exact tests from here: ...
5 years, 1 month ago (2015-10-29 16:34:42 UTC) #7
Xianzhu
https://codereview.chromium.org/1428643004/diff/40001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp File third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp (right): https://codereview.chromium.org/1428643004/diff/40001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp#newcode211 third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp:211: TEST_F(CompositedLayerMappingTest, InterestRectChangedEnoughToRepaint) On 2015/10/29 16:34:42, chrishtr wrote: > Please ...
5 years, 1 month ago (2015-10-29 17:17:27 UTC) #8
Xianzhu
5 years, 1 month ago (2015-10-29 17:17:28 UTC) #9
chrishtr
Is there any integration test (i.e. layout test) which exercises interest rect updates? e.g. have ...
5 years, 1 month ago (2015-10-29 17:20:26 UTC) #10
chrishtr
https://codereview.chromium.org/1428643004/diff/60001/third_party/WebKit/Source/core/frame/FrameView.h File third_party/WebKit/Source/core/frame/FrameView.h (right): https://codereview.chromium.org/1428643004/diff/60001/third_party/WebKit/Source/core/frame/FrameView.h#newcode235 third_party/WebKit/Source/core/frame/FrameView.h:235: void updateAllLifecyclePhases(const IntRect* interestRect = nullptr); Will there be ...
5 years, 1 month ago (2015-10-29 17:21:31 UTC) #11
Xianzhu
On 2015/10/29 17:20:26, chrishtr wrote: > Is there any integration test (i.e. layout test) which ...
5 years, 1 month ago (2015-10-29 17:29:43 UTC) #12
Xianzhu
https://codereview.chromium.org/1428643004/diff/60001/third_party/WebKit/Source/core/frame/FrameView.h File third_party/WebKit/Source/core/frame/FrameView.h (right): https://codereview.chromium.org/1428643004/diff/60001/third_party/WebKit/Source/core/frame/FrameView.h#newcode235 third_party/WebKit/Source/core/frame/FrameView.h:235: void updateAllLifecyclePhases(const IntRect* interestRect = nullptr); On 2015/10/29 17:21:30, ...
5 years, 1 month ago (2015-10-29 18:31:28 UTC) #13
Xianzhu
On 2015/10/29 17:29:43, Xianzhu wrote: > On 2015/10/29 17:20:26, chrishtr wrote: > > Is there ...
5 years, 1 month ago (2015-10-29 18:31:45 UTC) #14
chrishtr
https://codereview.chromium.org/1428643004/diff/80001/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h File third_party/WebKit/Source/platform/graphics/GraphicsLayer.h (right): https://codereview.chromium.org/1428643004/diff/80001/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h#newcode248 third_party/WebKit/Source/platform/graphics/GraphicsLayer.h:248: void paint(GraphicsContext&, const IntRect* clip) override; How about: paint() ...
5 years, 1 month ago (2015-10-29 19:56:51 UTC) #15
Xianzhu
https://codereview.chromium.org/1428643004/diff/80001/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h File third_party/WebKit/Source/platform/graphics/GraphicsLayer.h (right): https://codereview.chromium.org/1428643004/diff/80001/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h#newcode248 third_party/WebKit/Source/platform/graphics/GraphicsLayer.h:248: void paint(GraphicsContext&, const IntRect* clip) override; On 2015/10/29 19:56:51, ...
5 years, 1 month ago (2015-10-29 20:00:46 UTC) #16
chrishtr
lgtm
5 years, 1 month ago (2015-10-29 20:02:18 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1428643004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1428643004/80001
5 years, 1 month ago (2015-10-29 20:02:41 UTC) #19
commit-bot: I haz the power
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/127770)
5 years, 1 month ago (2015-10-29 21:00:29 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1428643004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1428643004/100001
5 years, 1 month ago (2015-10-29 21:17:15 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/123953)
5 years, 1 month ago (2015-10-29 22:43:57 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1428643004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1428643004/100001
5 years, 1 month ago (2015-10-29 22:47:43 UTC) #28
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 1 month ago (2015-10-29 23:24:44 UTC) #29
commit-bot: I haz the power
5 years, 1 month ago (2015-10-29 23:25:33 UTC) #30
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/f118da73a9f15420c1757133de7b89a019186bb3
Cr-Commit-Position: refs/heads/master@{#356979}

Powered by Google App Engine
This is Rietveld 408576698