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

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

Issue 2409923002: cc: Rename SwapBuffers on CompositorFrameSink to SubmitCompositorFrame (Closed)
Patch Set: swap-to-submit: rebase Created 4 years, 2 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
« no previous file with comments | « cc/test/test_compositor_frame_sink.cc ('k') | cc/trees/channel_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_TEST_HOOKS_H_ 5 #ifndef CC_TEST_TEST_HOOKS_H_
6 #define CC_TEST_TEST_HOOKS_H_ 6 #define CC_TEST_TEST_HOOKS_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/animation/animation_delegate.h" 9 #include "cc/animation/animation_delegate.h"
10 #include "cc/trees/layer_tree_host.h" 10 #include "cc/trees/layer_tree_host.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 virtual void BeginMainFrame(const BeginFrameArgs& args) {} 86 virtual void BeginMainFrame(const BeginFrameArgs& args) {}
87 virtual void WillBeginMainFrame() {} 87 virtual void WillBeginMainFrame() {}
88 virtual void DidBeginMainFrame() {} 88 virtual void DidBeginMainFrame() {}
89 virtual void UpdateLayerTreeHost() {} 89 virtual void UpdateLayerTreeHost() {}
90 virtual void DidInitializeCompositorFrameSink() {} 90 virtual void DidInitializeCompositorFrameSink() {}
91 virtual void DidFailToInitializeCompositorFrameSink() {} 91 virtual void DidFailToInitializeCompositorFrameSink() {}
92 virtual void DidAddAnimation() {} 92 virtual void DidAddAnimation() {}
93 virtual void WillCommit() {} 93 virtual void WillCommit() {}
94 virtual void DidCommit() {} 94 virtual void DidCommit() {}
95 virtual void DidCommitAndDrawFrame() {} 95 virtual void DidCommitAndDrawFrame() {}
96 virtual void DidCompleteSwapBuffers() {} 96 virtual void DidReceiveCompositorFrameAck() {}
97 virtual void ScheduleComposite() {} 97 virtual void ScheduleComposite() {}
98 virtual void DidActivateSyncTree() {} 98 virtual void DidActivateSyncTree() {}
99 99
100 // AnimationDelegate implementation. 100 // AnimationDelegate implementation.
101 void NotifyAnimationStarted(base::TimeTicks monotonic_time, 101 void NotifyAnimationStarted(base::TimeTicks monotonic_time,
102 TargetProperty::Type target_property, 102 TargetProperty::Type target_property,
103 int group) override {} 103 int group) override {}
104 void NotifyAnimationFinished(base::TimeTicks monotonic_time, 104 void NotifyAnimationFinished(base::TimeTicks monotonic_time,
105 TargetProperty::Type target_property, 105 TargetProperty::Type target_property,
106 int group) override {} 106 int group) override {}
107 void NotifyAnimationAborted(base::TimeTicks monotonic_time, 107 void NotifyAnimationAborted(base::TimeTicks monotonic_time,
108 TargetProperty::Type target_property, 108 TargetProperty::Type target_property,
109 int group) override {} 109 int group) override {}
110 void NotifyAnimationTakeover(base::TimeTicks monotonic_time, 110 void NotifyAnimationTakeover(base::TimeTicks monotonic_time,
111 TargetProperty::Type target_property, 111 TargetProperty::Type target_property,
112 double animation_start_time, 112 double animation_start_time,
113 std::unique_ptr<AnimationCurve> curve) override { 113 std::unique_ptr<AnimationCurve> curve) override {
114 } 114 }
115 115
116 virtual void RequestNewCompositorFrameSink() = 0; 116 virtual void RequestNewCompositorFrameSink() = 0;
117 }; 117 };
118 118
119 } // namespace cc 119 } // namespace cc
120 120
121 #endif // CC_TEST_TEST_HOOKS_H_ 121 #endif // CC_TEST_TEST_HOOKS_H_
OLDNEW
« no previous file with comments | « cc/test/test_compositor_frame_sink.cc ('k') | cc/trees/channel_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698