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

Issue 731933004: Get rid of LayerPainter::paintTransformedLayerIntoFragments(). (Closed)

Created:
6 years, 1 month ago by mstensho (USE GERRIT)
Modified:
6 years, 1 month ago
Reviewers:
chrishtr
CC:
blink-reviews, blink-reviews-paint_chromium.org, slimming-paint-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Get rid of LayerPainter::paintTransformedLayerIntoFragments(). Now we have a more unified code path for multicol and non-multicol. Note that we no longer clip against the "paint dirty rect" here. That was wrong anyway, since the "paint dirty rect" is in physical pixels, while what it was clipped against (parent clip rectangle) was not transformed. Instead of adding code that transforms or inverse-transforms one of the rectangles, we can just as well trust paintFragmentWithPhase() to do proper clipping when we finally get there. We also make an effort not to meddle with layers that are not within paintingInfo.rootLayer, since that's going to produce incorrect results anyway. R=chrishtr@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185777

Patch Set 1 #

Total comments: 2

Patch Set 2 : code review #

Total comments: 11

Patch Set 3 : rebase master #

Patch Set 4 : If there's no parent layer to worry about, we can skip some work. Also added a FIXME. #

Patch Set 5 : code review. #

Total comments: 6

Patch Set 6 : Code review. #

Patch Set 7 : Add FIXME for fragmentOffset parameter to ClipRecorder(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -69 lines) Patch
M Source/core/paint/ClipRecorder.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/paint/LayerPainter.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/paint/LayerPainter.cpp View 1 2 3 4 5 3 chunks +62 lines, -67 lines 0 comments Download

Messages

