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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <cmath> | 10 #include <cmath> |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 void SetUp() override { | 117 void SetUp() override { |
118 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); | 118 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); |
119 } | 119 } |
120 | 120 |
121 void TearDown() override {} | 121 void TearDown() override {} |
122 | 122 |
123 void UpdateRendererCapabilitiesOnImplThread() override {} | 123 void UpdateRendererCapabilitiesOnImplThread() override {} |
124 void DidLoseOutputSurfaceOnImplThread() override {} | 124 void DidLoseOutputSurfaceOnImplThread() override {} |
125 void CommitVSyncParameters(base::TimeTicks timebase, | 125 void CommitVSyncParameters(base::TimeTicks timebase, |
126 base::TimeDelta interval) override {} | 126 base::TimeDelta interval) override {} |
| 127 void SetBeginFrameSource(BeginFrameSource* source) override {} |
127 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override {} | 128 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override {} |
128 void DidSwapBuffersOnImplThread() override {} | 129 void DidSwapBuffersOnImplThread() override {} |
129 void DidSwapBuffersCompleteOnImplThread() override {} | 130 void DidSwapBuffersCompleteOnImplThread() override {} |
130 void OnCanDrawStateChanged(bool can_draw) override { | 131 void OnCanDrawStateChanged(bool can_draw) override { |
131 on_can_draw_state_changed_called_ = true; | 132 on_can_draw_state_changed_called_ = true; |
132 } | 133 } |
133 void NotifyReadyToActivate() override { | 134 void NotifyReadyToActivate() override { |
134 did_notify_ready_to_activate_ = true; | 135 did_notify_ready_to_activate_ = true; |
135 host_impl_->ActivateSyncTree(); | 136 host_impl_->ActivateSyncTree(); |
136 } | 137 } |
(...skipping 10535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10672 // There should not be any jitter measured till we hit the fixed point hits | 10673 // There should not be any jitter measured till we hit the fixed point hits |
10673 // threshold. | 10674 // threshold. |
10674 float expected_jitter = | 10675 float expected_jitter = |
10675 (i == pending_tree->kFixedPointHitsThreshold) ? 500 : 0; | 10676 (i == pending_tree->kFixedPointHitsThreshold) ? 500 : 0; |
10676 EXPECT_EQ(jitter, expected_jitter); | 10677 EXPECT_EQ(jitter, expected_jitter); |
10677 } | 10678 } |
10678 } | 10679 } |
10679 | 10680 |
10680 } // namespace | 10681 } // namespace |
10681 } // namespace cc | 10682 } // namespace cc |
OLD | NEW |