summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_tile_manager.cc
diff options
context:
space:
mode:
authorsohan.jyoti@samsung.com <sohan.jyoti@samsung.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-17 16:14:29 +0000
committersohan.jyoti@samsung.com <sohan.jyoti@samsung.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-17 16:14:29 +0000
commit1e1d1e1f4dcd5e4c549af271ec70830eed008f4f (patch)
tree74fd3e9d1d2fbf2b90769ee36eafd3307d78de32 /cc/test/fake_tile_manager.cc
parent5264ca43588d5f415a23492105eb698823062b02 (diff)
downloadchromium_src-1e1d1e1f4dcd5e4c549af271ec70830eed008f4f.zip
chromium_src-1e1d1e1f4dcd5e4c549af271ec70830eed008f4f.tar.gz
chromium_src-1e1d1e1f4dcd5e4c549af271ec70830eed008f4f.tar.bz2
Shared Raster Worker Threads
This CL will share worker pool threads across LTHI for a single process. Idea is to reduce the number of threads used per process. For this, we implement WorkerPool::Inner as singleton, and LTHI/WorkerPool would share the same instance per process. Reviewer: reveman@chromium.org BUG=239423 Review URL: https://codereview.chromium.org/73923003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245526 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_tile_manager.cc')
-rw-r--r--cc/test/fake_tile_manager.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/cc/test/fake_tile_manager.cc b/cc/test/fake_tile_manager.cc
index 41a8dde..873e649 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, 1) {}
+ FakeRasterWorkerPool() : RasterWorkerPool(NULL, NULL) {}
virtual void ScheduleTasks(RasterTask::Queue* queue) OVERRIDE {
RasterWorkerPool::SetRasterTasks(queue);
@@ -53,7 +53,6 @@ FakeTileManager::FakeTileManager(TileManagerClient* client)
: TileManager(client,
NULL,
make_scoped_ptr<RasterWorkerPool>(new FakeRasterWorkerPool),
- 1,
std::numeric_limits<unsigned>::max(),
NULL) {}
@@ -62,7 +61,6 @@ FakeTileManager::FakeTileManager(TileManagerClient* client,
: TileManager(client,
resource_provider,
make_scoped_ptr<RasterWorkerPool>(new FakeRasterWorkerPool),
- 1,
std::numeric_limits<unsigned>::max(),
NULL) {}
@@ -72,7 +70,6 @@ FakeTileManager::FakeTileManager(TileManagerClient* client,
: TileManager(client,
resource_provider,
make_scoped_ptr<RasterWorkerPool>(new FakeRasterWorkerPool),
- 1,
raster_task_limit_bytes,
NULL) {}