| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 base::TimeDelta delay) override { | 161 base::TimeDelta delay) override { |
| 162 animation_task_ = task; | 162 animation_task_ = task; |
| 163 requested_animation_delay_ = delay; | 163 requested_animation_delay_ = delay; |
| 164 } | 164 } |
| 165 void DidActivateSyncTree() override {} | 165 void DidActivateSyncTree() override {} |
| 166 void DidPrepareTiles() override {} | 166 void DidPrepareTiles() override {} |
| 167 void DidCompletePageScaleAnimationOnImplThread() override { | 167 void DidCompletePageScaleAnimationOnImplThread() override { |
| 168 did_complete_page_scale_animation_ = true; | 168 did_complete_page_scale_animation_ = true; |
| 169 } | 169 } |
| 170 void OnDrawForOutputSurface() override {} | 170 void OnDrawForOutputSurface() override {} |
| 171 void PostFrameTimingEventsOnImplThread( |
| 172 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, |
| 173 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) |
| 174 override {} |
| 171 | 175 |
| 172 void set_reduce_memory_result(bool reduce_memory_result) { | 176 void set_reduce_memory_result(bool reduce_memory_result) { |
| 173 reduce_memory_result_ = reduce_memory_result; | 177 reduce_memory_result_ = reduce_memory_result; |
| 174 } | 178 } |
| 175 | 179 |
| 176 virtual bool CreateHostImpl(const LayerTreeSettings& settings, | 180 virtual bool CreateHostImpl(const LayerTreeSettings& settings, |
| 177 scoped_ptr<OutputSurface> output_surface) { | 181 scoped_ptr<OutputSurface> output_surface) { |
| 178 host_impl_ = LayerTreeHostImpl::Create( | 182 host_impl_ = LayerTreeHostImpl::Create( |
| 179 settings, this, &proxy_, &stats_instrumentation_, | 183 settings, this, &proxy_, &stats_instrumentation_, |
| 180 shared_bitmap_manager_.get(), gpu_memory_buffer_manager_.get(), | 184 shared_bitmap_manager_.get(), gpu_memory_buffer_manager_.get(), |
| (...skipping 7692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7873 // Hold an unowned pointer to the output surface to use for mock expectations. | 7877 // Hold an unowned pointer to the output surface to use for mock expectations. |
| 7874 MockReclaimResourcesOutputSurface* mock_output_surface = output_surface.get(); | 7878 MockReclaimResourcesOutputSurface* mock_output_surface = output_surface.get(); |
| 7875 | 7879 |
| 7876 CreateHostImpl(DefaultSettings(), output_surface.Pass()); | 7880 CreateHostImpl(DefaultSettings(), output_surface.Pass()); |
| 7877 EXPECT_CALL(*mock_output_surface, ForceReclaimResources()).Times(1); | 7881 EXPECT_CALL(*mock_output_surface, ForceReclaimResources()).Times(1); |
| 7878 host_impl_->BeginCommit(); | 7882 host_impl_->BeginCommit(); |
| 7879 } | 7883 } |
| 7880 | 7884 |
| 7881 } // namespace | 7885 } // namespace |
| 7882 } // namespace cc | 7886 } // namespace cc |
| OLD | NEW |