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

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

Issue 846213003: Revert "Remove impl-side-painting from about:flags" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 } 1064 }
1065 1065
1066 static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) { 1066 static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) {
1067 if (IsPinchVirtualViewportEnabled()) 1067 if (IsPinchVirtualViewportEnabled())
1068 command_line->AppendSwitch(cc::switches::kEnablePinchVirtualViewport); 1068 command_line->AppendSwitch(cc::switches::kEnablePinchVirtualViewport);
1069 1069
1070 if (IsDelegatedRendererEnabled()) 1070 if (IsDelegatedRendererEnabled())
1071 command_line->AppendSwitch(switches::kEnableDelegatedRenderer); 1071 command_line->AppendSwitch(switches::kEnableDelegatedRenderer);
1072 1072
1073 if (IsImplSidePaintingEnabled()) { 1073 if (IsImplSidePaintingEnabled()) {
1074 command_line->AppendSwitch(switches::kEnableImplSidePainting);
1074 command_line->AppendSwitchASCII( 1075 command_line->AppendSwitchASCII(
1075 switches::kNumRasterThreads, 1076 switches::kNumRasterThreads,
1076 base::IntToString(NumberOfRendererRasterThreads())); 1077 base::IntToString(NumberOfRendererRasterThreads()));
1077 } else {
1078 command_line->AppendSwitch(switches::kDisableImplSidePainting);
1079 } 1078 }
1080 1079
1081 if (IsGpuRasterizationEnabled()) 1080 if (IsGpuRasterizationEnabled())
1082 command_line->AppendSwitch(switches::kEnableGpuRasterization); 1081 command_line->AppendSwitch(switches::kEnableGpuRasterization);
1083 1082
1084 DCHECK_IMPLIES(IsZeroCopyUploadEnabled(), !IsOneCopyUploadEnabled()); 1083 DCHECK_IMPLIES(IsZeroCopyUploadEnabled(), !IsOneCopyUploadEnabled());
1085 DCHECK_IMPLIES(IsOneCopyUploadEnabled(), !IsZeroCopyUploadEnabled()); 1084 DCHECK_IMPLIES(IsOneCopyUploadEnabled(), !IsZeroCopyUploadEnabled());
1086 if (IsZeroCopyUploadEnabled()) 1085 if (IsZeroCopyUploadEnabled())
1087 command_line->AppendSwitch(switches::kEnableZeroCopy); 1086 command_line->AppendSwitch(switches::kEnableZeroCopy);
1088 if (!IsOneCopyUploadEnabled()) 1087 if (!IsOneCopyUploadEnabled())
(...skipping 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after
2360 2359
2361 void RenderProcessHostImpl::DecrementWorkerRefCount() { 2360 void RenderProcessHostImpl::DecrementWorkerRefCount() {
2362 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2361 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2363 DCHECK_GT(worker_ref_count_, 0); 2362 DCHECK_GT(worker_ref_count_, 0);
2364 --worker_ref_count_; 2363 --worker_ref_count_;
2365 if (worker_ref_count_ == 0) 2364 if (worker_ref_count_ == 0)
2366 Cleanup(); 2365 Cleanup();
2367 } 2366 }
2368 2367
2369 } // namespace content 2368 } // 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