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

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

Issue 1513643010: cc:: Add remote mode to the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use LayerTreeSettings::ToProtobuf, update comments. Created 5 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
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 virtual void ReceivedSetAnimationEvents() {} 116 virtual void ReceivedSetAnimationEvents() {}
117 virtual void ReceivedDidLoseOutputSurface() {} 117 virtual void ReceivedDidLoseOutputSurface() {}
118 virtual void ReceivedRequestNewOutputSurface() {} 118 virtual void ReceivedRequestNewOutputSurface() {}
119 virtual void ReceivedDidInitializeOutputSurface( 119 virtual void ReceivedDidInitializeOutputSurface(
120 bool success, 120 bool success,
121 const RendererCapabilities& capabilities) {} 121 const RendererCapabilities& capabilities) {}
122 virtual void ReceivedDidCompletePageScaleAnimation() {} 122 virtual void ReceivedDidCompletePageScaleAnimation() {}
123 virtual void ReceivedPostFrameTimingEventsOnMain() {} 123 virtual void ReceivedPostFrameTimingEventsOnMain() {}
124 virtual void ReceivedBeginMainFrame() {} 124 virtual void ReceivedBeginMainFrame() {}
125 125
126 // Hooks for RemoteChannelHostClient
127 virtual void OverrideLayerTreeSettings(LayerTreeSettings* settings) {}
128 virtual void ReceivedDidShutdown() {}
129
126 // Implementation of AnimationDelegate: 130 // Implementation of AnimationDelegate:
127 void NotifyAnimationStarted(base::TimeTicks monotonic_time, 131 void NotifyAnimationStarted(base::TimeTicks monotonic_time,
128 Animation::TargetProperty target_property, 132 Animation::TargetProperty target_property,
129 int group) override {} 133 int group) override {}
130 void NotifyAnimationFinished(base::TimeTicks monotonic_time, 134 void NotifyAnimationFinished(base::TimeTicks monotonic_time,
131 Animation::TargetProperty target_property, 135 Animation::TargetProperty target_property,
132 int group) override {} 136 int group) override {}
133 137
134 virtual void RequestNewOutputSurface() = 0; 138 virtual void RequestNewOutputSurface() = 0;
139 virtual void DidShutdown() = 0;
135 }; 140 };
136 141
137 } // namespace cc 142 } // namespace cc
138 143
139 #endif // CC_TEST_TEST_HOOKS_H_ 144 #endif // CC_TEST_TEST_HOOKS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698