diff options
Diffstat (limited to 'cc/resources/tile_manager_perftest.cc')
-rw-r--r-- | cc/resources/tile_manager_perftest.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cc/resources/tile_manager_perftest.cc b/cc/resources/tile_manager_perftest.cc index b4bc4f5..9a1642a 100644 --- a/cc/resources/tile_manager_perftest.cc +++ b/cc/resources/tile_manager_perftest.cc @@ -48,11 +48,11 @@ class TileManagerPerfTest : public testing::Test { shared_bitmap_manager_.reset(new TestSharedBitmapManager()); resource_provider_ = ResourceProvider::Create( output_surface_.get(), shared_bitmap_manager_.get(), 0, false, 1); + resource_pool_ = ResourcePool::Create( + resource_provider_.get(), GL_TEXTURE_2D, RGBA_8888); size_t raster_task_limit_bytes = 32 * 1024 * 1024; // 16-64MB in practice. - tile_manager_ = - make_scoped_ptr(new FakeTileManager(&tile_manager_client_, - resource_provider_.get(), - raster_task_limit_bytes)); + tile_manager_ = make_scoped_ptr(new FakeTileManager( + &tile_manager_client_, resource_pool_.get(), raster_task_limit_bytes)); picture_pile_ = FakePicturePileImpl::CreateInfiniteFilledPile(); } @@ -179,6 +179,7 @@ class TileManagerPerfTest : public testing::Test { scoped_ptr<FakeOutputSurface> output_surface_; scoped_ptr<SharedBitmapManager> shared_bitmap_manager_; scoped_ptr<ResourceProvider> resource_provider_; + scoped_ptr<ResourcePool> resource_pool_; LapTimer timer_; }; |