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

Issue 315443002: Compute minimum repaint and show them in overlay (Closed)

Created:
6 years, 6 months ago by Xianzhu
Modified:
6 years, 6 months ago
CC:
blink-reviews, jamesr, dsinclair
Visibility:
Public.

Description

Compute minimum repaint and show them in overlay For repaint tests, compute minimum repaint by comparing pixel dump before and after repaintTest() and output repaint in layout test result. In overlay, visualize the minimum repaint in expected results. In this way, when making repaint change and checking actual results, we can easily discover under-repaint bugs if we see any solid black area not covered by repaint rects. This CL depends on chromium-side CL https://codereview.chromium.org/301243022. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176257

Patch Set 1 : #

Patch Set 2 : Paint minimum repaint in black #

Patch Set 3 : Add "Highlight under-repaint" button #

Patch Set 4 : As a local tool #

Patch Set 5 : Fix the top link in overlay #

Total comments: 4

Patch Set 6 : Update comments about false under-repaint about recompositing #

Patch Set 7 : Combine two text-based-repaint.js #

Total comments: 4

Patch Set 8 : For landing #

Patch Set 9 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -29 lines) Patch
M LayoutTests/fast/repaint/resources/text-based-repaint.js View 1 2 3 4 5 6 7 8 3 chunks +128 lines, -12 lines 0 comments Download
M Source/core/testing/Internals.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/testing/Internals.cpp View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -0 lines 0 comments Download
M Source/core/testing/Internals.idl View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M Tools/Scripts/webkitpy/layout_tests/controllers/repaint_overlay.py View 1 2 3 4 5 6 7 9 chunks +63 lines, -17 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Xianzhu
6 years, 6 months ago (2014-06-03 00:36:15 UTC) #1
Xianzhu
There would be many repaint layout tests needing rebaseline. Will update TestExpectations after running on ...
6 years, 6 months ago (2014-06-03 00:40:31 UTC) #2
Dirk Pranke
I defer this to enne as well.
6 years, 6 months ago (2014-06-03 01:28:52 UTC) #3
enne (OOO)
Unless I'm missing something, this is not the minimum repaint rects, it's the minimum *observed* ...
6 years, 6 months ago (2014-06-03 19:36:09 UTC) #4
Xianzhu
On 2014/06/03 19:36:09, enne wrote: > Unless I'm missing something, this is not the minimum ...
6 years, 6 months ago (2014-06-03 20:40:48 UTC) #5
enne (OOO)
This will only show a repaint *if* the resulting inflated paint rectangle covers something that ...
6 years, 6 months ago (2014-06-03 23:23:53 UTC) #6
Xianzhu
On 2014/06/03 23:23:53, enne wrote: > This will only show a repaint *if* the resulting ...
6 years, 6 months ago (2014-06-04 00:17:09 UTC) #7
enne (OOO)
On 2014/06/04 00:17:09, Xianzhu wrote: > On 2014/06/03 23:23:53, enne wrote: > > This will ...
6 years, 6 months ago (2014-06-04 17:03:20 UTC) #8
Xianzhu
On 2014/06/04 17:03:20, enne wrote: > On 2014/06/04 00:17:09, Xianzhu wrote: > > On 2014/06/03 ...
6 years, 6 months ago (2014-06-04 17:22:53 UTC) #9
Xianzhu
PTAL. Now use the full repaint method to calculate minimum repaint. Don't need to rebaseline ...
6 years, 6 months ago (2014-06-05 17:01:14 UTC) #10
enne (OOO)
I'm much more comfortable checking in something like this as a developer tool as a ...
6 years, 6 months ago (2014-06-05 22:13:43 UTC) #11
Xianzhu
https://codereview.chromium.org/315443002/diff/120001/LayoutTests/fast/repaint/resources/text-based-repaint-minimum-repaint.js File LayoutTests/fast/repaint/resources/text-based-repaint-minimum-repaint.js (right): https://codereview.chromium.org/315443002/diff/120001/LayoutTests/fast/repaint/resources/text-based-repaint-minimum-repaint.js#newcode36 LayoutTests/fast/repaint/resources/text-based-repaint-minimum-repaint.js:36: function runRepaintTest() On 2014/06/05 22:13:42, enne wrote: > I'm ...
6 years, 6 months ago (2014-06-05 22:51:06 UTC) #12
enne (OOO)
I think the code looks ok, but I am not 100% sure that the UI ...
6 years, 6 months ago (2014-06-06 19:55:17 UTC) #13
enne (OOO)
PS lgtm
6 years, 6 months ago (2014-06-06 19:55:28 UTC) #14
Xianzhu
On 2014/06/06 19:55:17, enne wrote: > I think the code looks ok, but I am ...
6 years, 6 months ago (2014-06-07 05:23:06 UTC) #15
Xianzhu
The CQ bit was checked by wangxianzhu@chromium.org
6 years, 6 months ago (2014-06-16 21:45:24 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/315443002/200001
6 years, 6 months ago (2014-06-16 21:45:41 UTC) #17
commit-bot: I haz the power
6 years, 6 months ago (2014-06-17 00:17:40 UTC) #18
Message was sent while issue was closed.
Change committed as 176257

Powered by Google App Engine
This is Rietveld 408576698