Index: cc/trees/occlusion_tracker_unittest.cc |
diff --git a/cc/trees/occlusion_tracker_unittest.cc b/cc/trees/occlusion_tracker_unittest.cc |
index 297a0925adf925f203355b1e1a86c7a9c3545233..b35e437bd3a955467c2ffe1ca9df32403470c54c 100644 |
--- a/cc/trees/occlusion_tracker_unittest.cc |
+++ b/cc/trees/occlusion_tracker_unittest.cc |
@@ -176,7 +176,9 @@ int OcclusionTrackerTestImplThreadTypes::next_layer_impl_id = 1; |
template <typename Types> class OcclusionTrackerTest : public testing::Test { |
protected: |
explicit OcclusionTrackerTest(bool opaque_layers) |
- : opaque_layers_(opaque_layers), host_(FakeLayerTreeHost::Create()) {} |
+ : opaque_layers_(opaque_layers), |
+ client_(FakeLayerTreeHostClient::DIRECT_3D), |
+ host_(FakeLayerTreeHost::Create(&client_)) {} |
virtual void RunMyTest() = 0; |
@@ -441,6 +443,7 @@ template <typename Types> class OcclusionTrackerTest : public testing::Test { |
} |
bool opaque_layers_; |
+ FakeLayerTreeHostClient client_; |
scoped_ptr<FakeLayerTreeHost> host_; |
// These hold ownership of the layers for the duration of the test. |
typename Types::LayerPtrType root_; |