| 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 <cmath> | 7 #include <cmath> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 did_request_commit_ = true; | 145 did_request_commit_ = true; |
| 146 } | 146 } |
| 147 virtual void PostAnimationEventsToMainThreadOnImplThread( | 147 virtual void PostAnimationEventsToMainThreadOnImplThread( |
| 148 scoped_ptr<AnimationEventsVector> events) OVERRIDE {} | 148 scoped_ptr<AnimationEventsVector> events) OVERRIDE {} |
| 149 virtual bool ReduceContentsTextureMemoryOnImplThread( | 149 virtual bool ReduceContentsTextureMemoryOnImplThread( |
| 150 size_t limit_bytes, int priority_cutoff) OVERRIDE { | 150 size_t limit_bytes, int priority_cutoff) OVERRIDE { |
| 151 current_limit_bytes_ = limit_bytes; | 151 current_limit_bytes_ = limit_bytes; |
| 152 current_priority_cutoff_value_ = priority_cutoff; | 152 current_priority_cutoff_value_ = priority_cutoff; |
| 153 return reduce_memory_result_; | 153 return reduce_memory_result_; |
| 154 } | 154 } |
| 155 virtual void SendManagedMemoryStats() OVERRIDE {} | |
| 156 virtual bool IsInsideDraw() OVERRIDE { return false; } | 155 virtual bool IsInsideDraw() OVERRIDE { return false; } |
| 157 virtual void RenewTreePriority() OVERRIDE {} | 156 virtual void RenewTreePriority() OVERRIDE {} |
| 158 virtual void PostDelayedScrollbarFadeOnImplThread( | 157 virtual void PostDelayedScrollbarFadeOnImplThread( |
| 159 const base::Closure& start_fade, | 158 const base::Closure& start_fade, |
| 160 base::TimeDelta delay) OVERRIDE { | 159 base::TimeDelta delay) OVERRIDE { |
| 161 scrollbar_fade_start_ = start_fade; | 160 scrollbar_fade_start_ = start_fade; |
| 162 requested_scrollbar_animation_delay_ = delay; | 161 requested_scrollbar_animation_delay_ = delay; |
| 163 } | 162 } |
| 164 virtual void DidActivatePendingTree() OVERRIDE {} | 163 virtual void DidActivatePendingTree() OVERRIDE {} |
| 165 virtual void DidManageTiles() OVERRIDE {} | 164 virtual void DidManageTiles() OVERRIDE {} |
| (...skipping 6459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6625 FakePictureLayerImpl* active_mask_content = | 6624 FakePictureLayerImpl* active_mask_content = |
| 6626 static_cast<FakePictureLayerImpl*>( | 6625 static_cast<FakePictureLayerImpl*>( |
| 6627 host_impl_->active_tree()->root_layer()->children()[0]->mask_layer()); | 6626 host_impl_->active_tree()->root_layer()->children()[0]->mask_layer()); |
| 6628 gfx::Rect r2 = active_mask_content->visible_rect_for_tile_priority(); | 6627 gfx::Rect r2 = active_mask_content->visible_rect_for_tile_priority(); |
| 6629 | 6628 |
| 6630 ASSERT_TRUE(!r2.IsEmpty()); | 6629 ASSERT_TRUE(!r2.IsEmpty()); |
| 6631 } | 6630 } |
| 6632 | 6631 |
| 6633 } // namespace | 6632 } // namespace |
| 6634 } // namespace cc | 6633 } // namespace cc |
| OLD | NEW |