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

Unified Diff: cc/test/fake_layer_tree_host_client.cc

Issue 18796008: Implement shareResources==true in TestWebGraphicsContext3D (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Also make TestWebGraphicsContext3D default constructor share resources Created 7 years, 5 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
Index: cc/test/fake_layer_tree_host_client.cc
diff --git a/cc/test/fake_layer_tree_host_client.cc b/cc/test/fake_layer_tree_host_client.cc
index 26ae8abc176da525a3c5ecc4b0601228acb25fc4..0413b08718762f52b5a5218838e1b3801223b757 100644
--- a/cc/test/fake_layer_tree_host_client.cc
+++ b/cc/test/fake_layer_tree_host_client.cc
@@ -28,18 +28,10 @@ scoped_ptr<OutputSurface> FakeLayerTreeHostClient::CreateOutputSurface() {
make_scoped_ptr(new SoftwareOutputDevice)).PassAs<OutputSurface>();
}
- WebKit::WebGraphicsContext3D::Attributes attrs;
- if (use_delegating_renderer_) {
- return FakeOutputSurface::CreateDelegating3d(
- TestWebGraphicsContext3D::Create(attrs)
- .PassAs<WebKit::WebGraphicsContext3D>())
- .PassAs<OutputSurface>();
- }
+ if (use_delegating_renderer_)
+ return FakeOutputSurface::CreateDelegating3d().PassAs<OutputSurface>();
- return FakeOutputSurface::Create3d(
- TestWebGraphicsContext3D::Create(attrs)
- .PassAs<WebKit::WebGraphicsContext3D>())
- .PassAs<OutputSurface>();
+ return CreateFakeOutputSurface();
}
scoped_refptr<cc::ContextProvider> FakeLayerTreeHostClient::

Powered by Google App Engine
This is Rietveld 408576698