Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 1660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1671 | 1671 |
| 1672 void LayerTreeHostImpl::CreateAndSetTileManager( | 1672 void LayerTreeHostImpl::CreateAndSetTileManager( |
| 1673 ResourceProvider* resource_provider, | 1673 ResourceProvider* resource_provider, |
| 1674 ContextProvider* context_provider, | 1674 ContextProvider* context_provider, |
| 1675 bool using_map_image) { | 1675 bool using_map_image) { |
| 1676 DCHECK(settings_.impl_side_painting); | 1676 DCHECK(settings_.impl_side_painting); |
| 1677 DCHECK(resource_provider); | 1677 DCHECK(resource_provider); |
| 1678 tile_manager_ = | 1678 tile_manager_ = |
| 1679 TileManager::Create(this, | 1679 TileManager::Create(this, |
| 1680 resource_provider, | 1680 resource_provider, |
| 1681 context_provider, | |
|
nduca
2013/12/02 19:50:17
I think you're better off passing in a GpuRasteriz
slavi
2013/12/04 02:06:50
That was done per enne request to avoid the need o
| |
| 1681 settings_.num_raster_threads, | 1682 settings_.num_raster_threads, |
| 1682 rendering_stats_instrumentation_, | 1683 rendering_stats_instrumentation_, |
| 1683 using_map_image, | 1684 using_map_image, |
| 1684 GetMaxTransferBufferUsageBytes(context_provider), | 1685 GetMaxTransferBufferUsageBytes(context_provider), |
| 1685 GetMaxRasterTasksUsageBytes(context_provider), | 1686 GetMaxRasterTasksUsageBytes(context_provider), |
| 1686 GetMapImageTextureTarget(context_provider)); | 1687 GetMapImageTextureTarget(context_provider)); |
| 1687 | 1688 |
| 1688 UpdateTileManagerMemoryPolicy(ActualManagedMemoryPolicy()); | 1689 UpdateTileManagerMemoryPolicy(ActualManagedMemoryPolicy()); |
| 1689 need_to_update_visible_tiles_before_draw_ = false; | 1690 need_to_update_visible_tiles_before_draw_ = false; |
| 1690 } | 1691 } |
| (...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2865 if (evicted_ui_resources_.empty()) | 2866 if (evicted_ui_resources_.empty()) |
| 2866 client_->OnCanDrawStateChanged(CanDraw()); | 2867 client_->OnCanDrawStateChanged(CanDraw()); |
| 2867 } | 2868 } |
| 2868 | 2869 |
| 2869 void LayerTreeHostImpl::ScheduleMicroBenchmark( | 2870 void LayerTreeHostImpl::ScheduleMicroBenchmark( |
| 2870 scoped_ptr<MicroBenchmarkImpl> benchmark) { | 2871 scoped_ptr<MicroBenchmarkImpl> benchmark) { |
| 2871 micro_benchmark_controller_.ScheduleRun(benchmark.Pass()); | 2872 micro_benchmark_controller_.ScheduleRun(benchmark.Pass()); |
| 2872 } | 2873 } |
| 2873 | 2874 |
| 2874 } // namespace cc | 2875 } // namespace cc |
| OLD | NEW |