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

Unified Diff: webkit/support/webkit_support.h

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/test_webkit_platform_support.cc ('k') | webkit/support/webkit_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/webkit_support.h
diff --git a/webkit/support/webkit_support.h b/webkit/support/webkit_support.h
index 1f391df625733d3db5c338b97f91361ccff83b11..03b1031b079ff840ef2a9c1fae6aed21a0af51d4 100644
--- a/webkit/support/webkit_support.h
+++ b/webkit/support/webkit_support.h
@@ -134,11 +134,23 @@ WebKit::WebGraphicsContext3D* CreateGraphicsContext3D(
const WebKit::WebGraphicsContext3D::Attributes& attributes,
WebKit::WebView* web_view);
+class DRTLayerTreeViewClient {
+ public:
+ virtual ~DRTLayerTreeViewClient() { }
+ virtual void Layout() = 0;
+ virtual void ScheduleComposite() = 0;
+};
+
WebKit::WebLayerTreeView* CreateLayerTreeViewSoftware(
WebKit::WebLayerTreeViewClient* client);
WebKit::WebLayerTreeView* CreateLayerTreeView3d(
WebKit::WebLayerTreeViewClient* client);
+WebKit::WebLayerTreeView* CreateLayerTreeViewSoftware(
+ DRTLayerTreeViewClient* client);
+WebKit::WebLayerTreeView* CreateLayerTreeView3d(
+ DRTLayerTreeViewClient* client);
+
// ------- URL load mocking.
// Registers the file at |file_path| to be served when |url| is requested.
// |response| is the response provided with the contents.
« no previous file with comments | « webkit/support/test_webkit_platform_support.cc ('k') | webkit/support/webkit_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698