diff options
author | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-12 14:19:14 +0000 |
---|---|---|
committer | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-12 14:19:14 +0000 |
commit | 8aa39ecb857cd7131406ef19485868896079ce1d (patch) | |
tree | 4e657a4898c8798f836b16605b5aea435af86963 /cc/test/fake_tile_manager_client.cc | |
parent | 105a723205ed981f185f07c45b6cdc401d8fba4a (diff) | |
download | chromium_src-8aa39ecb857cd7131406ef19485868896079ce1d.zip chromium_src-8aa39ecb857cd7131406ef19485868896079ce1d.tar.gz chromium_src-8aa39ecb857cd7131406ef19485868896079ce1d.tar.bz2 |
cc: Refactor how picture layers are exposed to the tile manager.
This moves the vector of registered picture layers from
the tile manager to LTHI. Allows layers to be registered
in ctor and unregistered in dtor instead of having to
unregister them from the tile manager and then re-register
them as needed.
The picture layer vector is exposed to the tile manager
using a client function and this vector will include all
existing PictureLayerImpl instances. Whether it makes
sense for the tile manager to use a layer or not depends
on the return value of
PictureLayerImpl::HasValidTilePriorities().
BUG=
Review URL: https://codereview.chromium.org/322443002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276665 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_tile_manager_client.cc')
-rw-r--r-- | cc/test/fake_tile_manager_client.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cc/test/fake_tile_manager_client.cc b/cc/test/fake_tile_manager_client.cc index c82aeb0..adbae1c 100644 --- a/cc/test/fake_tile_manager_client.cc +++ b/cc/test/fake_tile_manager_client.cc @@ -4,6 +4,19 @@ #include "cc/test/fake_tile_manager_client.h" +#include <vector> + namespace cc { +FakeTileManagerClient::FakeTileManagerClient() { +} + +FakeTileManagerClient::~FakeTileManagerClient() { +} + +const std::vector<PictureLayerImpl*>& +FakeTileManagerClient::GetPictureLayers() { + return picture_layers_; +} + } // namespace cc |