Cherry-pick with modification: cc: Fix CHECK failure in PictureLayerImpl::UpdateTilePriorities

Cherry-pick of Chromium crrev.com/r230735

Removed the test due to conflict.

BUG: 11265055

Original description:

The should_update_tile_priorities_ in UpdateTilePriorities my fail and
here's the sequence of events:

* Context loss while layer is invisible, which clears
should_update_tile_priorities_
* CalculateContentsScale is skipped because layer is invisible
* Layer becomes visible in next commit, and active layer SyncTiling
during the commit will fail the check.

Any condition that causes CalculateContentsScale on the layer works as
well.

Change-Id: Ia92de26d27a37c3a6af487d92e6869a495cfbd3e
1 file changed