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

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

Issue 519923002: Make the number of raster threads appear in chrome://gpu. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: numrasterthreads: . Created 6 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 | « content/browser/gpu/compositor_util.cc ('k') | content/browser/resources/gpu/info_view.js » ('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 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 return storage_partition_impl_; 1013 return storage_partition_impl_;
1014 } 1014 }
1015 1015
1016 static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) { 1016 static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) {
1017 if (IsPinchVirtualViewportEnabled()) 1017 if (IsPinchVirtualViewportEnabled())
1018 command_line->AppendSwitch(cc::switches::kEnablePinchVirtualViewport); 1018 command_line->AppendSwitch(cc::switches::kEnablePinchVirtualViewport);
1019 1019
1020 if (IsDelegatedRendererEnabled()) 1020 if (IsDelegatedRendererEnabled())
1021 command_line->AppendSwitch(switches::kEnableDelegatedRenderer); 1021 command_line->AppendSwitch(switches::kEnableDelegatedRenderer);
1022 1022
1023 if (IsImplSidePaintingEnabled()) 1023 if (IsImplSidePaintingEnabled()) {
1024 command_line->AppendSwitch(switches::kEnableImplSidePainting); 1024 command_line->AppendSwitch(switches::kEnableImplSidePainting);
1025 command_line->AppendSwitchASCII(
1026 switches::kNumRasterThreads,
1027 base::IntToString(NumberOfRendererRasterThreads()));
1028 }
1025 1029
1026 if (content::IsGpuRasterizationEnabled()) 1030 if (content::IsGpuRasterizationEnabled())
1027 command_line->AppendSwitch(switches::kEnableGpuRasterization); 1031 command_line->AppendSwitch(switches::kEnableGpuRasterization);
1028 1032
1029 if (content::IsForceGpuRasterizationEnabled()) 1033 if (content::IsForceGpuRasterizationEnabled())
1030 command_line->AppendSwitch(switches::kForceGpuRasterization); 1034 command_line->AppendSwitch(switches::kForceGpuRasterization);
1031 1035
1032 // Appending disable-gpu-feature switches due to software rendering list. 1036 // Appending disable-gpu-feature switches due to software rendering list.
1033 GpuDataManagerImpl* gpu_data_manager = GpuDataManagerImpl::GetInstance(); 1037 GpuDataManagerImpl* gpu_data_manager = GpuDataManagerImpl::GetInstance();
1034 DCHECK(gpu_data_manager); 1038 DCHECK(gpu_data_manager);
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1172 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, 1176 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode,
1173 switches::kIPCConnectionTimeout, 1177 switches::kIPCConnectionTimeout,
1174 switches::kJavaScriptFlags, 1178 switches::kJavaScriptFlags,
1175 switches::kLoggingLevel, 1179 switches::kLoggingLevel,
1176 switches::kMainFrameResizesAreOrientationChanges, 1180 switches::kMainFrameResizesAreOrientationChanges,
1177 switches::kMaxUntiledLayerWidth, 1181 switches::kMaxUntiledLayerWidth,
1178 switches::kMaxUntiledLayerHeight, 1182 switches::kMaxUntiledLayerHeight,
1179 switches::kMemoryMetrics, 1183 switches::kMemoryMetrics,
1180 switches::kNoReferrers, 1184 switches::kNoReferrers,
1181 switches::kNoSandbox, 1185 switches::kNoSandbox,
1182 switches::kNumRasterThreads,
Ken Russell (switch to Gerrit) 2014/08/29 22:41:05 Why is this being removed from this list? Isn't it
danakj 2014/08/29 22:42:20 because the other code adds it to the renderer com
1183 switches::kPpapiInProcess, 1186 switches::kPpapiInProcess,
1184 switches::kProfilerTiming, 1187 switches::kProfilerTiming,
1185 switches::kReduceSecurityForTesting, 1188 switches::kReduceSecurityForTesting,
1186 switches::kRegisterPepperPlugins, 1189 switches::kRegisterPepperPlugins,
1187 switches::kRendererAssertTest, 1190 switches::kRendererAssertTest,
1188 switches::kRendererStartupDialog, 1191 switches::kRendererStartupDialog,
1189 switches::kSendV8IdleNotificationAfterCommit, 1192 switches::kSendV8IdleNotificationAfterCommit,
1190 switches::kShowPaintRects, 1193 switches::kShowPaintRects,
1191 switches::kSitePerProcess, 1194 switches::kSitePerProcess,
1192 switches::kStatsCollectionController, 1195 switches::kStatsCollectionController,
(...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
2353 } 2356 }
2354 2357
2355 void RenderProcessHostImpl::OnDeletedGpuMemoryBuffer( 2358 void RenderProcessHostImpl::OnDeletedGpuMemoryBuffer(
2356 gfx::GpuMemoryBufferType type, 2359 gfx::GpuMemoryBufferType type,
2357 const gfx::GpuMemoryBufferId& id) { 2360 const gfx::GpuMemoryBufferId& id) {
2358 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2361 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2359 GpuMemoryBufferImpl::DeletedByChildProcess(type, id, GetHandle()); 2362 GpuMemoryBufferImpl::DeletedByChildProcess(type, id, GetHandle());
2360 } 2363 }
2361 2364
2362 } // namespace content 2365 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/compositor_util.cc ('k') | content/browser/resources/gpu/info_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698