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

Side by Side Diff: cc/trees/layer_tree_host_impl.cc

Issue 793073002: cc: Removed rendering stats instrumentation from tile manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « cc/test/fake_tile_manager.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "cc/trees/layer_tree_host_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 1946 matching lines...) Expand 10 before | Expand all | Expand 10 after
1957 1957
1958 base::SingleThreadTaskRunner* task_runner = 1958 base::SingleThreadTaskRunner* task_runner =
1959 proxy_->HasImplThread() ? proxy_->ImplThreadTaskRunner() 1959 proxy_->HasImplThread() ? proxy_->ImplThreadTaskRunner()
1960 : proxy_->MainThreadTaskRunner(); 1960 : proxy_->MainThreadTaskRunner();
1961 DCHECK(task_runner); 1961 DCHECK(task_runner);
1962 size_t scheduled_raster_task_limit = 1962 size_t scheduled_raster_task_limit =
1963 IsSynchronousSingleThreaded() ? std::numeric_limits<size_t>::max() 1963 IsSynchronousSingleThreaded() ? std::numeric_limits<size_t>::max()
1964 : settings_.scheduled_raster_task_limit; 1964 : settings_.scheduled_raster_task_limit;
1965 tile_manager_ = TileManager::Create( 1965 tile_manager_ = TileManager::Create(
1966 this, task_runner, resource_pool_.get(), 1966 this, task_runner, resource_pool_.get(),
1967 tile_task_worker_pool_->AsTileTaskRunner(), 1967 tile_task_worker_pool_->AsTileTaskRunner(), scheduled_raster_task_limit);
1968 rendering_stats_instrumentation_, scheduled_raster_task_limit);
1969 1968
1970 UpdateTileManagerMemoryPolicy(ActualManagedMemoryPolicy()); 1969 UpdateTileManagerMemoryPolicy(ActualManagedMemoryPolicy());
1971 } 1970 }
1972 1971
1973 void LayerTreeHostImpl::CreateResourceAndTileTaskWorkerPool( 1972 void LayerTreeHostImpl::CreateResourceAndTileTaskWorkerPool(
1974 scoped_ptr<TileTaskWorkerPool>* tile_task_worker_pool, 1973 scoped_ptr<TileTaskWorkerPool>* tile_task_worker_pool,
1975 scoped_ptr<ResourcePool>* resource_pool, 1974 scoped_ptr<ResourcePool>* resource_pool,
1976 scoped_ptr<ResourcePool>* staging_resource_pool) { 1975 scoped_ptr<ResourcePool>* staging_resource_pool) {
1977 base::SingleThreadTaskRunner* task_runner = 1976 base::SingleThreadTaskRunner* task_runner =
1978 proxy_->HasImplThread() ? proxy_->ImplThreadTaskRunner() 1977 proxy_->HasImplThread() ? proxy_->ImplThreadTaskRunner()
(...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after
3480 } 3479 }
3481 3480
3482 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { 3481 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) {
3483 std::vector<PictureLayerImpl*>::iterator it = 3482 std::vector<PictureLayerImpl*>::iterator it =
3484 std::find(picture_layers_.begin(), picture_layers_.end(), layer); 3483 std::find(picture_layers_.begin(), picture_layers_.end(), layer);
3485 DCHECK(it != picture_layers_.end()); 3484 DCHECK(it != picture_layers_.end());
3486 picture_layers_.erase(it); 3485 picture_layers_.erase(it);
3487 } 3486 }
3488 3487
3489 } // namespace cc 3488 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_tile_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698