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

Issue 353403006: Consider subpixel accumulation when invalidating paint (Closed)

Created:
6 years, 5 months ago by Xianzhu
Modified:
6 years, 5 months ago
CC:
abarth-chromium, blink-layers+watch_chromium.org, blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr., rune+blink, zoltan1
Project:
blink
Visibility:
Public.

Description

Consider subpixel accumulation when invalidating paint Pass repaint rect as LayoutRect to - RenderObject::invalidatePaintUsingContainer(), - RenderLayerRepainter::setBackingNeedsRepaintInRect() - CompositedLayerMapping::setContentsNeedDisplayInRect() and add subpixel accumulation before passing to GraphicsLayer. BUG=390605 TEST=fast/sub-pixel/repaint-subpixel-layer-in-subpixel-composited-layer.html R=leviw@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177408

Patch Set 1 : #

Patch Set 2 : Keep squashing-path unchanged #

Patch Set 3 : Rebase some tests #

Patch Set 4 : Fix win layout test #

Total comments: 2

Patch Set 5 : Also squashing path #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -30 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M LayoutTests/fast/sub-pixel/repaint-subpixel-layer-in-subpixel-composited-layer-expected.txt View 3 chunks +6 lines, -6 lines 0 comments Download
M Source/core/rendering/RenderBox.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderLayerRepainter.cpp View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M Source/core/rendering/RenderLayerScrollableArea.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderObject.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderObject.cpp View 1 5 chunks +10 lines, -10 lines 0 comments Download
M Source/core/rendering/RenderSelectionInfo.h View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/rendering/compositing/CompositedLayerMapping.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/compositing/CompositedLayerMapping.cpp View 1 chunk +5 lines, -2 lines 2 comments Download

Messages

Total messages: 27 (0 generated)
Xianzhu
PTAL.
6 years, 5 months ago (2014-07-01 23:02:29 UTC) #1
leviw_travelin_and_unemployed
LGTM. Thank you :)
6 years, 5 months ago (2014-07-01 23:37:10 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/353403006/20001
6 years, 5 months ago (2014-07-01 23:37:55 UTC) #3
Xianzhu
The CQ bit was checked by wangxianzhu@chromium.org
6 years, 5 months ago (2014-07-02 00:32:18 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/353403006/40001
6 years, 5 months ago (2014-07-02 00:32:21 UTC) #5
Xianzhu
The CQ bit was checked by wangxianzhu@chromium.org
6 years, 5 months ago (2014-07-02 00:43:41 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/353403006/60001
6 years, 5 months ago (2014-07-02 00:43:52 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 5 months ago (2014-07-02 01:50:58 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-02 02:37:58 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/14957)
6 years, 5 months ago (2014-07-02 02:37:59 UTC) #10
Xianzhu
The CQ bit was checked by wangxianzhu@chromium.org
6 years, 5 months ago (2014-07-02 03:47:41 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/353403006/80001
6 years, 5 months ago (2014-07-02 03:48:17 UTC) #12
chrishtr
https://codereview.chromium.org/353403006/diff/80001/Source/core/rendering/RenderLayerRepainter.cpp File Source/core/rendering/RenderLayerRepainter.cpp (right): https://codereview.chromium.org/353403006/diff/80001/Source/core/rendering/RenderLayerRepainter.cpp#newcode129 Source/core/rendering/RenderLayerRepainter.cpp:129: // FIXME: how about subpixel accumulation? Instead of a ...
6 years, 5 months ago (2014-07-02 04:39:58 UTC) #13
chrishtr
The CQ bit was unchecked by chrishtr@chromium.org
6 years, 5 months ago (2014-07-02 04:40:24 UTC) #14
chrishtr
I removed the commit bit, hope you don't mind making that change.
6 years, 5 months ago (2014-07-02 04:40:46 UTC) #15
Xianzhu
https://codereview.chromium.org/353403006/diff/80001/Source/core/rendering/RenderLayerRepainter.cpp File Source/core/rendering/RenderLayerRepainter.cpp (right): https://codereview.chromium.org/353403006/diff/80001/Source/core/rendering/RenderLayerRepainter.cpp#newcode129 Source/core/rendering/RenderLayerRepainter.cpp:129: // FIXME: how about subpixel accumulation? On 2014/07/02 04:39:58, ...
6 years, 5 months ago (2014-07-02 16:19:10 UTC) #16
Xianzhu
The CQ bit was checked by wangxianzhu@chromium.org
6 years, 5 months ago (2014-07-02 16:19:15 UTC) #17
Xianzhu
The CQ bit was unchecked by wangxianzhu@chromium.org
6 years, 5 months ago (2014-07-02 16:19:20 UTC) #18
Xianzhu
The CQ bit was checked by wangxianzhu@chromium.org
6 years, 5 months ago (2014-07-02 16:21:46 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/353403006/100001
6 years, 5 months ago (2014-07-02 16:22:27 UTC) #20
chrishtr
https://codereview.chromium.org/353403006/diff/100001/Source/core/rendering/compositing/CompositedLayerMapping.cpp File Source/core/rendering/compositing/CompositedLayerMapping.cpp (right): https://codereview.chromium.org/353403006/diff/100001/Source/core/rendering/compositing/CompositedLayerMapping.cpp#newcode1928 Source/core/rendering/compositing/CompositedLayerMapping.cpp:1928: pixelSnappedIntRect(r.location() + m_owningLayer.subpixelAccumulation(), r.size()) It's not quite what I ...
6 years, 5 months ago (2014-07-02 16:59:24 UTC) #21
Xianzhu
https://codereview.chromium.org/353403006/diff/100001/Source/core/rendering/compositing/CompositedLayerMapping.cpp File Source/core/rendering/compositing/CompositedLayerMapping.cpp (right): https://codereview.chromium.org/353403006/diff/100001/Source/core/rendering/compositing/CompositedLayerMapping.cpp#newcode1928 Source/core/rendering/compositing/CompositedLayerMapping.cpp:1928: pixelSnappedIntRect(r.location() + m_owningLayer.subpixelAccumulation(), r.size()) On 2014/07/02 16:59:24, chrishtr wrote: ...
6 years, 5 months ago (2014-07-02 17:17:54 UTC) #22
chrishtr
Ok, fair enough.
6 years, 5 months ago (2014-07-02 17:24:25 UTC) #23
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 5 months ago (2014-07-02 17:36:47 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-02 18:19:21 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/15113)
6 years, 5 months ago (2014-07-02 18:19:22 UTC) #26
Xianzhu
6 years, 5 months ago (2014-07-02 18:26:21 UTC) #27
Message was sent while issue was closed.
Committed patchset #5 manually as r177408 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698