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 base::TimeTicks GetNextBeginImplFrameTimeIfRequested() const override { | |
mithro-old
2015/03/11 04:01:33
If this method should never be called, then can yo
vmpstr
2015/03/16 18:36:43
I've added a NOTREACHED.
| |
164 return base::TimeTicks(); | |
165 } | |
163 | 166 |
164 void set_reduce_memory_result(bool reduce_memory_result) { | 167 void set_reduce_memory_result(bool reduce_memory_result) { |
165 reduce_memory_result_ = reduce_memory_result; | 168 reduce_memory_result_ = reduce_memory_result; |
166 } | 169 } |
167 | 170 |
168 virtual bool CreateHostImpl(const LayerTreeSettings& settings, | 171 virtual bool CreateHostImpl(const LayerTreeSettings& settings, |
169 scoped_ptr<OutputSurface> output_surface) { | 172 scoped_ptr<OutputSurface> output_surface) { |
170 host_impl_ = LayerTreeHostImpl::Create(settings, | 173 host_impl_ = LayerTreeHostImpl::Create(settings, |
171 this, | 174 this, |
172 &proxy_, | 175 &proxy_, |
(...skipping 8304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
8477 // surface. | 8480 // surface. |
8478 EXPECT_EQ(0, num_lost_surfaces_); | 8481 EXPECT_EQ(0, num_lost_surfaces_); |
8479 host_impl_->DidLoseOutputSurface(); | 8482 host_impl_->DidLoseOutputSurface(); |
8480 EXPECT_EQ(1, num_lost_surfaces_); | 8483 EXPECT_EQ(1, num_lost_surfaces_); |
8481 host_impl_->DidLoseOutputSurface(); | 8484 host_impl_->DidLoseOutputSurface(); |
8482 EXPECT_LE(1, num_lost_surfaces_); | 8485 EXPECT_LE(1, num_lost_surfaces_); |
8483 } | 8486 } |
8484 | 8487 |
8485 } // namespace | 8488 } // namespace |
8486 } // namespace cc | 8489 } // namespace cc |
OLD | NEW |