From 8aa39ecb857cd7131406ef19485868896079ce1d Mon Sep 17 00:00:00 2001 From: "reveman@chromium.org" Date: Thu, 12 Jun 2014 14:19:14 +0000 Subject: 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 --- cc/test/fake_tile_manager_client.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'cc/test/fake_tile_manager_client.cc') 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 + namespace cc { +FakeTileManagerClient::FakeTileManagerClient() { +} + +FakeTileManagerClient::~FakeTileManagerClient() { +} + +const std::vector& +FakeTileManagerClient::GetPictureLayers() { + return picture_layers_; +} + } // namespace cc -- cgit v1.1