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

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

Issue 2020243004: content: Rename num raster threads -> num worker threads. Base URL: https://chromium.googlesource.com/chromium/src.git@categorized_worker_pool_3
Patch Set: build break Created 4 years, 6 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
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 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after
1243 bool RenderProcessHostImpl::IsForGuestsOnly() const { 1243 bool RenderProcessHostImpl::IsForGuestsOnly() const {
1244 return is_for_guests_only_; 1244 return is_for_guests_only_;
1245 } 1245 }
1246 1246
1247 StoragePartition* RenderProcessHostImpl::GetStoragePartition() const { 1247 StoragePartition* RenderProcessHostImpl::GetStoragePartition() const {
1248 return storage_partition_impl_; 1248 return storage_partition_impl_;
1249 } 1249 }
1250 1250
1251 static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) { 1251 static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) {
1252 command_line->AppendSwitchASCII( 1252 command_line->AppendSwitchASCII(
1253 switches::kNumRasterThreads, 1253 switches::kNumWorkerThreads,
1254 base::IntToString(NumberOfRendererRasterThreads())); 1254 base::IntToString(NumberOfRendererWorkerThreads()));
1255 1255
1256 if (IsGpuRasterizationEnabled()) 1256 if (IsGpuRasterizationEnabled())
1257 command_line->AppendSwitch(switches::kEnableGpuRasterization); 1257 command_line->AppendSwitch(switches::kEnableGpuRasterization);
1258 1258
1259 if (IsAsyncWorkerContextEnabled()) 1259 if (IsAsyncWorkerContextEnabled())
1260 command_line->AppendSwitch(switches::kEnableGpuAsyncWorkerContext); 1260 command_line->AppendSwitch(switches::kEnableGpuAsyncWorkerContext);
1261 1261
1262 int msaa_sample_count = GpuRasterizationMSAASampleCount(); 1262 int msaa_sample_count = GpuRasterizationMSAASampleCount();
1263 if (msaa_sample_count >= 0) { 1263 if (msaa_sample_count >= 0) {
1264 command_line->AppendSwitchASCII(switches::kGpuRasterizationMSAASampleCount, 1264 command_line->AppendSwitchASCII(switches::kGpuRasterizationMSAASampleCount,
(...skipping 1515 matching lines...) Expand 10 before | Expand all | Expand 10 after
2780 2780
2781 // Skip widgets in other processes. 2781 // Skip widgets in other processes.
2782 if (rvh->GetProcess()->GetID() != GetID()) 2782 if (rvh->GetProcess()->GetID() != GetID())
2783 continue; 2783 continue;
2784 2784
2785 rvh->OnWebkitPreferencesChanged(); 2785 rvh->OnWebkitPreferencesChanged();
2786 } 2786 }
2787 } 2787 }
2788 2788
2789 } // namespace content 2789 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698