cc: Add more eviction categories to picture layer impl.
commitff491db5756865f46331e28b8981d191b828758a
authorvmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 15 Aug 2014 21:22:04 +0000 (15 21:22 +0000)
committervmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 15 Aug 2014 21:23:50 +0000 (15 21:23 +0000)
tree2873c110d6abbefc038e634f734f22a8ec8ccb4f
parent4dc0a3b7b1fe7b844a215ecf86fd2b7ad49dab7c
cc: Add more eviction categories to picture layer impl.

Since we use priority_for_tree_priority to get the priority_bin,
we might end up in situations where we have a non-now priority_bin
with a tile that is required for activation (this is because
required for activation property is read off the pending priority).

In particular in smoothness takes priority, if a tile is only
available on the pending tree, then it will have EVENTUALLY
priority_bin with inf distance. However, at the same time
it can be required for activation (NOW on the active tree).

We need to ensure that this is handled explicitly and correctly.
This patch adds the extra required categories, as well as
makes an array instead of separate variables for each of
the categories.

R=reveman

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

Cr-Commit-Position: refs/heads/master@{#290011}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290011 0039d316-1c4b-4281-b951-d872f2087c98
cc/layers/picture_layer_impl.cc
cc/resources/picture_layer_tiling.cc
cc/resources/picture_layer_tiling.h
cc/resources/tile_manager_unittest.cc