Chromium Code Reviews
DescriptionSimplify content_layer attachment and viewporting logic.
I noticed a lot of complex logic in content_layer.cc and
static_tab_scene_layer.cc that appears to do nothing useful anymore. I
simplified it by:
1) Always detaching and reattaching the live and static sublayers
instead of trying to preserve the existing structure. (There shouldn't
be any performance cost to this.)
2) Following a much simpler policy for positioning and clipping. I
compared the behavior of the old and new logic in a variety of device
rotation, tab switcher and URL-bar-hiding scenarios, and I haven't
yet observed any regression.
BUG=662427
Committed: https://crrev.com/acff1ef1dd7e6a0c8f162bdf71f3e5efb9b89811
Cr-Commit-Position: refs/heads/master@{#438080}
Patch Set 1 #Patch Set 2 : Make content_opacity 0 when can_use_live_layer is false #
Total comments: 6
Patch Set 3 : Code review #Messages
Total messages: 29 (21 generated)
|