Index: cc/test/layer_tree_host_common_test.cc |
diff --git a/cc/test/layer_tree_host_common_test.cc b/cc/test/layer_tree_host_common_test.cc |
index 3b6b14b5dec2efcd5ea3ebd6e6259d598de4830c..33e0cafc47c1f06520c1cc28e6268d59811dd610 100644 |
--- a/cc/test/layer_tree_host_common_test.cc |
+++ b/cc/test/layer_tree_host_common_test.cc |
@@ -6,12 +6,14 @@ |
#include "cc/layers/layer.h" |
#include "cc/layers/layer_impl.h" |
+#include "cc/test/fake_layer_tree_host.h" |
#include "cc/trees/layer_tree_host_common.h" |
namespace cc { |
LayerTreeHostCommonTestBase::LayerTreeHostCommonTestBase() |
- : render_surface_layer_list_count_(0) { |
+ : client_(FakeLayerTreeHostClient::DIRECT_3D), |
+ render_surface_layer_list_count_(0) { |
} |
LayerTreeHostCommonTestBase::~LayerTreeHostCommonTestBase() { |
@@ -110,4 +112,9 @@ void LayerTreeHostCommonTestBase::ExecuteCalculateDrawProperties( |
LayerTreeHostCommon::CalculateDrawProperties(&inputs); |
} |
+scoped_ptr<FakeLayerTreeHost> |
+LayerTreeHostCommonTestBase::CreateFakeLayerTreeHost() { |
+ return FakeLayerTreeHost::Create(&client_); |
+} |
+ |
} // namespace cc |