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

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

Issue 869433003: (not for commit) Simplified multi-threaded Ganesh with lock on Flush only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 10 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/common/gpu/client/gpu_channel_host.cc » ('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 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 // IOSurface backed images require GL_TEXTURE_RECTANGLE_ARB. 1119 // IOSurface backed images require GL_TEXTURE_RECTANGLE_ARB.
1120 command_line->AppendSwitchASCII( 1120 command_line->AppendSwitchASCII(
1121 switches::kUseImageTextureTarget, 1121 switches::kUseImageTextureTarget,
1122 gpu::gles2::GLES2Util::GetStringEnum(GL_TEXTURE_RECTANGLE_ARB)); 1122 gpu::gles2::GLES2Util::GetStringEnum(GL_TEXTURE_RECTANGLE_ARB));
1123 break; 1123 break;
1124 default: 1124 default:
1125 break; 1125 break;
1126 } 1126 }
1127 } 1127 }
1128 1128
1129 if (IsTilePrepareEnabled()) 1129 if (IsThreadedGpuRasterizationEnabled())
1130 command_line->AppendSwitch(switches::kEnableTilePrepare); 1130 command_line->AppendSwitch(switches::kEnableThreadedGpuRasterization);
1131 1131
1132 // Appending disable-gpu-feature switches due to software rendering list. 1132 // Appending disable-gpu-feature switches due to software rendering list.
1133 GpuDataManagerImpl* gpu_data_manager = GpuDataManagerImpl::GetInstance(); 1133 GpuDataManagerImpl* gpu_data_manager = GpuDataManagerImpl::GetInstance();
1134 DCHECK(gpu_data_manager); 1134 DCHECK(gpu_data_manager);
1135 gpu_data_manager->AppendRendererCommandLine(command_line); 1135 gpu_data_manager->AppendRendererCommandLine(command_line);
1136 } 1136 }
1137 1137
1138 void RenderProcessHostImpl::AppendRendererCommandLine( 1138 void RenderProcessHostImpl::AppendRendererCommandLine(
1139 base::CommandLine* command_line) const { 1139 base::CommandLine* command_line) const {
1140 // Pass the process type first, so it shows first in process listings. 1140 // Pass the process type first, so it shows first in process listings.
(...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after
2391 2391
2392 void RenderProcessHostImpl::DecrementWorkerRefCount() { 2392 void RenderProcessHostImpl::DecrementWorkerRefCount() {
2393 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2393 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2394 DCHECK_GT(worker_ref_count_, 0); 2394 DCHECK_GT(worker_ref_count_, 0);
2395 --worker_ref_count_; 2395 --worker_ref_count_;
2396 if (worker_ref_count_ == 0) 2396 if (worker_ref_count_ == 0)
2397 Cleanup(); 2397 Cleanup();
2398 } 2398 }
2399 2399
2400 } // namespace content 2400 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/compositor_util.cc ('k') | content/common/gpu/client/gpu_channel_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698