| 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 1705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1716 void LayerTreeHostImpl::CreateAndSetTileManager( | 1716 void LayerTreeHostImpl::CreateAndSetTileManager( |
| 1717 ResourceProvider* resource_provider, | 1717 ResourceProvider* resource_provider, |
| 1718 ContextProvider* context_provider, | 1718 ContextProvider* context_provider, |
| 1719 bool using_map_image) { | 1719 bool using_map_image) { |
| 1720 DCHECK(settings_.impl_side_painting); | 1720 DCHECK(settings_.impl_side_painting); |
| 1721 DCHECK(resource_provider); | 1721 DCHECK(resource_provider); |
| 1722 tile_manager_ = | 1722 tile_manager_ = |
| 1723 TileManager::Create(this, | 1723 TileManager::Create(this, |
| 1724 resource_provider, | 1724 resource_provider, |
| 1725 context_provider, | 1725 context_provider, |
| 1726 settings_.num_raster_threads, | |
| 1727 rendering_stats_instrumentation_, | 1726 rendering_stats_instrumentation_, |
| 1728 using_map_image, | 1727 using_map_image, |
| 1729 GetMaxTransferBufferUsageBytes(context_provider), | 1728 GetMaxTransferBufferUsageBytes(context_provider), |
| 1730 GetMaxRasterTasksUsageBytes(context_provider), | 1729 GetMaxRasterTasksUsageBytes(context_provider), |
| 1731 GetMapImageTextureTarget(context_provider)); | 1730 GetMapImageTextureTarget(context_provider)); |
| 1732 | 1731 |
| 1733 UpdateTileManagerMemoryPolicy(ActualManagedMemoryPolicy()); | 1732 UpdateTileManagerMemoryPolicy(ActualManagedMemoryPolicy()); |
| 1734 need_to_update_visible_tiles_before_draw_ = false; | 1733 need_to_update_visible_tiles_before_draw_ = false; |
| 1735 } | 1734 } |
| 1736 | 1735 |
| (...skipping 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2908 swap_promise_monitor_.erase(monitor); | 2907 swap_promise_monitor_.erase(monitor); |
| 2909 } | 2908 } |
| 2910 | 2909 |
| 2911 void LayerTreeHostImpl::NotifySwapPromiseMonitorsOfSetNeedsRedraw() { | 2910 void LayerTreeHostImpl::NotifySwapPromiseMonitorsOfSetNeedsRedraw() { |
| 2912 std::set<SwapPromiseMonitor*>::iterator it = swap_promise_monitor_.begin(); | 2911 std::set<SwapPromiseMonitor*>::iterator it = swap_promise_monitor_.begin(); |
| 2913 for (; it != swap_promise_monitor_.end(); it++) | 2912 for (; it != swap_promise_monitor_.end(); it++) |
| 2914 (*it)->OnSetNeedsRedrawOnImpl(); | 2913 (*it)->OnSetNeedsRedrawOnImpl(); |
| 2915 } | 2914 } |
| 2916 | 2915 |
| 2917 } // namespace cc | 2916 } // namespace cc |
| OLD | NEW |