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

Issue 178313004: Remove the HashMap in RenderLayerCompositor's overlap map (Closed)

Created:
6 years, 9 months ago by abarth-chromium
Modified:
6 years, 9 months ago
Reviewers:
enne (OOO)
CC:
blink-reviews, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, pdr.
Visibility:
Public.

Description

Remove the HashMap in RenderLayerCompositor's overlap map The only reason we had a HashMap in the overlap map was to handle a recursive treewalk in the case where we need to be composited because of our children. It turns out the HashMap was wrong in the case where those children got composited into another non-root layer. In that case, they would already be in the overlap map and would be excluded in the recursive walk. This CL removes the HashMap and instead just unites the bounds of all the children during the normal recusive walk. If we need to composite ourself because of our decendants, we use the united rect instead of recursively adding all the descendant rects individually. This is both faster (3% on the toggle_drawer compositing update) and more correct (see test). R=enne@chromium.org

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address comments #

Patch Set 3 : rebase #

Patch Set 4 : Now with out param #

Messages

Total messages: 10 (0 generated)
abarth-chromium
6 years, 9 months ago (2014-02-28 00:42:45 UTC) #1
enne (OOO)
https://codereview.chromium.org/178313004/diff/1/LayoutTests/compositing/layer-creation/overlap-transformed-layer-with-tranform-body-expected.txt File LayoutTests/compositing/layer-creation/overlap-transformed-layer-with-tranform-body-expected.txt (right): https://codereview.chromium.org/178313004/diff/1/LayoutTests/compositing/layer-creation/overlap-transformed-layer-with-tranform-body-expected.txt#newcode1 LayoutTests/compositing/layer-creation/overlap-transformed-layer-with-tranform-body-expected.txt:1: (GraphicsLayer typo in test name https://codereview.chromium.org/178313004/diff/1/Source/core/rendering/compositing/RenderLayerCompositor.cpp File Source/core/rendering/compositing/RenderLayerCompositor.cpp (left): ...
6 years, 9 months ago (2014-02-28 00:50:12 UTC) #2
abarth-chromium
https://codereview.chromium.org/178313004/diff/1/LayoutTests/compositing/layer-creation/overlap-transformed-layer-with-tranform-body-expected.txt File LayoutTests/compositing/layer-creation/overlap-transformed-layer-with-tranform-body-expected.txt (right): https://codereview.chromium.org/178313004/diff/1/LayoutTests/compositing/layer-creation/overlap-transformed-layer-with-tranform-body-expected.txt#newcode1 LayoutTests/compositing/layer-creation/overlap-transformed-layer-with-tranform-body-expected.txt:1: (GraphicsLayer On 2014/02/28 00:50:13, enne wrote: > typo in ...
6 years, 9 months ago (2014-02-28 02:22:07 UTC) #3
abarth-chromium
PTAL I left the return value as a return value. Please let me know if ...
6 years, 9 months ago (2014-02-28 02:40:06 UTC) #4
enne (OOO)
On 2014/02/28 02:40:06, abarth wrote: > PTAL lgtm > I left the return value as ...
6 years, 9 months ago (2014-02-28 19:11:36 UTC) #5
abarth-chromium
The CQ bit was checked by abarth@chromium.org
6 years, 9 months ago (2014-03-01 07:56:52 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/178313004/60001
6 years, 9 months ago (2014-03-01 07:56:58 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-01 09:37:21 UTC) #8
commit-bot: I haz the power
Retried try job too often on win_layout for step(s) webkit_lint http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout&number=24104
6 years, 9 months ago (2014-03-01 09:37:22 UTC) #9
abarth-chromium
6 years, 9 months ago (2014-03-01 09:58:11 UTC) #10
Message was sent while issue was closed.
r168242

Powered by Google App Engine
This is Rietveld 408576698