cc: Ensure to return pending now before active eventually tiles.
commit806cad8d08a0414928b04e6a8635c1ddc35a91db
authorvmpstr <vmpstr@chromium.org>
Thu, 23 Oct 2014 23:35:54 +0000 (23 16:35 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 23 Oct 2014 23:36:27 +0000 (23 23:36 +0000)
treeaac7be6525702ab353540815349b51062d26a666
parent884a5b43cba6a19b8d067fed99dc2906ed0ef656
cc: Ensure to return pending now before active eventually tiles.

This patch is part 2 of a fix to return pending now tiles before active
eventually tiles. We already do this at a pair level. This patch ensures
that we also do it across pairs. That is, given two pairs of layers,
if the highest priority tile on one is an active eventually tile and
the highest priority tile on the other is a pending now tile, then
prefer the pending now tile (this is just for smoothness).

This ensures that we activate if we're prepainting too far.

BUG=426287
R=reveman

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

Cr-Commit-Position: refs/heads/master@{#300981}
cc/resources/raster_tile_priority_queue.cc
cc/resources/tile_manager_unittest.cc