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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 DidPrepareTiles() override {} | 159 void DidPrepareTiles() override {} |
160 void DidCompletePageScaleAnimationOnImplThread() override { | 160 void DidCompletePageScaleAnimationOnImplThread() override { |
161 did_complete_page_scale_animation_ = true; | 161 did_complete_page_scale_animation_ = true; |
162 } | 162 } |
| 163 void OnDrawForOutputSurface() override {} |
163 | 164 |
164 void set_reduce_memory_result(bool reduce_memory_result) { | 165 void set_reduce_memory_result(bool reduce_memory_result) { |
165 reduce_memory_result_ = reduce_memory_result; | 166 reduce_memory_result_ = reduce_memory_result; |
166 } | 167 } |
167 | 168 |
168 virtual bool CreateHostImpl(const LayerTreeSettings& settings, | 169 virtual bool CreateHostImpl(const LayerTreeSettings& settings, |
169 scoped_ptr<OutputSurface> output_surface) { | 170 scoped_ptr<OutputSurface> output_surface) { |
170 host_impl_ = LayerTreeHostImpl::Create(settings, | 171 host_impl_ = LayerTreeHostImpl::Create(settings, |
171 this, | 172 this, |
172 &proxy_, | 173 &proxy_, |
(...skipping 8325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8498 // surface. | 8499 // surface. |
8499 EXPECT_EQ(0, num_lost_surfaces_); | 8500 EXPECT_EQ(0, num_lost_surfaces_); |
8500 host_impl_->DidLoseOutputSurface(); | 8501 host_impl_->DidLoseOutputSurface(); |
8501 EXPECT_EQ(1, num_lost_surfaces_); | 8502 EXPECT_EQ(1, num_lost_surfaces_); |
8502 host_impl_->DidLoseOutputSurface(); | 8503 host_impl_->DidLoseOutputSurface(); |
8503 EXPECT_LE(1, num_lost_surfaces_); | 8504 EXPECT_LE(1, num_lost_surfaces_); |
8504 } | 8505 } |
8505 | 8506 |
8506 } // namespace | 8507 } // namespace |
8507 } // namespace cc | 8508 } // namespace cc |
OLD | NEW |