| 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 1701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1712 | 1712 |
| 1713 void LayerTreeHostImpl::CreateAndSetTileManager( | 1713 void LayerTreeHostImpl::CreateAndSetTileManager( |
| 1714 ResourceProvider* resource_provider, | 1714 ResourceProvider* resource_provider, |
| 1715 ContextProvider* context_provider, | 1715 ContextProvider* context_provider, |
| 1716 bool using_map_image) { | 1716 bool using_map_image) { |
| 1717 DCHECK(settings_.impl_side_painting); | 1717 DCHECK(settings_.impl_side_painting); |
| 1718 DCHECK(resource_provider); | 1718 DCHECK(resource_provider); |
| 1719 tile_manager_ = | 1719 tile_manager_ = |
| 1720 TileManager::Create(this, | 1720 TileManager::Create(this, |
| 1721 resource_provider, | 1721 resource_provider, |
| 1722 context_provider, |
| 1722 settings_.num_raster_threads, | 1723 settings_.num_raster_threads, |
| 1723 rendering_stats_instrumentation_, | 1724 rendering_stats_instrumentation_, |
| 1724 using_map_image, | 1725 using_map_image, |
| 1725 GetMaxTransferBufferUsageBytes(context_provider), | 1726 GetMaxTransferBufferUsageBytes(context_provider), |
| 1726 GetMaxRasterTasksUsageBytes(context_provider), | 1727 GetMaxRasterTasksUsageBytes(context_provider), |
| 1727 GetMapImageTextureTarget(context_provider)); | 1728 GetMapImageTextureTarget(context_provider)); |
| 1728 | 1729 |
| 1729 UpdateTileManagerMemoryPolicy(ActualManagedMemoryPolicy()); | 1730 UpdateTileManagerMemoryPolicy(ActualManagedMemoryPolicy()); |
| 1730 need_to_update_visible_tiles_before_draw_ = false; | 1731 need_to_update_visible_tiles_before_draw_ = false; |
| 1731 } | 1732 } |
| (...skipping 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2916 swap_promise_monitor_.erase(monitor); | 2917 swap_promise_monitor_.erase(monitor); |
| 2917 } | 2918 } |
| 2918 | 2919 |
| 2919 void LayerTreeHostImpl::NotifySwapPromiseMonitorsOfSetNeedsRedraw() { | 2920 void LayerTreeHostImpl::NotifySwapPromiseMonitorsOfSetNeedsRedraw() { |
| 2920 std::set<SwapPromiseMonitor*>::iterator it = swap_promise_monitor_.begin(); | 2921 std::set<SwapPromiseMonitor*>::iterator it = swap_promise_monitor_.begin(); |
| 2921 for (; it != swap_promise_monitor_.end(); it++) | 2922 for (; it != swap_promise_monitor_.end(); it++) |
| 2922 (*it)->OnSetNeedsRedrawOnImpl(); | 2923 (*it)->OnSetNeedsRedrawOnImpl(); |
| 2923 } | 2924 } |
| 2924 | 2925 |
| 2925 } // namespace cc | 2926 } // namespace cc |
| OLD | NEW |