diff options
author | reveman <reveman@chromium.org> | 2015-09-16 16:23:31 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-16 23:24:12 +0000 |
commit | a47ef41ea03d3a5b8965eb700b682ddf8a1f055a (patch) | |
tree | ceeacf5cb585c19c4bbfb8c8db1c26f9a15f204b /cc/layers/picture_layer_impl_perftest.cc | |
parent | ebfca3a9126765796e141f541ab222158b6320ae (diff) | |
download | chromium_src-a47ef41ea03d3a5b8965eb700b682ddf8a1f055a.zip chromium_src-a47ef41ea03d3a5b8965eb700b682ddf8a1f055a.tar.gz chromium_src-a47ef41ea03d3a5b8965eb700b682ddf8a1f055a.tar.bz2 |
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
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1336733002
Cr-Commit-Position: refs/heads/master@{#349274}
Diffstat (limited to 'cc/layers/picture_layer_impl_perftest.cc')
-rw-r--r-- | cc/layers/picture_layer_impl_perftest.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cc/layers/picture_layer_impl_perftest.cc b/cc/layers/picture_layer_impl_perftest.cc index 9e7d82b..85d8c26 100644 --- a/cc/layers/picture_layer_impl_perftest.cc +++ b/cc/layers/picture_layer_impl_perftest.cc @@ -41,6 +41,7 @@ class PictureLayerImplPerfTest : public testing::Test { public: PictureLayerImplPerfTest() : proxy_(base::ThreadTaskRunnerHandle::Get()), + output_surface_(FakeOutputSurface::Create3d()), host_impl_(LayerTreeSettings(), &proxy_, &shared_bitmap_manager_, @@ -50,7 +51,7 @@ class PictureLayerImplPerfTest : public testing::Test { kTimeCheckInterval) {} void SetUp() override { - host_impl_.InitializeRenderer(FakeOutputSurface::Create3d()); + host_impl_.InitializeRenderer(output_surface_.get()); } void SetupActiveTree(const gfx::Size& layer_bounds, @@ -164,6 +165,7 @@ class PictureLayerImplPerfTest : public testing::Test { TestSharedBitmapManager shared_bitmap_manager_; TestTaskGraphRunner task_graph_runner_; FakeImplProxy proxy_; + scoped_ptr<OutputSurface> output_surface_; FakeLayerTreeHostImpl host_impl_; FakePictureLayerImpl* active_layer_; LapTimer timer_; |