Total messages: 26 (7 generated)
mstensho (USE GERRIT)
6 years, 1 month ago (2014-11-17 22:31:44 UTC) #1
chrishtr
https://codereview.chromium.org/731933004/diff/1/Source/core/paint/LayerPainter.cpp File Source/core/paint/LayerPainter.cpp (right): https://codereview.chromium.org/731933004/diff/1/Source/core/paint/LayerPainter.cpp#newcode94 Source/core/paint/LayerPainter.cpp:94: LayerFragments fragments; Factor all this code into a new ...
6 years, 1 month ago (2014-11-17 23:27:49 UTC) #2
mstensho (USE GERRIT)
https://codereview.chromium.org/731933004/diff/1/Source/core/paint/LayerPainter.cpp File Source/core/paint/LayerPainter.cpp (right): https://codereview.chromium.org/731933004/diff/1/Source/core/paint/LayerPainter.cpp#newcode94 Source/core/paint/LayerPainter.cpp:94: LayerFragments fragments; On 2014/11/17 23:27:49, chrishtr wrote: > Factor ...
6 years, 1 month ago (2014-11-18 08:43:58 UTC) #3
chrishtr
https://codereview.chromium.org/731933004/diff/20001/Source/core/paint/LayerPainter.cpp File Source/core/paint/LayerPainter.cpp (right): https://codereview.chromium.org/731933004/diff/20001/Source/core/paint/LayerPainter.cpp#newcode394 Source/core/paint/LayerPainter.cpp:394: RenderLayer* parentLayer = &m_renderLayer == paintingInfo.rootLayer ? 0 : ...
6 years, 1 month ago (2014-11-18 18:36:18 UTC) #4
mstensho (USE GERRIT)
https://codereview.chromium.org/731933004/diff/20001/Source/core/paint/LayerPainter.cpp File Source/core/paint/LayerPainter.cpp (right): https://codereview.chromium.org/731933004/diff/20001/Source/core/paint/LayerPainter.cpp#newcode394 Source/core/paint/LayerPainter.cpp:394: RenderLayer* parentLayer = &m_renderLayer == paintingInfo.rootLayer ? 0 : ...
6 years, 1 month ago (2014-11-19 19:23:01 UTC) #5
chrishtr
https://codereview.chromium.org/731933004/diff/20001/Source/core/paint/LayerPainter.cpp File Source/core/paint/LayerPainter.cpp (right): https://codereview.chromium.org/731933004/diff/20001/Source/core/paint/LayerPainter.cpp#newcode394 Source/core/paint/LayerPainter.cpp:394: RenderLayer* parentLayer = &m_renderLayer == paintingInfo.rootLayer ? 0 : ...
6 years, 1 month ago (2014-11-19 19:34:51 UTC) #6
mstensho (USE GERRIT)
https://codereview.chromium.org/731933004/diff/20001/Source/core/paint/LayerPainter.cpp File Source/core/paint/LayerPainter.cpp (right): https://codereview.chromium.org/731933004/diff/20001/Source/core/paint/LayerPainter.cpp#newcode394 Source/core/paint/LayerPainter.cpp:394: RenderLayer* parentLayer = &m_renderLayer == paintingInfo.rootLayer ? 0 : ...
6 years, 1 month ago (2014-11-19 22:39:06 UTC) #7
chrishtr
https://codereview.chromium.org/731933004/diff/80001/Source/core/paint/LayerPainter.cpp File Source/core/paint/LayerPainter.cpp (right): https://codereview.chromium.org/731933004/diff/80001/Source/core/paint/LayerPainter.cpp#newcode357 Source/core/paint/LayerPainter.cpp:357: ClipRect clipRect(LayoutRect::infiniteRect()); What about intersecting with paintingInfo.paintDirtyRect here and ...
6 years, 1 month ago (2014-11-20 01:46:31 UTC) #8
mstensho (USE GERRIT)
https://codereview.chromium.org/731933004/diff/80001/Source/core/paint/LayerPainter.cpp File Source/core/paint/LayerPainter.cpp (right): https://codereview.chromium.org/731933004/diff/80001/Source/core/paint/LayerPainter.cpp#newcode357 Source/core/paint/LayerPainter.cpp:357: ClipRect clipRect(LayoutRect::infiniteRect()); On 2014/11/20 01:46:31, chrishtr wrote: > What ...
6 years, 1 month ago (2014-11-20 09:37:55 UTC) #9
chrishtr
lgtm https://codereview.chromium.org/731933004/diff/80001/Source/core/paint/LayerPainter.cpp File Source/core/paint/LayerPainter.cpp (right): https://codereview.chromium.org/731933004/diff/80001/Source/core/paint/LayerPainter.cpp#newcode392 Source/core/paint/LayerPainter.cpp:392: clipRectForFragment.moveBy(fragment.paginationOffset); On 2014/11/20 09:37:55, mstensho wrote: > On ...
6 years, 1 month ago (2014-11-20 18:18:20 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/731933004/120001
6 years, 1 month ago (2014-11-20 20:05:05 UTC) #12
mstensho (USE GERRIT)
https://codereview.chromium.org/731933004/diff/80001/Source/core/paint/LayerPainter.cpp File Source/core/paint/LayerPainter.cpp (right): https://codereview.chromium.org/731933004/diff/80001/Source/core/paint/LayerPainter.cpp#newcode392 Source/core/paint/LayerPainter.cpp:392: clipRectForFragment.moveBy(fragment.paginationOffset); On 2014/11/20 18:18:19, chrishtr wrote: > On 2014/11/20 ...
6 years, 1 month ago (2014-11-20 20:20:47 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/31924)
6 years, 1 month ago (2014-11-20 20:22:27 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/731933004/120001
6 years, 1 month ago (2014-11-20 20:26:02 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/31937)
6 years, 1 month ago (2014-11-20 20:39:03 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/731933004/120001
6 years, 1 month ago (2014-11-20 23:11:26 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/31993)
6 years, 1 month ago (2014-11-20 23:28:45 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/731933004/120001
6 years, 1 month ago (2014-11-21 08:33:27 UTC) #25
commit-bot: I haz the power
6 years, 1 month ago (2014-11-21 09:18:19 UTC) #26
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=185777

Powered by Google App Engine
This is Rietveld 408576698