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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 943813002: cc: Add TaskGraphRunner sub-namespaces with task concurrency limits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 #include "content/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 std::string string_value = 660 std::string string_value =
661 command_line.GetSwitchValueASCII(switches::kNumRasterThreads); 661 command_line.GetSwitchValueASCII(switches::kNumRasterThreads);
662 bool parsed_num_raster_threads = 662 bool parsed_num_raster_threads =
663 base::StringToInt(string_value, &num_raster_threads); 663 base::StringToInt(string_value, &num_raster_threads);
664 DCHECK(parsed_num_raster_threads) << string_value; 664 DCHECK(parsed_num_raster_threads) << string_value;
665 DCHECK_GT(num_raster_threads, 0); 665 DCHECK_GT(num_raster_threads, 0);
666 666
667 // Force maximum 1 thread for threaded GPU rasterization. 667 // Force maximum 1 thread for threaded GPU rasterization.
668 // TODO(vmiura): crbug.com/459760 Support existence of multiple raster 668 // TODO(vmiura): crbug.com/459760 Support existence of multiple raster
669 // threads in GPU raster mode. 669 // threads in GPU raster mode.
670 if (is_threaded_gpu_rasterization_enabled_) 670 // if (is_threaded_gpu_rasterization_enabled_)
danakj 2015/02/23 18:45:01 debugging leftover?
671 num_raster_threads = 1; 671 // num_raster_threads = 1;
672 cc::TileTaskWorkerPool::SetNumWorkerThreads(num_raster_threads); 672 cc::TileTaskWorkerPool::SetNumWorkerThreads(num_raster_threads);
673 673
674 #if defined(OS_ANDROID) || defined(OS_LINUX) 674 #if defined(OS_ANDROID) || defined(OS_LINUX)
675 if (!command_line.HasSwitch( 675 if (!command_line.HasSwitch(
676 switches::kUseNormalPriorityForTileTaskWorkerThreads)) { 676 switches::kUseNormalPriorityForTileTaskWorkerThreads)) {
677 cc::TileTaskWorkerPool::SetWorkerThreadPriority( 677 cc::TileTaskWorkerPool::SetWorkerThreadPriority(
678 base::kThreadPriority_Background); 678 base::kThreadPriority_Background);
679 } 679 }
680 #endif 680 #endif
681 } 681 }
(...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after
1827 mojo::InterfaceRequest<mojo::ServiceProvider> services, 1827 mojo::InterfaceRequest<mojo::ServiceProvider> services,
1828 mojo::ServiceProviderPtr exposed_services) 1828 mojo::ServiceProviderPtr exposed_services)
1829 : services(services.Pass()), 1829 : services(services.Pass()),
1830 exposed_services(exposed_services.Pass()) { 1830 exposed_services(exposed_services.Pass()) {
1831 } 1831 }
1832 1832
1833 RenderThreadImpl::PendingRenderFrameConnect::~PendingRenderFrameConnect() { 1833 RenderThreadImpl::PendingRenderFrameConnect::~PendingRenderFrameConnect() {
1834 } 1834 }
1835 1835
1836 } // namespace content 1836 } // namespace content
OLDNEW
« cc/resources/tile_task_worker_pool.cc ('K') | « cc/resources/zero_copy_tile_task_worker_pool.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698