Index: cc/output/gl_renderer_unittest.cc |
diff --git a/cc/output/gl_renderer_unittest.cc b/cc/output/gl_renderer_unittest.cc |
index c98652c28758b339104187bbe0071c703463b171..4befaf51e28e19eca6deacb42e8025f25c51fedb 100644 |
--- a/cc/output/gl_renderer_unittest.cc |
+++ b/cc/output/gl_renderer_unittest.cc |
@@ -556,8 +556,8 @@ |
ClearCountingContext* context = context_owned.get(); |
FakeOutputSurfaceClient output_surface_client; |
- scoped_ptr<OutputSurface> output_surface( |
- FakeOutputSurface::Create3d(context_owned.Pass())); |
+ scoped_ptr<OutputSurface> output_surface(FakeOutputSurface::Create3d( |
+ context_owned.PassAs<TestWebGraphicsContext3D>())); |
CHECK(output_surface->BindToClient(&output_surface_client)); |
scoped_ptr<SharedBitmapManager> shared_bitmap_manager( |
@@ -608,8 +608,8 @@ |
ClearCountingContext* context = context_owned.get(); |
FakeOutputSurfaceClient output_surface_client; |
- scoped_ptr<OutputSurface> output_surface( |
- FakeOutputSurface::Create3d(context_owned.Pass())); |
+ scoped_ptr<OutputSurface> output_surface(FakeOutputSurface::Create3d( |
+ context_owned.PassAs<TestWebGraphicsContext3D>())); |
CHECK(output_surface->BindToClient(&output_surface_client)); |
scoped_ptr<SharedBitmapManager> shared_bitmap_manager( |
@@ -653,8 +653,8 @@ |
ClearCountingContext* context = context_owned.get(); |
FakeOutputSurfaceClient output_surface_client; |
- scoped_ptr<OutputSurface> output_surface( |
- FakeOutputSurface::CreateOffscreen(context_owned.Pass())); |
+ scoped_ptr<OutputSurface> output_surface(FakeOutputSurface::CreateOffscreen( |
+ context_owned.PassAs<TestWebGraphicsContext3D>())); |
CHECK(output_surface->BindToClient(&output_surface_client)); |
scoped_ptr<SharedBitmapManager> shared_bitmap_manager( |
@@ -732,8 +732,8 @@ |
new VisibilityChangeIsLastCallTrackingContext); |
VisibilityChangeIsLastCallTrackingContext* context = context_owned.get(); |
- scoped_refptr<TestContextProvider> provider = |
- TestContextProvider::Create(context_owned.Pass()); |
+ scoped_refptr<TestContextProvider> provider = TestContextProvider::Create( |
+ context_owned.PassAs<TestWebGraphicsContext3D>()); |
provider->support()->SetSurfaceVisibleCallback(base::Bind( |
&VisibilityChangeIsLastCallTrackingContext::set_last_call_was_visibility, |
@@ -811,8 +811,8 @@ |
TextureStateTrackingContext* context = context_owned.get(); |
FakeOutputSurfaceClient output_surface_client; |
- scoped_ptr<OutputSurface> output_surface( |
- FakeOutputSurface::Create3d(context_owned.Pass())); |
+ scoped_ptr<OutputSurface> output_surface(FakeOutputSurface::Create3d( |
+ context_owned.PassAs<TestWebGraphicsContext3D>())); |
CHECK(output_surface->BindToClient(&output_surface_client)); |
scoped_ptr<SharedBitmapManager> shared_bitmap_manager( |
@@ -902,8 +902,8 @@ |
NoClearRootRenderPassMockContext* mock_context = mock_context_owned.get(); |
FakeOutputSurfaceClient output_surface_client; |
- scoped_ptr<OutputSurface> output_surface( |
- FakeOutputSurface::Create3d(mock_context_owned.Pass())); |
+ scoped_ptr<OutputSurface> output_surface(FakeOutputSurface::Create3d( |
+ mock_context_owned.PassAs<TestWebGraphicsContext3D>())); |
CHECK(output_surface->BindToClient(&output_surface_client)); |
scoped_ptr<SharedBitmapManager> shared_bitmap_manager( |
@@ -1000,8 +1000,8 @@ |
new ScissorTestOnClearCheckingContext); |
FakeOutputSurfaceClient output_surface_client; |
- scoped_ptr<OutputSurface> output_surface( |
- FakeOutputSurface::Create3d(context_owned.Pass())); |
+ scoped_ptr<OutputSurface> output_surface(FakeOutputSurface::Create3d( |
+ context_owned.PassAs<TestWebGraphicsContext3D>())); |
CHECK(output_surface->BindToClient(&output_surface_client)); |
scoped_ptr<SharedBitmapManager> shared_bitmap_manager( |
@@ -1098,7 +1098,8 @@ |
FakeOutputSurfaceClient output_surface_client; |
scoped_ptr<NonReshapableOutputSurface> output_surface( |
- new NonReshapableOutputSurface(context_owned.Pass())); |
+ new NonReshapableOutputSurface( |
+ context_owned.PassAs<TestWebGraphicsContext3D>())); |
CHECK(output_surface->BindToClient(&output_surface_client)); |
output_surface->set_fixed_size(gfx::Size(100, 100)); |
@@ -1289,8 +1290,8 @@ |
new FlippedScissorAndViewportContext); |
FakeOutputSurfaceClient output_surface_client; |
- scoped_ptr<OutputSurface> output_surface( |
- new NonReshapableOutputSurface(context_owned.Pass())); |
+ scoped_ptr<OutputSurface> output_surface(new NonReshapableOutputSurface( |
+ context_owned.PassAs<TestWebGraphicsContext3D>())); |
CHECK(output_surface->BindToClient(&output_surface_client)); |
scoped_ptr<SharedBitmapManager> shared_bitmap_manager( |