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 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1242 switches::kDisableWebAudio, | 1242 switches::kDisableWebAudio, |
1243 #endif | 1243 #endif |
1244 #if defined(OS_MACOSX) | 1244 #if defined(OS_MACOSX) |
1245 // Allow this to be set when invoking the browser and relayed along. | 1245 // Allow this to be set when invoking the browser and relayed along. |
1246 switches::kEnableSandboxLogging, | 1246 switches::kEnableSandboxLogging, |
1247 #endif | 1247 #endif |
1248 #if defined(OS_WIN) | 1248 #if defined(OS_WIN) |
1249 switches::kDisableDirectWrite, | 1249 switches::kDisableDirectWrite, |
1250 switches::kEnableHighResolutionTime, | 1250 switches::kEnableHighResolutionTime, |
1251 #endif | 1251 #endif |
| 1252 #if defined(OS_CHROMEOS) |
| 1253 switches::kEnableVaapiAcceleratedVideoEncode, |
| 1254 #endif |
1252 }; | 1255 }; |
1253 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 1256 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
1254 arraysize(kSwitchNames)); | 1257 arraysize(kSwitchNames)); |
1255 | 1258 |
1256 if (browser_cmd.HasSwitch(switches::kTraceStartup) && | 1259 if (browser_cmd.HasSwitch(switches::kTraceStartup) && |
1257 BrowserMainLoop::GetInstance()->is_tracing_startup()) { | 1260 BrowserMainLoop::GetInstance()->is_tracing_startup()) { |
1258 // Pass kTraceStartup switch to renderer only if startup tracing has not | 1261 // Pass kTraceStartup switch to renderer only if startup tracing has not |
1259 // finished. | 1262 // finished. |
1260 renderer_cmd->AppendSwitchASCII( | 1263 renderer_cmd->AppendSwitchASCII( |
1261 switches::kTraceStartup, | 1264 switches::kTraceStartup, |
(...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2358 void RenderProcessHostImpl::GpuMemoryBufferAllocated( | 2361 void RenderProcessHostImpl::GpuMemoryBufferAllocated( |
2359 IPC::Message* reply, | 2362 IPC::Message* reply, |
2360 const gfx::GpuMemoryBufferHandle& handle) { | 2363 const gfx::GpuMemoryBufferHandle& handle) { |
2361 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2364 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
2362 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, | 2365 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, |
2363 handle); | 2366 handle); |
2364 Send(reply); | 2367 Send(reply); |
2365 } | 2368 } |
2366 | 2369 |
2367 } // namespace content | 2370 } // namespace content |
OLD | NEW |