summaryrefslogtreecommitdiffstats
path: root/cc/layers/picture_image_layer_impl_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/layers/picture_image_layer_impl_unittest.cc')
-rw-r--r--cc/layers/picture_image_layer_impl_unittest.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/cc/layers/picture_image_layer_impl_unittest.cc b/cc/layers/picture_image_layer_impl_unittest.cc
index 06f53ef..3f1d36c 100644
--- a/cc/layers/picture_image_layer_impl_unittest.cc
+++ b/cc/layers/picture_image_layer_impl_unittest.cc
@@ -43,8 +43,7 @@ class PictureImageLayerImplTest : public testing::Test {
&shared_bitmap_manager_) {
tiling_client_.SetTileSize(ImplSidePaintingSettings().default_tile_size);
host_impl_.CreatePendingTree();
- host_impl_.InitializeRenderer(
- FakeOutputSurface::Create3d().PassAs<OutputSurface>());
+ host_impl_.InitializeRenderer(FakeOutputSurface::Create3d());
}
scoped_ptr<TestablePictureImageLayerImpl> CreateLayer(int id,
@@ -126,7 +125,7 @@ TEST_F(PictureImageLayerImplTest, IgnoreIdealContentScale) {
EXPECT_EQ(1.f, pending_layer->tilings()->tiling_at(0)->contents_scale());
// Push to active layer.
- host_impl_.pending_tree()->SetRootLayer(pending_layer.PassAs<LayerImpl>());
+ host_impl_.pending_tree()->SetRootLayer(pending_layer.Pass());
host_impl_.ActivateSyncTree();
TestablePictureImageLayerImpl* active_layer =
static_cast<TestablePictureImageLayerImpl*>(