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

Unified Diff: webkit/compositor_bindings/web_layer_tree_view_impl.h

Issue 12212007: cc: Route offscreen context creation for compositor to the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Android build 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
Index: webkit/compositor_bindings/web_layer_tree_view_impl.h
diff --git a/webkit/compositor_bindings/web_layer_tree_view_impl.h b/webkit/compositor_bindings/web_layer_tree_view_impl.h
index 50beadbc396d919e134f21a87311dbfb7f03158e..722a20887292218f30ae84daae57ac24a72b1a89 100644
--- a/webkit/compositor_bindings/web_layer_tree_view_impl.h
+++ b/webkit/compositor_bindings/web_layer_tree_view_impl.h
@@ -75,10 +75,17 @@ public:
virtual void didCommitAndDrawFrame() OVERRIDE;
virtual void didCompleteSwapBuffers() OVERRIDE;
virtual void scheduleComposite() OVERRIDE;
+ virtual scoped_refptr<ui::ContextProvider> OffscreenContextProviderForMainThread() OVERRIDE;
+ virtual scoped_refptr<ui::ContextProvider> OffscreenContextProviderForCompositorThread() OVERRIDE;
private:
WebLayerTreeViewClient* m_client;
scoped_ptr<cc::LayerTreeHost> m_layerTreeHost;
+
+ class MainThreadContextProvider;
+ scoped_refptr<MainThreadContextProvider> m_contextsMainThread;
+ class CompositorThreadContextProvider;
+ scoped_refptr<CompositorThreadContextProvider> m_contextsCompositorThread;
};
} // namespace WebKit

Powered by Google App Engine
This is Rietveld 408576698