cc: Activate when going invisible.
commit6b968c06b3641d5cb45917039de447f8337edd4c
authorvmpstr <vmpstr@chromium.org>
Mon, 29 Sep 2014 23:34:49 +0000 (29 16:34 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 29 Sep 2014 23:35:23 +0000 (29 23:35 +0000)
tree2d0409ca8602caae7e54c8aa24743eb5e6bb2509
parent88aa9330b9dcc79911d607c5d7156d5345d69633
cc: Activate when going invisible.

This patch ensures that we always activate when we become invisible.
The reason being is that when we come back to being visible again,
we don't need to rasterize both active and pending trees. We can
just rasterize what used to be the pending tree.

Since we set RequiresHighResToDraw on becoming visible, this also
ensures that we don't checkerboard on becoming visible.

BUG=410000, 417598
R=danakj, enne, brianderson

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

Cr-Commit-Position: refs/heads/master@{#297303}
cc/scheduler/scheduler_state_machine.cc
cc/scheduler/scheduler_unittest.cc
cc/trees/layer_tree_host_unittest.cc