File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 30
30
#include " base/values.h"
31
31
#include " chrome/common/child_process_logging.h"
32
32
#include " content/browser/child_process_security_policy_impl.h"
33
- #include " content/public/browser/browser_url_handler.h"
34
33
#include " content/nw/src/browser/printing/printing_message_filter.h"
34
+ #include " content/public/browser/browser_url_handler.h"
35
+ #include " content/public/browser/compositor_util.h"
35
36
#include " content/public/browser/render_process_host.h"
36
37
#include " content/public/browser/render_view_host.h"
37
38
#include " content/public/browser/resource_dispatcher_host.h"
@@ -159,8 +160,13 @@ void ShellContentBrowserClient::AppendExtraCommandLineSwitches(
159
160
}
160
161
161
162
#endif // OS_MACOSX
163
+
162
164
if (command_line->GetSwitchValueASCII (" type" ) != " renderer" )
163
165
return ;
166
+
167
+ if (content::IsThreadedCompositingEnabled ())
168
+ command_line->AppendSwitch (switches::kEnableThreadedCompositing );
169
+
164
170
if (child_process_id > 0 ) {
165
171
content::RenderWidgetHost::List widgets =
166
172
content::RenderWidgetHost::GetRenderWidgetHosts ();
You can’t perform that action at this time.
0 commit comments