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 <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 return reduce_memory_result_; | 149 return reduce_memory_result_; |
150 } | 150 } |
151 bool IsInsideDraw() override { return false; } | 151 bool IsInsideDraw() override { return false; } |
152 void RenewTreePriority() override {} | 152 void RenewTreePriority() override {} |
153 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, | 153 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, |
154 base::TimeDelta delay) override { | 154 base::TimeDelta delay) override { |
155 animation_task_ = task; | 155 animation_task_ = task; |
156 requested_animation_delay_ = delay; | 156 requested_animation_delay_ = delay; |
157 } | 157 } |
158 void DidActivateSyncTree() override {} | 158 void DidActivateSyncTree() override {} |
| 159 void WillPrepareTiles() override {} |
159 void DidPrepareTiles() override {} | 160 void DidPrepareTiles() override {} |
160 void DidCompletePageScaleAnimationOnImplThread() override { | 161 void DidCompletePageScaleAnimationOnImplThread() override { |
161 did_complete_page_scale_animation_ = true; | 162 did_complete_page_scale_animation_ = true; |
162 } | 163 } |
163 void OnDrawForOutputSurface() override {} | 164 void OnDrawForOutputSurface() override {} |
164 void PostFrameTimingEventsOnImplThread( | 165 void PostFrameTimingEventsOnImplThread( |
165 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, | 166 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, |
166 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) | 167 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) |
167 override {} | 168 override {} |
168 | 169 |
(...skipping 7872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8041 // Hold an unowned pointer to the output surface to use for mock expectations. | 8042 // Hold an unowned pointer to the output surface to use for mock expectations. |
8042 MockReclaimResourcesOutputSurface* mock_output_surface = output_surface.get(); | 8043 MockReclaimResourcesOutputSurface* mock_output_surface = output_surface.get(); |
8043 | 8044 |
8044 CreateHostImpl(DefaultSettings(), output_surface.Pass()); | 8045 CreateHostImpl(DefaultSettings(), output_surface.Pass()); |
8045 EXPECT_CALL(*mock_output_surface, ForceReclaimResources()).Times(1); | 8046 EXPECT_CALL(*mock_output_surface, ForceReclaimResources()).Times(1); |
8046 host_impl_->BeginCommit(); | 8047 host_impl_->BeginCommit(); |
8047 } | 8048 } |
8048 | 8049 |
8049 } // namespace | 8050 } // namespace |
8050 } // namespace cc | 8051 } // namespace cc |
OLD | NEW |