| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 did_request_manage_tiles_ = true; | 126 did_request_manage_tiles_ = true; |
| 127 } | 127 } |
| 128 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE { | 128 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE { |
| 129 did_upload_visible_tile_ = true; | 129 did_upload_visible_tile_ = true; |
| 130 } | 130 } |
| 131 virtual void SetNeedsCommitOnImplThread() OVERRIDE { | 131 virtual void SetNeedsCommitOnImplThread() OVERRIDE { |
| 132 did_request_commit_ = true; | 132 did_request_commit_ = true; |
| 133 } | 133 } |
| 134 virtual void PostAnimationEventsToMainThreadOnImplThread( | 134 virtual void PostAnimationEventsToMainThreadOnImplThread( |
| 135 scoped_ptr<AnimationEventsVector> events, | 135 scoped_ptr<AnimationEventsVector> events, |
| 136 base::Time wall_clock_time) OVERRIDE {} | 136 base::TimeTicks clock_time) OVERRIDE {} |
| 137 virtual bool ReduceContentsTextureMemoryOnImplThread( | 137 virtual bool ReduceContentsTextureMemoryOnImplThread( |
| 138 size_t limit_bytes, int priority_cutoff) OVERRIDE { | 138 size_t limit_bytes, int priority_cutoff) OVERRIDE { |
| 139 current_limit_bytes_ = limit_bytes; | 139 current_limit_bytes_ = limit_bytes; |
| 140 current_priority_cutoff_value_ = priority_cutoff; | 140 current_priority_cutoff_value_ = priority_cutoff; |
| 141 return reduce_memory_result_; | 141 return reduce_memory_result_; |
| 142 } | 142 } |
| 143 virtual void SendManagedMemoryStats() OVERRIDE {} | 143 virtual void SendManagedMemoryStats() OVERRIDE {} |
| 144 virtual bool IsInsideDraw() OVERRIDE { return false; } | 144 virtual bool IsInsideDraw() OVERRIDE { return false; } |
| 145 virtual void RenewTreePriority() OVERRIDE {} | 145 virtual void RenewTreePriority() OVERRIDE {} |
| 146 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) | 146 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) |
| (...skipping 5659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5806 &set_needs_redraw_count)); | 5806 &set_needs_redraw_count)); |
| 5807 // Empty damage rect won't signal the monitor. | 5807 // Empty damage rect won't signal the monitor. |
| 5808 host_impl_->SetNeedsRedrawRect(gfx::Rect()); | 5808 host_impl_->SetNeedsRedrawRect(gfx::Rect()); |
| 5809 EXPECT_EQ(0, set_needs_commit_count); | 5809 EXPECT_EQ(0, set_needs_commit_count); |
| 5810 EXPECT_EQ(2, set_needs_redraw_count); | 5810 EXPECT_EQ(2, set_needs_redraw_count); |
| 5811 } | 5811 } |
| 5812 } | 5812 } |
| 5813 | 5813 |
| 5814 } // namespace | 5814 } // namespace |
| 5815 } // namespace cc | 5815 } // namespace cc |
| OLD | NEW |