| 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 10242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10379 // There should not be any jitter measured till we hit the fixed point hits | 10380 // There should not be any jitter measured till we hit the fixed point hits |
| 10380 // threshold. | 10381 // threshold. |
| 10381 float expected_jitter = | 10382 float expected_jitter = |
| 10382 (i == pending_tree->kFixedPointHitsThreshold) ? 500 : 0; | 10383 (i == pending_tree->kFixedPointHitsThreshold) ? 500 : 0; |
| 10383 EXPECT_EQ(jitter, expected_jitter); | 10384 EXPECT_EQ(jitter, expected_jitter); |
| 10384 } | 10385 } |
| 10385 } | 10386 } |
| 10386 | 10387 |
| 10387 } // namespace | 10388 } // namespace |
| 10388 } // namespace cc | 10389 } // namespace cc |
| OLD | NEW |