diff options
author | boliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-05 01:33:59 +0000 |
---|---|---|
committer | boliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-05 01:33:59 +0000 |
commit | 98805e6990c30ba99eebf9b1da1c382a1b21cfbd (patch) | |
tree | 5eece1c1e4476afea54ebc516c250397901916ec /cc/test/fake_tile_manager.cc | |
parent | a39e376072dc0285376c3ba007e1afff343a8d8e (diff) | |
download | chromium_src-98805e6990c30ba99eebf9b1da1c382a1b21cfbd.zip chromium_src-98805e6990c30ba99eebf9b1da1c382a1b21cfbd.tar.gz chromium_src-98805e6990c30ba99eebf9b1da1c382a1b21cfbd.tar.bz2 |
cc: Use explicit SequencedTaskRunner current loop in TileManager
Remove MessageLoopProxy::current calls from different RasterWorker
classes. Instead pass down the impl SequencedTaskRunner from
LayerTreeHostImpl to where its needed.
Fixed a bunch of unit tests that used to create TileManager with a
proxy with no ImplThreadTaskRunner.
BUG=348796
Review URL: https://codereview.chromium.org/186013004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254903 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_tile_manager.cc')
-rw-r--r-- | cc/test/fake_tile_manager.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cc/test/fake_tile_manager.cc b/cc/test/fake_tile_manager.cc index cbd09f2..cf797f1 100644 --- a/cc/test/fake_tile_manager.cc +++ b/cc/test/fake_tile_manager.cc @@ -15,7 +15,7 @@ namespace { class FakeRasterWorkerPool : public RasterWorkerPool { public: - FakeRasterWorkerPool() : RasterWorkerPool(NULL, NULL) {} + FakeRasterWorkerPool() : RasterWorkerPool(NULL, NULL, NULL) {} // Overridden from RasterWorkerPool: virtual void ScheduleTasks(RasterTaskQueue* queue) OVERRIDE { @@ -72,6 +72,7 @@ class FakeRasterWorkerPool : public RasterWorkerPool { FakeTileManager::FakeTileManager(TileManagerClient* client) : TileManager(client, + base::MessageLoopProxy::current().get(), NULL, NULL, make_scoped_ptr<RasterWorkerPool>(new FakeRasterWorkerPool), @@ -83,6 +84,7 @@ FakeTileManager::FakeTileManager(TileManagerClient* client) FakeTileManager::FakeTileManager(TileManagerClient* client, ResourceProvider* resource_provider) : TileManager(client, + base::MessageLoopProxy::current().get(), resource_provider, NULL, make_scoped_ptr<RasterWorkerPool>(new FakeRasterWorkerPool), @@ -95,6 +97,7 @@ FakeTileManager::FakeTileManager(TileManagerClient* client, ResourceProvider* resource_provider, bool allow_on_demand_raster) : TileManager(client, + base::MessageLoopProxy::current().get(), resource_provider, NULL, make_scoped_ptr<RasterWorkerPool>(new FakeRasterWorkerPool), @@ -107,6 +110,7 @@ FakeTileManager::FakeTileManager(TileManagerClient* client, ResourceProvider* resource_provider, size_t raster_task_limit_bytes) : TileManager(client, + base::MessageLoopProxy::current().get(), resource_provider, NULL, make_scoped_ptr<RasterWorkerPool>(new FakeRasterWorkerPool), |