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

Side by Side Diff: cc/test/layer_tree_test.h

Issue 99733003: Add monotonic time and target property to cc::AnimationDelegate notifications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years 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 | Annotate | Revision Log
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 #ifndef CC_TEST_LAYER_TREE_TEST_H_ 5 #ifndef CC_TEST_LAYER_TREE_TEST_H_
6 #define CC_TEST_LAYER_TREE_TEST_H_ 6 #define CC_TEST_LAYER_TREE_TEST_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/threading/thread.h" 9 #include "base/threading/thread.h"
10 #include "cc/animation/animation_delegate.h" 10 #include "cc/animation/animation_delegate.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual void DidCommitAndDrawFrame() {} 68 virtual void DidCommitAndDrawFrame() {}
69 virtual void DidCompleteSwapBuffers() {} 69 virtual void DidCompleteSwapBuffers() {}
70 virtual void ScheduleComposite() {} 70 virtual void ScheduleComposite() {}
71 virtual void ScheduleAnimation() {} 71 virtual void ScheduleAnimation() {}
72 virtual void DidDeferCommit() {} 72 virtual void DidDeferCommit() {}
73 virtual void DidSetVisibleOnImplTree(LayerTreeHostImpl* host_impl, 73 virtual void DidSetVisibleOnImplTree(LayerTreeHostImpl* host_impl,
74 bool visible) {} 74 bool visible) {}
75 virtual base::TimeDelta LowFrequencyAnimationInterval() const; 75 virtual base::TimeDelta LowFrequencyAnimationInterval() const;
76 76
77 // Implementation of AnimationDelegate: 77 // Implementation of AnimationDelegate:
78 virtual void NotifyAnimationStarted(double time) OVERRIDE {} 78 virtual void NotifyAnimationStarted(
79 virtual void NotifyAnimationFinished(double time) OVERRIDE {} 79 double wall_clock_time,
80 base::TimeTicks monotonic_time,
81 Animation::TargetProperty target_property) OVERRIDE {}
82 virtual void NotifyAnimationFinished(
83 double wall_clock_time,
84 base::TimeTicks monotonic_time,
85 Animation::TargetProperty target_property) OVERRIDE {}
80 86
81 virtual scoped_ptr<OutputSurface> CreateOutputSurface(bool fallback) = 0; 87 virtual scoped_ptr<OutputSurface> CreateOutputSurface(bool fallback) = 0;
82 virtual scoped_refptr<ContextProvider> OffscreenContextProvider() = 0; 88 virtual scoped_refptr<ContextProvider> OffscreenContextProvider() = 0;
83 }; 89 };
84 90
85 class BeginTask; 91 class BeginTask;
86 class LayerTreeHostClientForTesting; 92 class LayerTreeHostClientForTesting;
87 class TimeoutTask; 93 class TimeoutTask;
88 94
89 // The LayerTreeTests runs with the main loop running. It instantiates a single 95 // The LayerTreeTests runs with the main loop running. It instantiates a single
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 277
272 #define SINGLE_AND_MULTI_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME) \ 278 #define SINGLE_AND_MULTI_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME) \
273 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \ 279 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \
274 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_NOIMPL_TEST_F(TEST_FIXTURE_NAME) 280 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_NOIMPL_TEST_F(TEST_FIXTURE_NAME)
275 281
276 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ 282 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \
277 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ 283 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \
278 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) 284 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME)
279 285
280 #endif // CC_TEST_LAYER_TREE_TEST_H_ 286 #endif // CC_TEST_LAYER_TREE_TEST_H_
OLDNEW
« no previous file with comments | « cc/animation/layer_animation_controller_unittest.cc ('k') | cc/trees/layer_tree_host_unittest_animation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698