Make sure tab strip updates are committed after rotation
commita59888b96216334a12b85ffb39c0a17f3f008105
authorchangwan <changwan@chromium.org>
Mon, 3 Aug 2015 00:49:11 +0000 (2 17:49 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 3 Aug 2015 00:49:44 +0000 (3 00:49 +0000)
tree22b9cde654931bdad1c63027414bd69b5c95b076
parentfdcb680f47f5f6d7088ebf96425c3c683b2d4e7a
Make sure tab strip updates are committed after rotation

On lollipop version of Nexus 10, tab strips disappear if
you launch a new tab (and native page is shown), click on the URL
(or some other input forms), and rotate the device.

For some reason cc layer thinks that there is nothing to be committed after
we rotate and update the bounds. Probably we're updating the properties
even before actual rotation is made, and then after rotation the updates
are ignored.

This is a workaround to fit in M44. InsertChild() forces full tree sync which seems to fix the issue.

BUG=503930

Review URL: https://codereview.chromium.org/1215023007

Cr-Commit-Position: refs/heads/master@{#341479}
chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/Layout.java
chrome/android/java/src/org/chromium/chrome/browser/compositor/overlays/SceneOverlay.java
chrome/android/java/src/org/chromium/chrome/browser/compositor/overlays/strip/StripLayoutHelperManager.java
chrome/android/java/src/org/chromium/chrome/browser/compositor/scene_layer/TabStripSceneLayer.java
chrome/browser/android/compositor/scene_layer/tab_strip_scene_layer.cc
chrome/browser/android/compositor/scene_layer/tab_strip_scene_layer.h