summaryrefslogtreecommitdiffstats
path: root/cc/raster
diff options
context:
space:
mode:
authorreveman <reveman@chromium.org>2015-09-23 17:19:43 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-24 00:34:48 +0000
commitd180dfc3198c1e58a8c10f7349f3d949e22c5f3d (patch)
tree3f1b2d58647d991dd3ab1d3ba13da4f7d8205979 /cc/raster
parentf86718093f9c88d956207b527cf5bed4a872a24f (diff)
downloadchromium_src-d180dfc3198c1e58a8c10f7349f3d949e22c5f3d.zip
chromium_src-d180dfc3198c1e58a8c10f7349f3d949e22c5f3d.tar.gz
chromium_src-d180dfc3198c1e58a8c10f7349f3d949e22c5f3d.tar.bz2
Re-land: cc: Implement shared worker contexts.
This moves the responsibility to call BindToCurrentThread/SetupLock out of cc::OutputSurface and to the maintainer of the (possibly) shared context. OutputSurface now needs to be destroyed on the same thread they were created. OutputSurface::DetachFromClient() can be used to destroy any resources that need to be destroyed on the thread that the OutputSurface has been bound to. BUG=523411,525811 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1336733002 Cr-Commit-Position: refs/heads/master@{#350409}
Diffstat (limited to 'cc/raster')
-rw-r--r--cc/raster/tile_task_worker_pool_unittest.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/cc/raster/tile_task_worker_pool_unittest.cc b/cc/raster/tile_task_worker_pool_unittest.cc
index d8e0d19..8ecdb6c 100644
--- a/cc/raster/tile_task_worker_pool_unittest.cc
+++ b/cc/raster/tile_task_worker_pool_unittest.cc
@@ -130,9 +130,10 @@ class TileTaskWorkerPoolTest
TileTaskWorkerPoolTest()
: context_provider_(TestContextProvider::Create()),
- worker_context_provider_(TestContextProvider::Create()),
+ worker_context_provider_(TestContextProvider::CreateWorker()),
all_tile_tasks_finished_(
- base::ThreadTaskRunnerHandle::Get().get(),
+ base::ThreadTaskRunnerHandle::Get()
+ .get(),
base::Bind(&TileTaskWorkerPoolTest::AllTileTasksFinished,
base::Unretained(this))),
timeout_seconds_(5),