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

Side by Side Diff: content/renderer/renderer_main.cc

Issue 1472063007: mustash: enable GPU Compositing in renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address issues. Created 5 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/base_switches.h" 5 #include "base/base_switches.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/debug/debugger.h" 7 #include "base/debug/debugger.h"
8 #include "base/debug/leak_annotations.h" 8 #include "base/debug/leak_annotations.h"
9 #include "base/feature_list.h" 9 #include "base/feature_list.h"
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // Don't use the TRACE_EVENT0 macro because the tracing infrastructure doesn't 87 // Don't use the TRACE_EVENT0 macro because the tracing infrastructure doesn't
88 // expect synchronous events around the main loop of a thread. 88 // expect synchronous events around the main loop of a thread.
89 TRACE_EVENT_ASYNC_BEGIN0("startup", "RendererMain", 0); 89 TRACE_EVENT_ASYNC_BEGIN0("startup", "RendererMain", 0);
90 90
91 const base::TimeTicks renderer_main_entry_time = base::TimeTicks::Now(); 91 const base::TimeTicks renderer_main_entry_time = base::TimeTicks::Now();
92 92
93 base::trace_event::TraceLog::GetInstance()->SetProcessName("Renderer"); 93 base::trace_event::TraceLog::GetInstance()->SetProcessName("Renderer");
94 base::trace_event::TraceLog::GetInstance()->SetProcessSortIndex( 94 base::trace_event::TraceLog::GetInstance()->SetProcessSortIndex(
95 kTraceEventRendererProcessSortIndex); 95 kTraceEventRendererProcessSortIndex);
96 96
97 const base::CommandLine& parsed_command_line = parameters.command_line;
98
97 #if defined(MOJO_SHELL_CLIENT) 99 #if defined(MOJO_SHELL_CLIENT)
98 MojoShellConnectionImpl::Create(); 100 if (parsed_command_line.HasSwitch(switches::kEnableMojoShellConnection))
101 MojoShellConnectionImpl::Create();
99 #endif 102 #endif
100 103
101 const base::CommandLine& parsed_command_line = parameters.command_line;
102
103 #if defined(OS_MACOSX) 104 #if defined(OS_MACOSX)
104 base::mac::ScopedNSAutoreleasePool* pool = parameters.autorelease_pool; 105 base::mac::ScopedNSAutoreleasePool* pool = parameters.autorelease_pool;
105 #endif // OS_MACOSX 106 #endif // OS_MACOSX
106 107
107 #if defined(OS_CHROMEOS) 108 #if defined(OS_CHROMEOS)
108 // As Zygote process starts up earlier than browser process gets its own 109 // As Zygote process starts up earlier than browser process gets its own
109 // locale (at login time for Chrome OS), we have to set the ICU default 110 // locale (at login time for Chrome OS), we have to set the ICU default
110 // locale for renderer process here. 111 // locale for renderer process here.
111 // ICU locale will be used for fallback font selection etc. 112 // ICU locale will be used for fallback font selection etc.
112 if (parsed_command_line.HasSwitch(switches::kLang)) { 113 if (parsed_command_line.HasSwitch(switches::kLang)) {
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // ignore shutdown-only leaks. 233 // ignore shutdown-only leaks.
233 __lsan_do_leak_check(); 234 __lsan_do_leak_check();
234 #endif 235 #endif
235 } 236 }
236 platform.PlatformUninitialize(); 237 platform.PlatformUninitialize();
237 TRACE_EVENT_ASYNC_END0("startup", "RendererMain", 0); 238 TRACE_EVENT_ASYNC_END0("startup", "RendererMain", 0);
238 return 0; 239 return 0;
239 } 240 }
240 241
241 } // namespace content 242 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698