| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 } | 144 } |
| 145 void SetNeedsOneBeginImplFrameOnImplThread() override { | 145 void SetNeedsOneBeginImplFrameOnImplThread() override { |
| 146 did_request_next_frame_ = true; | 146 did_request_next_frame_ = true; |
| 147 } | 147 } |
| 148 void SetNeedsPrepareTilesOnImplThread() override { | 148 void SetNeedsPrepareTilesOnImplThread() override { |
| 149 did_request_prepare_tiles_ = true; | 149 did_request_prepare_tiles_ = true; |
| 150 } | 150 } |
| 151 void SetNeedsCommitOnImplThread() override { did_request_commit_ = true; } | 151 void SetNeedsCommitOnImplThread() override { did_request_commit_ = true; } |
| 152 void SetVideoNeedsBeginFrames(bool needs_begin_frames) override {} | 152 void SetVideoNeedsBeginFrames(bool needs_begin_frames) override {} |
| 153 void PostAnimationEventsToMainThreadOnImplThread( | 153 void PostAnimationEventsToMainThreadOnImplThread( |
| 154 scoped_ptr<AnimationEventsVector> events) override {} | 154 scoped_ptr<AnimationEvents> events) override {} |
| 155 bool IsInsideDraw() override { return false; } | 155 bool IsInsideDraw() override { return false; } |
| 156 void RenewTreePriority() override {} | 156 void RenewTreePriority() override {} |
| 157 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, | 157 void PostDelayedAnimationTaskOnImplThread(const base::Closure& task, |
| 158 base::TimeDelta delay) override { | 158 base::TimeDelta delay) override { |
| 159 animation_task_ = task; | 159 animation_task_ = task; |
| 160 requested_animation_delay_ = delay; | 160 requested_animation_delay_ = delay; |
| 161 } | 161 } |
| 162 void DidActivateSyncTree() override {} | 162 void DidActivateSyncTree() override {} |
| 163 void WillPrepareTiles() override {} | 163 void WillPrepareTiles() override {} |
| 164 void DidPrepareTiles() override {} | 164 void DidPrepareTiles() override {} |
| (...skipping 9311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9476 // There should not be any jitter measured till we hit the fixed point hits | 9476 // There should not be any jitter measured till we hit the fixed point hits |
| 9477 // threshold. | 9477 // threshold. |
| 9478 float expected_jitter = | 9478 float expected_jitter = |
| 9479 (i == pending_tree->kFixedPointHitsThreshold) ? 500 : 0; | 9479 (i == pending_tree->kFixedPointHitsThreshold) ? 500 : 0; |
| 9480 EXPECT_EQ(jitter, expected_jitter); | 9480 EXPECT_EQ(jitter, expected_jitter); |
| 9481 } | 9481 } |
| 9482 } | 9482 } |
| 9483 | 9483 |
| 9484 } // namespace | 9484 } // namespace |
| 9485 } // namespace cc | 9485 } // namespace cc |
| OLD | NEW |