OLD | NEW |
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 // Represents the browser side of the browser <--> renderer communication | 5 // Represents the browser side of the browser <--> renderer communication |
6 // channel. There will be one RenderProcessHost per renderer process. | 6 // channel. There will be one RenderProcessHost per renderer process. |
7 | 7 |
8 #include "content/browser/renderer_host/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1244 switches::kEnableSpeechRecognition, | 1244 switches::kEnableSpeechRecognition, |
1245 switches::kMediaDrmEnableNonCompositing, | 1245 switches::kMediaDrmEnableNonCompositing, |
1246 switches::kNetworkCountryIso, | 1246 switches::kNetworkCountryIso, |
1247 switches::kDisableWebAudio, | 1247 switches::kDisableWebAudio, |
1248 #endif | 1248 #endif |
1249 #if defined(OS_MACOSX) | 1249 #if defined(OS_MACOSX) |
1250 // Allow this to be set when invoking the browser and relayed along. | 1250 // Allow this to be set when invoking the browser and relayed along. |
1251 switches::kEnableSandboxLogging, | 1251 switches::kEnableSandboxLogging, |
1252 #endif | 1252 #endif |
1253 #if defined(OS_WIN) | 1253 #if defined(OS_WIN) |
1254 switches::kEnableDirectWrite, | 1254 switches::kDisableDirectWrite, |
1255 switches::kEnableHighResolutionTime, | 1255 switches::kEnableHighResolutionTime, |
1256 #endif | 1256 #endif |
1257 }; | 1257 }; |
1258 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 1258 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
1259 arraysize(kSwitchNames)); | 1259 arraysize(kSwitchNames)); |
1260 | 1260 |
1261 if (browser_cmd.HasSwitch(switches::kTraceStartup) && | 1261 if (browser_cmd.HasSwitch(switches::kTraceStartup) && |
1262 BrowserMainLoop::GetInstance()->is_tracing_startup()) { | 1262 BrowserMainLoop::GetInstance()->is_tracing_startup()) { |
1263 // Pass kTraceStartup switch to renderer only if startup tracing has not | 1263 // Pass kTraceStartup switch to renderer only if startup tracing has not |
1264 // finished. | 1264 // finished. |
(...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2301 void RenderProcessHostImpl::GpuMemoryBufferAllocated( | 2301 void RenderProcessHostImpl::GpuMemoryBufferAllocated( |
2302 IPC::Message* reply, | 2302 IPC::Message* reply, |
2303 const gfx::GpuMemoryBufferHandle& handle) { | 2303 const gfx::GpuMemoryBufferHandle& handle) { |
2304 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2304 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
2305 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, | 2305 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, |
2306 handle); | 2306 handle); |
2307 Send(reply); | 2307 Send(reply); |
2308 } | 2308 } |
2309 | 2309 |
2310 } // namespace content | 2310 } // namespace content |
OLD | NEW |