| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1328 static_cast<gfx::BufferFormat>(format), | 1328 static_cast<gfx::BufferFormat>(format), |
| 1329 gfx::BufferUsage::GPU_READ_CPU_READ_WRITE); | 1329 gfx::BufferUsage::GPU_READ_CPU_READ_WRITE); |
| 1330 } | 1330 } |
| 1331 command_line->AppendSwitchASCII(switches::kVideoImageTextureTarget, | 1331 command_line->AppendSwitchASCII(switches::kVideoImageTextureTarget, |
| 1332 UintVectorToString(image_targets)); | 1332 UintVectorToString(image_targets)); |
| 1333 | 1333 |
| 1334 // Appending disable-gpu-feature switches due to software rendering list. | 1334 // Appending disable-gpu-feature switches due to software rendering list. |
| 1335 GpuDataManagerImpl* gpu_data_manager = GpuDataManagerImpl::GetInstance(); | 1335 GpuDataManagerImpl* gpu_data_manager = GpuDataManagerImpl::GetInstance(); |
| 1336 DCHECK(gpu_data_manager); | 1336 DCHECK(gpu_data_manager); |
| 1337 gpu_data_manager->AppendRendererCommandLine(command_line); | 1337 gpu_data_manager->AppendRendererCommandLine(command_line); |
| 1338 |
| 1339 // Slimming Paint v2 implies layer lists in the renderer. |
| 1340 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1341 switches::kEnableSlimmingPaintV2)) |
| 1342 command_line->AppendSwitch(cc::switches::kEnableLayerLists); |
| 1338 } | 1343 } |
| 1339 | 1344 |
| 1340 void RenderProcessHostImpl::AppendRendererCommandLine( | 1345 void RenderProcessHostImpl::AppendRendererCommandLine( |
| 1341 base::CommandLine* command_line) const { | 1346 base::CommandLine* command_line) const { |
| 1342 // Pass the process type first, so it shows first in process listings. | 1347 // Pass the process type first, so it shows first in process listings. |
| 1343 command_line->AppendSwitchASCII(switches::kProcessType, | 1348 command_line->AppendSwitchASCII(switches::kProcessType, |
| 1344 switches::kRendererProcess); | 1349 switches::kRendererProcess); |
| 1345 | 1350 |
| 1346 #if defined(OS_WIN) | 1351 #if defined(OS_WIN) |
| 1347 command_line->AppendArg(switches::kPrefetchArgumentRenderer); | 1352 command_line->AppendArg(switches::kPrefetchArgumentRenderer); |
| (...skipping 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2787 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 2792 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
| 2788 | 2793 |
| 2789 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias | 2794 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias |
| 2790 // enough information here so that we can determine what the bad message was. | 2795 // enough information here so that we can determine what the bad message was. |
| 2791 base::debug::Alias(&error); | 2796 base::debug::Alias(&error); |
| 2792 bad_message::ReceivedBadMessage(process.get(), | 2797 bad_message::ReceivedBadMessage(process.get(), |
| 2793 bad_message::RPH_MOJO_PROCESS_ERROR); | 2798 bad_message::RPH_MOJO_PROCESS_ERROR); |
| 2794 } | 2799 } |
| 2795 | 2800 |
| 2796 } // namespace content | 2801 } // namespace content |
| OLD | NEW |