diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-24 19:48:56 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-24 19:48:56 +0000 |
commit | 3b2eb8890490df87ed957ba5076bcb5a39832c3c (patch) | |
tree | 69f90778f6a6a5b14da80bbaf886bfec97783b88 /cc/test/layer_tree_test.cc | |
parent | 1502e60861419bd0499f9b52a11b90fc55dc1abc (diff) | |
download | chromium_src-3b2eb8890490df87ed957ba5076bcb5a39832c3c.zip chromium_src-3b2eb8890490df87ed957ba5076bcb5a39832c3c.tar.gz chromium_src-3b2eb8890490df87ed957ba5076bcb5a39832c3c.tar.bz2 |
Remove offscreen compositor contexts.
After https://codereview.chromium.org/250083002/ cc no longer uses an
offscreen context for ganesh filters. Instead using the main onscreen
context.
So, delete the code to create offscreen contexts for the compositor.
R=abarth@chromium.org, boliu@chromium.org, enne@chromium.org, piman@chromium.org, enne, piman
BUG=366132,366130
Review URL: https://codereview.chromium.org/251343002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265974 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/layer_tree_test.cc')
-rw-r--r-- | cc/test/layer_tree_test.cc | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/cc/test/layer_tree_test.cc b/cc/test/layer_tree_test.cc index 5c85d16..f67ee7c 100644 --- a/cc/test/layer_tree_test.cc +++ b/cc/test/layer_tree_test.cc @@ -271,10 +271,6 @@ class LayerTreeHostClientForTesting : public LayerTreeHostClient, virtual void DidPostSwapBuffers() OVERRIDE {} virtual void DidAbortSwapBuffers() OVERRIDE {} - virtual scoped_refptr<ContextProvider> OffscreenContextProvider() OVERRIDE { - return test_hooks_->OffscreenContextProvider(); - } - private: explicit LayerTreeHostClientForTesting(TestHooks* test_hooks) : test_hooks_(test_hooks) {} @@ -682,13 +678,6 @@ scoped_ptr<FakeOutputSurface> LayerTreeTest::CreateFakeOutputSurface( return FakeOutputSurface::Create3d(); } -scoped_refptr<ContextProvider> LayerTreeTest::OffscreenContextProvider() { - if (!compositor_contexts_.get() || - compositor_contexts_->DestroyedOnMainThread()) - compositor_contexts_ = TestContextProvider::Create(); - return compositor_contexts_; -} - TestWebGraphicsContext3D* LayerTreeTest::TestContext() { return static_cast<TestContextProvider*>( output_surface_->context_provider().get())->TestContext3d(); |