cc: Call PrepareTiles when becoming visible in browser only.
commitc67e9d831fa3753fc5434229d3275b1c0155edae
authorsunnyps <sunnyps@chromium.org>
Fri, 17 Jul 2015 02:02:19 +0000 (16 19:02 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 17 Jul 2015 02:02:49 +0000 (17 02:02 +0000)
tree3a462350fb49b6a1f9b50173ca3894ebd2bdf7e0
parent0d244fa5e106b3d146655a2c623539a3e1900831
cc: Call PrepareTiles when becoming visible in browser only.

Calling PrepareTiles on each visibility change might have caused a v8
idle time benchmark regression. We only need to call PrepareTiles for
the SingleThreadProxy wait for ready to draw mode.

R=brianderson@chromium.org,danakj@chromium.org
TEST=LayerTreeHostTestReadyToDrawVisibility
BUG=499040
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

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

Cr-Commit-Position: refs/heads/master@{#339201}
cc/trees/layer_tree_host_impl.cc
cc/trees/layer_tree_host_unittest.cc
cc/trees/single_thread_proxy.cc