| 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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 size_t memory_nice_to_have_bytes; | 417 size_t memory_nice_to_have_bytes; |
| 418 size_t memory_allocated_bytes; | 418 size_t memory_allocated_bytes; |
| 419 size_t memory_used_bytes; | 419 size_t memory_used_bytes; |
| 420 tile_manager_->GetMemoryStats(&memory_required_bytes, | 420 tile_manager_->GetMemoryStats(&memory_required_bytes, |
| 421 &memory_nice_to_have_bytes, | 421 &memory_nice_to_have_bytes, |
| 422 &memory_allocated_bytes, | 422 &memory_allocated_bytes, |
| 423 &memory_used_bytes); | 423 &memory_used_bytes); |
| 424 SendManagedMemoryStats(memory_required_bytes, | 424 SendManagedMemoryStats(memory_required_bytes, |
| 425 memory_nice_to_have_bytes, | 425 memory_nice_to_have_bytes, |
| 426 memory_used_bytes); | 426 memory_used_bytes); |
| 427 |
| 428 client_->DidManageTiles(); |
| 427 } | 429 } |
| 428 | 430 |
| 429 void LayerTreeHostImpl::StartPageScaleAnimation(gfx::Vector2d target_offset, | 431 void LayerTreeHostImpl::StartPageScaleAnimation(gfx::Vector2d target_offset, |
| 430 bool anchor_point, | 432 bool anchor_point, |
| 431 float page_scale, | 433 float page_scale, |
| 432 base::TimeDelta duration) { | 434 base::TimeDelta duration) { |
| 433 if (!RootScrollLayer()) | 435 if (!RootScrollLayer()) |
| 434 return; | 436 return; |
| 435 | 437 |
| 436 gfx::Vector2dF scroll_total = | 438 gfx::Vector2dF scroll_total = |
| (...skipping 2470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2907 swap_promise_monitor_.erase(monitor); | 2909 swap_promise_monitor_.erase(monitor); |
| 2908 } | 2910 } |
| 2909 | 2911 |
| 2910 void LayerTreeHostImpl::NotifySwapPromiseMonitorsOfSetNeedsRedraw() { | 2912 void LayerTreeHostImpl::NotifySwapPromiseMonitorsOfSetNeedsRedraw() { |
| 2911 std::set<SwapPromiseMonitor*>::iterator it = swap_promise_monitor_.begin(); | 2913 std::set<SwapPromiseMonitor*>::iterator it = swap_promise_monitor_.begin(); |
| 2912 for (; it != swap_promise_monitor_.end(); it++) | 2914 for (; it != swap_promise_monitor_.end(); it++) |
| 2913 (*it)->OnSetNeedsRedrawOnImpl(); | 2915 (*it)->OnSetNeedsRedrawOnImpl(); |
| 2914 } | 2916 } |
| 2915 | 2917 |
| 2916 } // namespace cc | 2918 } // namespace cc |
| OLD | NEW |