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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 1998393002: (reland) cc: Cleanup tile manager a bit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/tiles/tile_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 5e64334ae33d27aa01160d3881ea96409ea0a8ef..00c8e24da3a8142ff093e16d35459a2dfc9d2ed1 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -218,13 +218,15 @@ LayerTreeHostImpl::LayerTreeHostImpl(
!settings.single_thread_proxy_scheduler),
// Must be initialized after is_synchronous_single_threaded_ and
// task_runner_provider_.
- tile_manager_(
- TileManager::Create(this,
- GetTaskRunner(),
- is_synchronous_single_threaded_
- ? std::numeric_limits<size_t>::max()
- : settings.scheduled_raster_task_limit,
- settings.use_partial_raster)),
+ // TODO(vmpstr): TileManager takes a scoped reftr for the task runner,
+ // figure out if it actually needs a ref or whether it can use a raw
+ // pointer.
+ tile_manager_(new TileManager(this,
+ GetTaskRunner(),
+ is_synchronous_single_threaded_
+ ? std::numeric_limits<size_t>::max()
+ : settings.scheduled_raster_task_limit,
+ settings.use_partial_raster)),
pinch_gesture_active_(false),
pinch_gesture_end_should_clear_scrolling_layer_(false),
fps_counter_(
« no previous file with comments | « cc/tiles/tile_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698