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

Unified Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 18796008: Implement shareResources==true in TestWebGraphicsContext3D (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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/trees/layer_tree_host_impl_unittest.cc
diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc
index 85c9836d3d601ecdd43fa03ccc086a14623bec4c..1ac92a021401641a609cdb80d9b866d23cdd459b 100644
--- a/cc/trees/layer_tree_host_impl_unittest.cc
+++ b/cc/trees/layer_tree_host_impl_unittest.cc
@@ -3482,7 +3482,7 @@ class TrackingWebGraphicsContext3D : public TestWebGraphicsContext3D {
TEST_F(LayerTreeHostImplTest, LayersFreeTextures) {
scoped_ptr<TestWebGraphicsContext3D> context =
- TestWebGraphicsContext3D::Create();
+ TestWebGraphicsContext3D::CreateShared();
TestWebGraphicsContext3D* context3d = context.get();
scoped_ptr<OutputSurface> output_surface = FakeOutputSurface::Create3d(
context.PassAs<WebKit::WebGraphicsContext3D>()).PassAs<OutputSurface>();
@@ -6022,7 +6022,7 @@ TEST_F(LayerTreeHostImplTest, DeferredInitializeSmoke) {
EXPECT_FALSE(did_try_initialize_renderer_);
EXPECT_TRUE(output_surface_ptr->SetAndInitializeContext3D(
scoped_ptr<WebKit::WebGraphicsContext3D>(
- TestWebGraphicsContext3D::Create())));
+ TestWebGraphicsContext3D::CreateShared())));
EXPECT_TRUE(did_try_initialize_renderer_);
// Defer intialized GL draw.

Powered by Google App Engine
This is Rietveld 408576698