summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_picture_layer_tiling_client.cc
diff options
context:
space:
mode:
authorreveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-12 03:07:16 +0000
committerreveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-12 03:07:16 +0000
commiteece11eddc1249a156226a464c734b2ba2c73f1f (patch)
treef3b095e40c75659f4699689e1446dc788b1c60b9 /cc/test/fake_picture_layer_tiling_client.cc
parent282c71a2664f121895c9963556958faa67119708 (diff)
downloadchromium_src-eece11eddc1249a156226a464c734b2ba2c73f1f.zip
chromium_src-eece11eddc1249a156226a464c734b2ba2c73f1f.tar.gz
chromium_src-eece11eddc1249a156226a464c734b2ba2c73f1f.tar.bz2
cc: Move ResourcePool ownership to LTHI.
Provides a significant amount of cleanup by removing the requirement to plumb resource format and texture target through the Rasterizer interface. BUG=269841 Review URL: https://codereview.chromium.org/228183002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263459 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_picture_layer_tiling_client.cc')
-rw-r--r--cc/test/fake_picture_layer_tiling_client.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/cc/test/fake_picture_layer_tiling_client.cc b/cc/test/fake_picture_layer_tiling_client.cc
index 4289b9d4..0c0fce6 100644
--- a/cc/test/fake_picture_layer_tiling_client.cc
+++ b/cc/test/fake_picture_layer_tiling_client.cc
@@ -22,8 +22,10 @@ FakePictureLayerTilingClient::FakePictureLayerTilingClient()
FakePictureLayerTilingClient::FakePictureLayerTilingClient(
ResourceProvider* resource_provider)
- : tile_manager_(
- new FakeTileManager(&tile_manager_client_, resource_provider)),
+ : resource_pool_(
+ ResourcePool::Create(resource_provider, GL_TEXTURE_2D, RGBA_8888)),
+ tile_manager_(
+ new FakeTileManager(&tile_manager_client_, resource_pool_.get())),
pile_(FakePicturePileImpl::CreateInfiniteFilledPile()),
twin_tiling_(NULL),
allow_create_tile_(true),