Index: webkit/support/webkit_support.cc |
diff --git a/webkit/support/webkit_support.cc b/webkit/support/webkit_support.cc |
index f498f0bbe4bc32f1107287017d89e161c63c75cf..1f0d6af1aea3637706efbffc321928e39ac47994 100644 |
--- a/webkit/support/webkit_support.cc |
+++ b/webkit/support/webkit_support.cc |
@@ -520,9 +520,10 @@ WebKit::WebGraphicsContext3D* CreateGraphicsContext3D( |
return NULL; |
} |
+template <typename Client> |
static WebKit::WebLayerTreeView* CreateLayerTreeView( |
WebKit::WebLayerTreeViewImplForTesting::RenderingType type, |
- WebKit::WebLayerTreeViewClient* client) { |
+ Client* client) { |
scoped_ptr<WebKit::WebLayerTreeViewImplForTesting> view( |
new WebKit::WebLayerTreeViewImplForTesting(type, client)); |
@@ -551,6 +552,18 @@ WebKit::WebLayerTreeView* CreateLayerTreeView3d( |
WebKit::WebLayerTreeViewImplForTesting::MESA_CONTEXT, client); |
} |
+WebKit::WebLayerTreeView* CreateLayerTreeViewSoftware( |
+ DRTLayerTreeViewClient* client) { |
+ return CreateLayerTreeView( |
+ WebKit::WebLayerTreeViewImplForTesting::SOFTWARE_CONTEXT, client); |
+} |
+ |
+WebKit::WebLayerTreeView* CreateLayerTreeView3d( |
+ DRTLayerTreeViewClient* client) { |
+ return CreateLayerTreeView( |
+ WebKit::WebLayerTreeViewImplForTesting::MESA_CONTEXT, client); |
+} |
+ |
void RegisterMockedURL(const WebKit::WebURL& url, |
const WebKit::WebURLResponse& response, |
const WebKit::WebString& file_path) { |