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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 base::TimeDelta delay) override { | 159 base::TimeDelta delay) override { |
160 animation_task_ = task; | 160 animation_task_ = task; |
161 requested_animation_delay_ = delay; | 161 requested_animation_delay_ = delay; |
162 } | 162 } |
163 void DidActivateSyncTree() override {} | 163 void DidActivateSyncTree() override {} |
164 void DidPrepareTiles() override {} | 164 void DidPrepareTiles() override {} |
165 void DidCompletePageScaleAnimationOnImplThread() override { | 165 void DidCompletePageScaleAnimationOnImplThread() override { |
166 did_complete_page_scale_animation_ = true; | 166 did_complete_page_scale_animation_ = true; |
167 } | 167 } |
168 void OnDrawForOutputSurface() override {} | 168 void OnDrawForOutputSurface() override {} |
| 169 void PostFrameTimingEventsOnImplThread( |
| 170 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, |
| 171 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) |
| 172 override {} |
169 | 173 |
170 void set_reduce_memory_result(bool reduce_memory_result) { | 174 void set_reduce_memory_result(bool reduce_memory_result) { |
171 reduce_memory_result_ = reduce_memory_result; | 175 reduce_memory_result_ = reduce_memory_result; |
172 } | 176 } |
173 | 177 |
174 virtual bool CreateHostImpl(const LayerTreeSettings& settings, | 178 virtual bool CreateHostImpl(const LayerTreeSettings& settings, |
175 scoped_ptr<OutputSurface> output_surface) { | 179 scoped_ptr<OutputSurface> output_surface) { |
176 host_impl_ = LayerTreeHostImpl::Create( | 180 host_impl_ = LayerTreeHostImpl::Create( |
177 settings, this, &proxy_, &stats_instrumentation_, | 181 settings, this, &proxy_, &stats_instrumentation_, |
178 shared_bitmap_manager_.get(), gpu_memory_buffer_manager_.get(), | 182 shared_bitmap_manager_.get(), gpu_memory_buffer_manager_.get(), |
(...skipping 7729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7908 // Hold an unowned pointer to the output surface to use for mock expectations. | 7912 // Hold an unowned pointer to the output surface to use for mock expectations. |
7909 MockReclaimResourcesOutputSurface* mock_output_surface = output_surface.get(); | 7913 MockReclaimResourcesOutputSurface* mock_output_surface = output_surface.get(); |
7910 | 7914 |
7911 CreateHostImpl(DefaultSettings(), output_surface.Pass()); | 7915 CreateHostImpl(DefaultSettings(), output_surface.Pass()); |
7912 EXPECT_CALL(*mock_output_surface, ForceReclaimResources()).Times(1); | 7916 EXPECT_CALL(*mock_output_surface, ForceReclaimResources()).Times(1); |
7913 host_impl_->BeginCommit(); | 7917 host_impl_->BeginCommit(); |
7914 } | 7918 } |
7915 | 7919 |
7916 } // namespace | 7920 } // namespace |
7917 } // namespace cc | 7921 } // namespace cc |
OLD | NEW |