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

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: Addressed vmpstr's comments. Created 4 years, 10 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/remote_proto_channel_bridge.cc ('k') | cc/test/threaded_channel_for_test.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"
11 #include "cc/trees/layer_tree_host_impl.h" 11 #include "cc/trees/layer_tree_host_impl.h"
12 12
13 namespace cc { 13 namespace cc {
14 14
15 namespace proto {
16 class CompositorMessageToImpl;
17 }
18
15 // Used by test stubs to notify the test when something interesting happens. 19 // Used by test stubs to notify the test when something interesting happens.
16 class TestHooks : public AnimationDelegate { 20 class TestHooks : public AnimationDelegate {
17 public: 21 public:
18 TestHooks(); 22 TestHooks();
19 ~TestHooks() override; 23 ~TestHooks() override;
20 24
21 void ReadSettings(const LayerTreeSettings& settings); 25 void ReadSettings(const LayerTreeSettings& settings);
22 26
23 virtual void CreateResourceAndTileTaskWorkerPool( 27 virtual void CreateResourceAndTileTaskWorkerPool(
24 LayerTreeHostImpl* host_impl, 28 LayerTreeHostImpl* host_impl,
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void NotifyAnimationAborted(base::TimeTicks monotonic_time, 137 void NotifyAnimationAborted(base::TimeTicks monotonic_time,
134 Animation::TargetProperty target_property, 138 Animation::TargetProperty target_property,
135 int group) override {} 139 int group) override {}
136 140
137 virtual void RequestNewOutputSurface() = 0; 141 virtual void RequestNewOutputSurface() = 0;
142
143 // Used to notify the test to create the Remote client LayerTreeHost on
144 // receiving a CompositorMessageToImpl of type INITIALIZE_IMPL.
145 virtual void CreateRemoteClientHost(
146 const proto::CompositorMessageToImpl& proto) {}
147
148 // Used to notify the test to destroy the Remote client LayerTreeHost on
149 // receiving a CompositorMessageToImpl of type CLOSE_IMPL.
150 virtual void DestroyRemoteClientHost() {}
138 }; 151 };
139 152
140 } // namespace cc 153 } // namespace cc
141 154
142 #endif // CC_TEST_TEST_HOOKS_H_ 155 #endif // CC_TEST_TEST_HOOKS_H_
OLDNEW
« no previous file with comments | « cc/test/remote_proto_channel_bridge.cc ('k') | cc/test/threaded_channel_for_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698