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

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

Issue 786583002: cc: Renaming Rasterizer and RasterWorkerPool interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test. Update include files alphabetic orders. Created 6 years 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 15 matching lines...) Expand all
26 #include "base/strings/string16.h" 26 #include "base/strings/string16.h"
27 #include "base/strings/string_number_conversions.h" 27 #include "base/strings/string_number_conversions.h"
28 #include "base/strings/string_tokenizer.h" 28 #include "base/strings/string_tokenizer.h"
29 #include "base/strings/utf_string_conversions.h" 29 #include "base/strings/utf_string_conversions.h"
30 #include "base/threading/thread_local.h" 30 #include "base/threading/thread_local.h"
31 #include "base/threading/thread_restrictions.h" 31 #include "base/threading/thread_restrictions.h"
32 #include "base/values.h" 32 #include "base/values.h"
33 #include "cc/base/switches.h" 33 #include "cc/base/switches.h"
34 #include "cc/blink/web_external_bitmap_impl.h" 34 #include "cc/blink/web_external_bitmap_impl.h"
35 #include "cc/blink/web_layer_impl.h" 35 #include "cc/blink/web_layer_impl.h"
36 #include "cc/resources/raster_worker_pool.h" 36 #include "cc/resources/tile_task_worker_pool.h"
37 #include "content/child/appcache/appcache_dispatcher.h" 37 #include "content/child/appcache/appcache_dispatcher.h"
38 #include "content/child/appcache/appcache_frontend_impl.h" 38 #include "content/child/appcache/appcache_frontend_impl.h"
39 #include "content/child/child_discardable_shared_memory_manager.h" 39 #include "content/child/child_discardable_shared_memory_manager.h"
40 #include "content/child/child_gpu_memory_buffer_manager.h" 40 #include "content/child/child_gpu_memory_buffer_manager.h"
41 #include "content/child/child_histogram_message_filter.h" 41 #include "content/child/child_histogram_message_filter.h"
42 #include "content/child/content_child_helpers.h" 42 #include "content/child/content_child_helpers.h"
43 #include "content/child/db_message_filter.h" 43 #include "content/child/db_message_filter.h"
44 #include "content/child/indexed_db/indexed_db_dispatcher.h" 44 #include "content/child/indexed_db/indexed_db_dispatcher.h"
45 #include "content/child/indexed_db/indexed_db_message_filter.h" 45 #include "content/child/indexed_db/indexed_db_message_filter.h"
46 #include "content/child/npapi/npobject_util.h" 46 #include "content/child/npapi/npobject_util.h"
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 base::DiscardableMemory::SetPreferredType(type); 582 base::DiscardableMemory::SetPreferredType(type);
583 583
584 if (is_impl_side_painting_enabled_) { 584 if (is_impl_side_painting_enabled_) {
585 int num_raster_threads = 0; 585 int num_raster_threads = 0;
586 std::string string_value = 586 std::string string_value =
587 command_line.GetSwitchValueASCII(switches::kNumRasterThreads); 587 command_line.GetSwitchValueASCII(switches::kNumRasterThreads);
588 bool parsed_num_raster_threads = 588 bool parsed_num_raster_threads =
589 base::StringToInt(string_value, &num_raster_threads); 589 base::StringToInt(string_value, &num_raster_threads);
590 DCHECK(parsed_num_raster_threads) << string_value; 590 DCHECK(parsed_num_raster_threads) << string_value;
591 DCHECK_GT(num_raster_threads, 0); 591 DCHECK_GT(num_raster_threads, 0);
592 cc::RasterWorkerPool::SetNumRasterThreads(num_raster_threads); 592 cc::TileTaskWorkerPool::SetNumWorkerThreads(num_raster_threads);
593 } 593 }
594 594
595 base::DiscardableMemoryShmemAllocator::SetInstance( 595 base::DiscardableMemoryShmemAllocator::SetInstance(
596 ChildThread::discardable_shared_memory_manager()); 596 ChildThread::discardable_shared_memory_manager());
597 597
598 service_registry()->AddService<RenderFrameSetup>( 598 service_registry()->AddService<RenderFrameSetup>(
599 base::Bind(CreateRenderFrameSetup)); 599 base::Bind(CreateRenderFrameSetup));
600 600
601 TRACE_EVENT_END_ETW("RenderThreadImpl::Init", 0, ""); 601 TRACE_EVENT_END_ETW("RenderThreadImpl::Init", 0, "");
602 } 602 }
(...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after
1615 hidden_widget_count_--; 1615 hidden_widget_count_--;
1616 1616
1617 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { 1617 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) {
1618 return; 1618 return;
1619 } 1619 }
1620 1620
1621 ScheduleIdleHandler(kLongIdleHandlerDelayMs); 1621 ScheduleIdleHandler(kLongIdleHandlerDelayMs);
1622 } 1622 }
1623 1623
1624 } // namespace content 1624 } // namespace content
OLDNEW
« cc/resources/tile_task_runner.h ('K') | « cc/trees/layer_tree_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698