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

Unified Diff: content/renderer/render_view_impl.h

Issue 1245863003: Initialize CompositorDependencies in RenderWidget's constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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: content/renderer/render_view_impl.h
diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h
index e58d66919ae56a67e9094005634b7b927e1012f1..7c6dd554ae207d3f9ab6cb7176712db3f8d69930 100644
--- a/content/renderer/render_view_impl.h
+++ b/content/renderer/render_view_impl.h
@@ -161,14 +161,15 @@ class CONTENT_EXPORT RenderViewImpl
// |opener_id| will be MSG_ROUTING_NONE. When |swapped_out| is true, the
// |proxy_routing_id| is specified, so a RenderFrameProxy can be created for
// this RenderView's main RenderFrame.
- static RenderViewImpl* Create(const ViewMsg_New_Params& params,
- CompositorDependencies* compositor_deps,
+ static RenderViewImpl* Create(CompositorDependencies* compositor_deps,
+ const ViewMsg_New_Params& params,
bool was_created_by_renderer);
// Used by content_layouttest_support to hook into the creation of
// RenderViewImpls.
- static void InstallCreateHook(
- RenderViewImpl* (*create_render_view_impl)(const ViewMsg_New_Params&));
+ static void InstallCreateHook(RenderViewImpl* (*create_render_view_impl)(
+ CompositorDependencies* compositor_deps,
+ const ViewMsg_New_Params&));
// Returns the RenderViewImpl containing the given WebView.
static RenderViewImpl* FromWebView(blink::WebView* webview);
@@ -487,10 +488,10 @@ class CONTENT_EXPORT RenderViewImpl
void DidCompletePageScaleAnimation() override;
protected:
- explicit RenderViewImpl(const ViewMsg_New_Params& params);
+ RenderViewImpl(CompositorDependencies* compositor_deps,
+ const ViewMsg_New_Params& params);
void Initialize(const ViewMsg_New_Params& params,
- CompositorDependencies* compositor_deps,
bool was_created_by_renderer);
void SetScreenMetricsEmulationParameters(
bool enabled,

Powered by Google App Engine
This is Rietveld 408576698