Cherry-pick with modification: cc: Fix CHECK failure in PictureLayerImpl::UpdateTilePriorities
Cherry-pick of Chromium crrev.com/r230735
Removed the test due to conflict.
The should_update_tile_priorities_ in UpdateTilePriorities my fail and
here's the sequence of events:
* Context loss while layer is invisible, which clears
* 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
1 file changed