| 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 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1251 switches::kDisableWebAudio, | 1251 switches::kDisableWebAudio, |
| 1252 #endif | 1252 #endif |
| 1253 #if defined(OS_MACOSX) | 1253 #if defined(OS_MACOSX) |
| 1254 // Allow this to be set when invoking the browser and relayed along. | 1254 // Allow this to be set when invoking the browser and relayed along. |
| 1255 switches::kEnableSandboxLogging, | 1255 switches::kEnableSandboxLogging, |
| 1256 #endif | 1256 #endif |
| 1257 #if defined(OS_WIN) | 1257 #if defined(OS_WIN) |
| 1258 switches::kDisableDirectWrite, | 1258 switches::kDisableDirectWrite, |
| 1259 switches::kEnableHighResolutionTime, | 1259 switches::kEnableHighResolutionTime, |
| 1260 #endif | 1260 #endif |
| 1261 #if defined(OS_CHROMEOS) |
| 1262 switches::kEnableVaapiAcceleratedVideoEncode, |
| 1263 #endif |
| 1261 }; | 1264 }; |
| 1262 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 1265 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
| 1263 arraysize(kSwitchNames)); | 1266 arraysize(kSwitchNames)); |
| 1264 | 1267 |
| 1265 if (browser_cmd.HasSwitch(switches::kTraceStartup) && | 1268 if (browser_cmd.HasSwitch(switches::kTraceStartup) && |
| 1266 BrowserMainLoop::GetInstance()->is_tracing_startup()) { | 1269 BrowserMainLoop::GetInstance()->is_tracing_startup()) { |
| 1267 // Pass kTraceStartup switch to renderer only if startup tracing has not | 1270 // Pass kTraceStartup switch to renderer only if startup tracing has not |
| 1268 // finished. | 1271 // finished. |
| 1269 renderer_cmd->AppendSwitchASCII( | 1272 renderer_cmd->AppendSwitchASCII( |
| 1270 switches::kTraceStartup, | 1273 switches::kTraceStartup, |
| (...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2367 void RenderProcessHostImpl::GpuMemoryBufferAllocated( | 2370 void RenderProcessHostImpl::GpuMemoryBufferAllocated( |
| 2368 IPC::Message* reply, | 2371 IPC::Message* reply, |
| 2369 const gfx::GpuMemoryBufferHandle& handle) { | 2372 const gfx::GpuMemoryBufferHandle& handle) { |
| 2370 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2373 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 2371 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, | 2374 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, |
| 2372 handle); | 2375 handle); |
| 2373 Send(reply); | 2376 Send(reply); |
| 2374 } | 2377 } |
| 2375 | 2378 |
| 2376 } // namespace content | 2379 } // namespace content |
| OLD | NEW |