Chromium Code Reviews| 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 1458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1469 } | 1469 } |
| 1470 } | 1470 } |
| 1471 command_line->AppendSwitchASCII( | 1471 command_line->AppendSwitchASCII( |
| 1472 switches::kContentImageTextureTarget, | 1472 switches::kContentImageTextureTarget, |
| 1473 cc::BufferToTextureTargetMapToString(image_targets)); | 1473 cc::BufferToTextureTargetMapToString(image_targets)); |
| 1474 | 1474 |
| 1475 // Appending disable-gpu-feature switches due to software rendering list. | 1475 // Appending disable-gpu-feature switches due to software rendering list. |
| 1476 GpuDataManagerImpl* gpu_data_manager = GpuDataManagerImpl::GetInstance(); | 1476 GpuDataManagerImpl* gpu_data_manager = GpuDataManagerImpl::GetInstance(); |
| 1477 DCHECK(gpu_data_manager); | 1477 DCHECK(gpu_data_manager); |
| 1478 gpu_data_manager->AppendRendererCommandLine(command_line); | 1478 gpu_data_manager->AppendRendererCommandLine(command_line); |
| 1479 | |
| 1480 // Slimming Paint v2 implies layer lists in the renderer. | |
| 1481 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | |
| 1482 switches::kEnableSlimmingPaintV2)) | |
|
no sievers
2016/08/30 20:55:01
nit: curly braces since it's multiline
pdr.
2016/08/30 22:31:05
Good idea, done.
| |
| 1483 command_line->AppendSwitch(cc::switches::kEnableLayerLists); | |
| 1479 } | 1484 } |
| 1480 | 1485 |
| 1481 void RenderProcessHostImpl::AppendRendererCommandLine( | 1486 void RenderProcessHostImpl::AppendRendererCommandLine( |
| 1482 base::CommandLine* command_line) const { | 1487 base::CommandLine* command_line) const { |
| 1483 // Pass the process type first, so it shows first in process listings. | 1488 // Pass the process type first, so it shows first in process listings. |
| 1484 command_line->AppendSwitchASCII(switches::kProcessType, | 1489 command_line->AppendSwitchASCII(switches::kProcessType, |
| 1485 switches::kRendererProcess); | 1490 switches::kRendererProcess); |
| 1486 | 1491 |
| 1487 #if defined(OS_WIN) | 1492 #if defined(OS_WIN) |
| 1488 command_line->AppendArg(switches::kPrefetchArgumentRenderer); | 1493 command_line->AppendArg(switches::kPrefetchArgumentRenderer); |
| (...skipping 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2929 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 2934 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
| 2930 | 2935 |
| 2931 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias | 2936 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias |
| 2932 // enough information here so that we can determine what the bad message was. | 2937 // enough information here so that we can determine what the bad message was. |
| 2933 base::debug::Alias(&error); | 2938 base::debug::Alias(&error); |
| 2934 bad_message::ReceivedBadMessage(process.get(), | 2939 bad_message::ReceivedBadMessage(process.get(), |
| 2935 bad_message::RPH_MOJO_PROCESS_ERROR); | 2940 bad_message::RPH_MOJO_PROCESS_ERROR); |
| 2936 } | 2941 } |
| 2937 | 2942 |
| 2938 } // namespace content | 2943 } // namespace content |
| OLD | NEW |