Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Side by Side Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 1584743002: CC Animation: Replace AnimiationEventsVector with AnimiationEvents class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows compilation with MSVC. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698