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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 } | 148 } |
149 bool IsInsideDraw() override { return false; } | 149 bool IsInsideDraw() override { return false; } |
150 void RenewTreePriority() override {} | 150 void RenewTreePriority() override {} |
151 void PostDelayedScrollbarFadeOnImplThread(const base::Closure& start_fade, | 151 void PostDelayedScrollbarFadeOnImplThread(const base::Closure& start_fade, |
152 base::TimeDelta delay) override { | 152 base::TimeDelta delay) override { |
153 scrollbar_fade_start_ = start_fade; | 153 scrollbar_fade_start_ = start_fade; |
154 requested_scrollbar_animation_delay_ = delay; | 154 requested_scrollbar_animation_delay_ = delay; |
155 } | 155 } |
156 void DidActivateSyncTree() override {} | 156 void DidActivateSyncTree() override {} |
157 void DidPrepareTiles() override {} | 157 void DidPrepareTiles() override {} |
| 158 void DidCompletePageScaleAnimationOnImplThread() override {} |
158 | 159 |
159 void set_reduce_memory_result(bool reduce_memory_result) { | 160 void set_reduce_memory_result(bool reduce_memory_result) { |
160 reduce_memory_result_ = reduce_memory_result; | 161 reduce_memory_result_ = reduce_memory_result; |
161 } | 162 } |
162 | 163 |
163 virtual bool CreateHostImpl(const LayerTreeSettings& settings, | 164 virtual bool CreateHostImpl(const LayerTreeSettings& settings, |
164 scoped_ptr<OutputSurface> output_surface) { | 165 scoped_ptr<OutputSurface> output_surface) { |
165 host_impl_ = LayerTreeHostImpl::Create(settings, | 166 host_impl_ = LayerTreeHostImpl::Create(settings, |
166 this, | 167 this, |
167 &proxy_, | 168 &proxy_, |
(...skipping 7836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8004 // surface. | 8005 // surface. |
8005 EXPECT_EQ(0, num_lost_surfaces_); | 8006 EXPECT_EQ(0, num_lost_surfaces_); |
8006 host_impl_->DidLoseOutputSurface(); | 8007 host_impl_->DidLoseOutputSurface(); |
8007 EXPECT_EQ(1, num_lost_surfaces_); | 8008 EXPECT_EQ(1, num_lost_surfaces_); |
8008 host_impl_->DidLoseOutputSurface(); | 8009 host_impl_->DidLoseOutputSurface(); |
8009 EXPECT_LE(1, num_lost_surfaces_); | 8010 EXPECT_LE(1, num_lost_surfaces_); |
8010 } | 8011 } |
8011 | 8012 |
8012 } // namespace | 8013 } // namespace |
8013 } // namespace cc | 8014 } // namespace cc |
OLD | NEW |