Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2286343003: Make --enable-slimming-paint-v2 enable --enable-layer-lists (Closed)
Patch Set: Braces! Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/FlagExpectations/enable-slimming-paint-v2 » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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)) {
1483 command_line->AppendSwitch(cc::switches::kEnableLayerLists);
1484 }
1479 } 1485 }
1480 1486
1481 void RenderProcessHostImpl::AppendRendererCommandLine( 1487 void RenderProcessHostImpl::AppendRendererCommandLine(
1482 base::CommandLine* command_line) const { 1488 base::CommandLine* command_line) const {
1483 // Pass the process type first, so it shows first in process listings. 1489 // Pass the process type first, so it shows first in process listings.
1484 command_line->AppendSwitchASCII(switches::kProcessType, 1490 command_line->AppendSwitchASCII(switches::kProcessType,
1485 switches::kRendererProcess); 1491 switches::kRendererProcess);
1486 1492
1487 #if defined(OS_WIN) 1493 #if defined(OS_WIN)
1488 command_line->AppendArg(switches::kPrefetchArgumentRenderer); 1494 command_line->AppendArg(switches::kPrefetchArgumentRenderer);
(...skipping 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after
2929 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 2935 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
2930 2936
2931 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias 2937 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias
2932 // enough information here so that we can determine what the bad message was. 2938 // enough information here so that we can determine what the bad message was.
2933 base::debug::Alias(&error); 2939 base::debug::Alias(&error);
2934 bad_message::ReceivedBadMessage(process.get(), 2940 bad_message::ReceivedBadMessage(process.get(),
2935 bad_message::RPH_MOJO_PROCESS_ERROR); 2941 bad_message::RPH_MOJO_PROCESS_ERROR);
2936 } 2942 }
2937 2943
2938 } // namespace content 2944 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/FlagExpectations/enable-slimming-paint-v2 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698