| 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 1239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1250 switches::kDisableWebAudio, | 1250 switches::kDisableWebAudio, |
| 1251 #endif | 1251 #endif |
| 1252 #if defined(OS_MACOSX) | 1252 #if defined(OS_MACOSX) |
| 1253 // Allow this to be set when invoking the browser and relayed along. | 1253 // Allow this to be set when invoking the browser and relayed along. |
| 1254 switches::kEnableSandboxLogging, | 1254 switches::kEnableSandboxLogging, |
| 1255 #endif | 1255 #endif |
| 1256 #if defined(OS_WIN) | 1256 #if defined(OS_WIN) |
| 1257 switches::kDisableDirectWrite, | 1257 switches::kDisableDirectWrite, |
| 1258 #endif | 1258 #endif |
| 1259 #if defined(OS_CHROMEOS) | 1259 #if defined(OS_CHROMEOS) |
| 1260 switches::kEnableVaapiAcceleratedVideoEncode, | 1260 switches::kDisableVaapiAcceleratedVideoEncode, |
| 1261 #endif | 1261 #endif |
| 1262 }; | 1262 }; |
| 1263 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 1263 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
| 1264 arraysize(kSwitchNames)); | 1264 arraysize(kSwitchNames)); |
| 1265 | 1265 |
| 1266 if (browser_cmd.HasSwitch(switches::kTraceStartup) && | 1266 if (browser_cmd.HasSwitch(switches::kTraceStartup) && |
| 1267 BrowserMainLoop::GetInstance()->is_tracing_startup()) { | 1267 BrowserMainLoop::GetInstance()->is_tracing_startup()) { |
| 1268 // Pass kTraceStartup switch to renderer only if startup tracing has not | 1268 // Pass kTraceStartup switch to renderer only if startup tracing has not |
| 1269 // finished. | 1269 // finished. |
| 1270 renderer_cmd->AppendSwitchASCII( | 1270 renderer_cmd->AppendSwitchASCII( |
| (...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2351 } | 2351 } |
| 2352 | 2352 |
| 2353 void RenderProcessHostImpl::OnDeletedGpuMemoryBuffer( | 2353 void RenderProcessHostImpl::OnDeletedGpuMemoryBuffer( |
| 2354 gfx::GpuMemoryBufferType type, | 2354 gfx::GpuMemoryBufferType type, |
| 2355 const gfx::GpuMemoryBufferId& id) { | 2355 const gfx::GpuMemoryBufferId& id) { |
| 2356 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2356 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 2357 GpuMemoryBufferImpl::DeletedByChildProcess(type, id, GetHandle()); | 2357 GpuMemoryBufferImpl::DeletedByChildProcess(type, id, GetHandle()); |
| 2358 } | 2358 } |
| 2359 | 2359 |
| 2360 } // namespace content | 2360 } // namespace content |
| OLD | NEW |