Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: webkit/support/webkit_support.cc

Issue 12330184: Use different client interface for WebLayerTreeViewForTesting to decouple from WebLayerTreeViewClie… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/support/webkit_support.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « webkit/support/webkit_support.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698