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

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

Issue 830273003: Remove impl-side-painting from about:flags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: impl-flags: remove-content-shell-stuff Created 5 years, 11 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 | « content/browser/gpu/compositor_util.cc ('k') | content/public/common/content_switches.h » ('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 (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 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after
1066 } 1066 }
1067 1067
1068 static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) { 1068 static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) {
1069 if (IsPinchVirtualViewportEnabled()) 1069 if (IsPinchVirtualViewportEnabled())
1070 command_line->AppendSwitch(cc::switches::kEnablePinchVirtualViewport); 1070 command_line->AppendSwitch(cc::switches::kEnablePinchVirtualViewport);
1071 1071
1072 if (IsDelegatedRendererEnabled()) 1072 if (IsDelegatedRendererEnabled())
1073 command_line->AppendSwitch(switches::kEnableDelegatedRenderer); 1073 command_line->AppendSwitch(switches::kEnableDelegatedRenderer);
1074 1074
1075 if (IsImplSidePaintingEnabled()) { 1075 if (IsImplSidePaintingEnabled()) {
1076 command_line->AppendSwitch(switches::kEnableImplSidePainting);
1077 command_line->AppendSwitchASCII( 1076 command_line->AppendSwitchASCII(
1078 switches::kNumRasterThreads, 1077 switches::kNumRasterThreads,
1079 base::IntToString(NumberOfRendererRasterThreads())); 1078 base::IntToString(NumberOfRendererRasterThreads()));
1079 } else {
1080 command_line->AppendSwitch(switches::kDisableImplSidePainting);
1080 } 1081 }
1081 1082
1082 if (IsGpuRasterizationEnabled()) 1083 if (IsGpuRasterizationEnabled())
1083 command_line->AppendSwitch(switches::kEnableGpuRasterization); 1084 command_line->AppendSwitch(switches::kEnableGpuRasterization);
1084 1085
1085 DCHECK_IMPLIES(IsZeroCopyUploadEnabled(), !IsOneCopyUploadEnabled()); 1086 DCHECK_IMPLIES(IsZeroCopyUploadEnabled(), !IsOneCopyUploadEnabled());
1086 DCHECK_IMPLIES(IsOneCopyUploadEnabled(), !IsZeroCopyUploadEnabled()); 1087 DCHECK_IMPLIES(IsOneCopyUploadEnabled(), !IsZeroCopyUploadEnabled());
1087 if (IsZeroCopyUploadEnabled()) 1088 if (IsZeroCopyUploadEnabled())
1088 command_line->AppendSwitch(switches::kEnableZeroCopy); 1089 command_line->AppendSwitch(switches::kEnableZeroCopy);
1089 if (!IsOneCopyUploadEnabled()) 1090 if (!IsOneCopyUploadEnabled())
(...skipping 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after
2361 2362
2362 void RenderProcessHostImpl::DecrementWorkerRefCount() { 2363 void RenderProcessHostImpl::DecrementWorkerRefCount() {
2363 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2364 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2364 DCHECK_GT(worker_ref_count_, 0); 2365 DCHECK_GT(worker_ref_count_, 0);
2365 --worker_ref_count_; 2366 --worker_ref_count_;
2366 if (worker_ref_count_ == 0) 2367 if (worker_ref_count_ == 0)
2367 Cleanup(); 2368 Cleanup();
2368 } 2369 }
2369 2370
2370 } // namespace content 2371 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/compositor_util.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698