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

Issue 899753003: Walk render tree instead of render layers for paint. (Closed)

Created:
5 years, 10 months ago by ojan
Modified:
5 years, 10 months ago
Reviewers:
esprehn
CC:
esprehn, abarth-chromium, mojo-reviews_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Walk render tree instead of render layers for paint. This is the first step of getting rid of RenderLayer. Instead of walking the RenderLayer tree, wall the RenderObject tree and add any layers encountered to a vector to paint later. This patch just consolidates and move the code from RenderLayer to RenderBox and then changes the children painting to iterate over the vector. Therefore we walk the RenderObject tree. We still call out to RenderLayer in a bunch of places. A followup patch will get rid of those. R=esprehn@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/176c40ab728c5af7e6300629c6eaefeb970b547a

Patch Set 1 #

Total comments: 9

Patch Set 2 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+276 lines, -308 lines) Patch
M sky/engine/core/frame/FrameView.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M sky/engine/core/rendering/EllipsisBox.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M sky/engine/core/rendering/EllipsisBox.cpp View 1 4 chunks +4 lines, -4 lines 0 comments Download
M sky/engine/core/rendering/InlineBox.h View 1 1 chunk +1 line, -1 line 0 comments Download
M sky/engine/core/rendering/InlineBox.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M sky/engine/core/rendering/InlineFlowBox.h View 1 1 chunk +1 line, -1 line 0 comments Download
M sky/engine/core/rendering/InlineFlowBox.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M sky/engine/core/rendering/InlineTextBox.h View 1 1 chunk +1 line, -1 line 0 comments Download
M sky/engine/core/rendering/InlineTextBox.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M sky/engine/core/rendering/RenderBlock.h View 1 chunk +3 lines, -3 lines 0 comments Download
M sky/engine/core/rendering/RenderBlock.cpp View 3 chunks +9 lines, -7 lines 0 comments Download
M sky/engine/core/rendering/RenderBox.h View 4 chunks +6 lines, -2 lines 0 comments Download
M sky/engine/core/rendering/RenderBox.cpp View 1 2 chunks +208 lines, -2 lines 0 comments Download
M sky/engine/core/rendering/RenderFlexibleBox.h View 1 chunk +1 line, -1 line 0 comments Download
M sky/engine/core/rendering/RenderFlexibleBox.cpp View 1 chunk +5 lines, -3 lines 0 comments Download
M sky/engine/core/rendering/RenderInline.h View 1 chunk +1 line, -1 line 0 comments Download
M sky/engine/core/rendering/RenderInline.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M sky/engine/core/rendering/RenderLayer.h View 5 chunks +4 lines, -19 lines 0 comments Download
M sky/engine/core/rendering/RenderLayer.cpp View 2 chunks +0 lines, -232 lines 0 comments Download
M sky/engine/core/rendering/RenderLineBoxList.h View 1 1 chunk +1 line, -1 line 0 comments Download
M sky/engine/core/rendering/RenderLineBoxList.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M sky/engine/core/rendering/RenderObject.h View 1 chunk +1 line, -1 line 0 comments Download
M sky/engine/core/rendering/RenderObject.cpp View 1 chunk +1 line, -1 line 0 comments Download
M sky/engine/core/rendering/RenderParagraph.h View 1 chunk +1 line, -1 line 0 comments Download
M sky/engine/core/rendering/RenderParagraph.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M sky/engine/core/rendering/RenderReplaced.h View 1 chunk +1 line, -1 line 0 comments Download
M sky/engine/core/rendering/RenderReplaced.cpp View 1 chunk +1 line, -1 line 0 comments Download
M sky/engine/core/rendering/RenderText.h View 1 chunk +1 line, -1 line 0 comments Download
M sky/engine/core/rendering/RenderView.h View 1 chunk +1 line, -1 line 0 comments Download
M sky/engine/core/rendering/RenderView.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M sky/engine/core/rendering/RootInlineBox.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M sky/engine/core/rendering/RootInlineBox.cpp View 1 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
ojan
5 years, 10 months ago (2015-02-05 10:18:09 UTC) #2
esprehn
You're missing a & all over. https://codereview.chromium.org/899753003/diff/1/sky/engine/core/rendering/InlineFlowBox.cpp File sky/engine/core/rendering/InlineFlowBox.cpp (right): https://codereview.chromium.org/899753003/diff/1/sky/engine/core/rendering/InlineFlowBox.cpp#newcode992 sky/engine/core/rendering/InlineFlowBox.cpp:992: void InlineFlowBox::paint(PaintInfo& paintInfo, ...
5 years, 10 months ago (2015-02-05 23:47:00 UTC) #3
ojan
ptal https://codereview.chromium.org/899753003/diff/1/sky/engine/core/rendering/RenderBox.cpp File sky/engine/core/rendering/RenderBox.cpp (right): https://codereview.chromium.org/899753003/diff/1/sky/engine/core/rendering/RenderBox.cpp#newcode400 sky/engine/core/rendering/RenderBox.cpp:400: if (!opacity()) On 2015/02/05 23:47:00, esprehn wrote: > ...
5 years, 10 months ago (2015-02-06 00:28:46 UTC) #4
esprehn
lgtm
5 years, 10 months ago (2015-02-06 00:31:00 UTC) #5
ojan
5 years, 10 months ago (2015-02-06 00:39:26 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
176c40ab728c5af7e6300629c6eaefeb970b547a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698