Index: webkit/support/test_webkit_platform_support.cc |
diff --git a/webkit/support/test_webkit_platform_support.cc b/webkit/support/test_webkit_platform_support.cc |
index 37afb4cb4e38fc2e752385b5779447156d40093c..a8897a9a34b5c6b14cd5c15729894dfa14dda4f5 100644 |
--- a/webkit/support/test_webkit_platform_support.cc |
+++ b/webkit/support/test_webkit_platform_support.cc |
@@ -31,6 +31,7 @@ |
#include "third_party/hyphen/hyphen.h" |
#include "v8/include/v8.h" |
#include "webkit/appcache/web_application_cache_host_impl.h" |
+#include "webkit/compositor_bindings/web_layer_tree_view_impl_for_testing.h" |
#include "webkit/database/vfs_backend.h" |
#include "webkit/glue/simple_webmimeregistry_impl.h" |
#include "webkit/glue/webclipboard_impl.h" |
@@ -581,3 +582,17 @@ WebKit::WebString TestWebKitPlatformSupport::webKitRootDir() { |
return webkit_support::GetWebKitRootDir(); |
} |
+#if HAVE_CREATELAYERTREEVIEWFORTESTING |
+WebKit::WebLayerTreeView* |
+ TestWebKitPlatformSupport::createLayerTreeViewForTesting( |
+ TestViewType type) { |
+ // TODO(jamesr): Support TestViewTypeLayoutTest. |
+ DCHECK_EQ(TestViewTypeUnitTest, type); |
+ scoped_ptr<WebKit::WebLayerTreeViewImplForTesting> view( |
+ new WebKit::WebLayerTreeViewImplForTesting); |
+ if (!view->initialize()) |
+ return NULL; |
+ return view.release(); |
+} |
+#endif |
+ |