Index: cc/layers/picture_layer_unittest.cc |
diff --git a/cc/layers/picture_layer_unittest.cc b/cc/layers/picture_layer_unittest.cc |
index 54f0bb756e468d493cb752a38f0370c07f2669bd..331193f642c4a4370facce0525ac1de3b8e24295 100644 |
--- a/cc/layers/picture_layer_unittest.cc |
+++ b/cc/layers/picture_layer_unittest.cc |
@@ -35,7 +35,8 @@ TEST(PictureLayerTest, NoTilesIfEmptyBounds) { |
scoped_refptr<PictureLayer> layer = PictureLayer::Create(&client); |
layer->SetBounds(gfx::Size(10, 10)); |
- scoped_ptr<FakeLayerTreeHost> host = FakeLayerTreeHost::Create(); |
+ FakeLayerTreeHostClient host_client(FakeLayerTreeHostClient::DIRECT_3D); |
+ scoped_ptr<FakeLayerTreeHost> host = FakeLayerTreeHost::Create(&host_client); |
host->SetRootLayer(layer); |
layer->SetIsDrawable(true); |
layer->SavePaintProperties(); |
@@ -88,12 +89,14 @@ TEST(PictureLayerTest, RecordingModes) { |
scoped_refptr<PictureLayer> layer = PictureLayer::Create(&client); |
LayerTreeSettings settings; |
- scoped_ptr<FakeLayerTreeHost> host = FakeLayerTreeHost::Create(settings); |
+ FakeLayerTreeHostClient host_client(FakeLayerTreeHostClient::DIRECT_3D); |
+ scoped_ptr<FakeLayerTreeHost> host = |
+ FakeLayerTreeHost::Create(&host_client, settings); |
host->SetRootLayer(layer); |
EXPECT_EQ(Picture::RECORD_NORMALLY, layer->RecordingMode()); |
settings.recording_mode = LayerTreeSettings::RecordWithSkRecord; |
- host = FakeLayerTreeHost::Create(settings); |
+ host = FakeLayerTreeHost::Create(&host_client, settings); |
host->SetRootLayer(layer); |
EXPECT_EQ(Picture::RECORD_WITH_SKRECORD, layer->RecordingMode()); |
} |