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

Unified Diff: webkit/support/webkit_support.h

Issue 12385074: Remove WebCompositorSupport::initialize/shutdown dependency from webkit_support::CreateLayerTreeView (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test_webkit_platform_support 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 d8997905c4b77d49cbc994a775e939b2d33b00d0..600500448519109b34f95c5c0a30eb9a8704d817 100644
--- a/webkit/support/webkit_support.h
+++ b/webkit/support/webkit_support.h
@@ -133,6 +133,12 @@ WebKit::WebGraphicsContext3D* CreateGraphicsContext3D(
const WebKit::WebGraphicsContext3D::Attributes& attributes,
WebKit::WebView* web_view);
+enum LayerTreeViewType {
+ FAKE_CONTEXT,
+ SOFTWARE_CONTEXT,
+ MESA_CONTEXT
+};
+
class DRTLayerTreeViewClient {
public:
virtual ~DRTLayerTreeViewClient() { }
@@ -140,6 +146,12 @@ class DRTLayerTreeViewClient {
virtual void ScheduleComposite() = 0;
};
+WebKit::WebLayerTreeView* CreateLayerTreeView(
+ LayerTreeViewType type,
+ DRTLayerTreeViewClient* client,
+ WebKit::WebThread* thread);
+
+// DEPRECATED. TODO(jamesr): Remove these two after fixing WebKit-side callers.
WebKit::WebLayerTreeView* CreateLayerTreeViewSoftware(
DRTLayerTreeViewClient* client);
WebKit::WebLayerTreeView* CreateLayerTreeView3d(
« 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