Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2530)

Unified Diff: cc/test/layer_tree_test.cc

Issue 251343002: Remove offscreen compositor contexts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-offscreencontext: include Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/layer_tree_test.h ('k') | cc/test/pixel_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_tree_test.cc
diff --git a/cc/test/layer_tree_test.cc b/cc/test/layer_tree_test.cc
index 5c85d160670ea09459dbc904a343a6d0fbccda96..f67ee7c7c84beece8934d8099d84fffcdf171291 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();
« no previous file with comments | « cc/test/layer_tree_test.h ('k') | cc/test/pixel_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698