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

Issue 2566753004: Simplify content_layer attachment and viewporting logic. (Closed)

Created:
4 years ago by aelias_OOO_until_Jul13
Modified:
4 years ago
Reviewers:
Changwan Ryu
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify 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)
aelias_OOO_until_Jul13
Hi changwan@, PTAL. I fixed a bug in ClearClip as compared to https://codereview.chromium.org/2499863002/, so it's ...
4 years ago (2016-12-09 23:47:45 UTC) #2
Changwan Ryu
https://codereview.chromium.org/2566753004/diff/20001/chrome/browser/android/compositor/layer/content_layer.h File chrome/browser/android/compositor/layer/content_layer.h (right): https://codereview.chromium.org/2566753004/diff/20001/chrome/browser/android/compositor/layer/content_layer.h#newcode38 chrome/browser/android/compositor/layer/content_layer.h:38: bool should_clip, optional: how about removing this parameter and ...
4 years ago (2016-12-12 07:38:04 UTC) #11
aelias_OOO_until_Jul13
https://codereview.chromium.org/2566753004/diff/20001/chrome/browser/android/compositor/layer/content_layer.h File chrome/browser/android/compositor/layer/content_layer.h (right): https://codereview.chromium.org/2566753004/diff/20001/chrome/browser/android/compositor/layer/content_layer.h#newcode38 chrome/browser/android/compositor/layer/content_layer.h:38: bool should_clip, On 2016/12/12 at 07:38:04, Changwan Ryu wrote: ...
4 years ago (2016-12-13 02:16:05 UTC) #13
Changwan Ryu
lgtm
4 years ago (2016-12-13 05:53:09 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2566753004/40001
4 years ago (2016-12-13 05:53:46 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2566753004/40001
4 years ago (2016-12-13 06:12:53 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-13 06:18:17 UTC) #27
commit-bot: I haz the power
4 years ago (2016-12-13 06:20:23 UTC) #29
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/acff1ef1dd7e6a0c8f162bdf71f3e5efb9b89811
Cr-Commit-Position: refs/heads/master@{#438080}

Powered by Google App Engine
This is Rietveld 408576698