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

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

Issue 2158973002: cc: Clean up LayerTreeTest and TestHooks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: proxy-impls: test Created 4 years, 5 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/proxy_impl_for_test.cc ('k') | cc/test/proxy_main_for_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CC_TEST_PROXY_MAIN_FOR_TEST_H_
6 #define CC_TEST_PROXY_MAIN_FOR_TEST_H_
7
8 #include "base/macros.h"
9 #include "cc/test/test_hooks.h"
10 #include "cc/trees/proxy_main.h"
11
12 namespace cc {
13 class ThreadedChannelForTest;
14
15 // Creates a ProxyMain that notifies the supplied |test_hooks| of various
16 // actions.
17 class ProxyMainForTest : public ProxyMain {
18 public:
19 static std::unique_ptr<ProxyMainForTest> CreateThreaded(
20 TestHooks* test_hooks,
21 LayerTreeHost* host,
22 TaskRunnerProvider* task_runner_provider);
23
24 static std::unique_ptr<ProxyMainForTest> CreateRemote(
25 TestHooks* test_hooks,
26 RemoteProtoChannel* remote_proto_channel,
27 LayerTreeHost* host,
28 TaskRunnerProvider* task_runner_provider);
29
30 ~ProxyMainForTest() override;
31
32 ProxyMainForTest(TestHooks* test_hooks,
33 LayerTreeHost* host,
34 TaskRunnerProvider* task_runner_provider);
35
36 ThreadedChannelForTest* threaded_channel_for_test() const {
37 return threaded_channel_for_test_;
38 }
39
40 void SetNeedsUpdateLayers() override;
41 void DidCompleteSwapBuffers() override;
42 void SetRendererCapabilities(
43 const RendererCapabilities& capabilities) override;
44 void BeginMainFrameNotExpectedSoon() override;
45 void DidCommitAndDrawFrame() override;
46 void SetAnimationEvents(std::unique_ptr<AnimationEvents> events) override;
47 void DidLoseOutputSurface() override;
48 void RequestNewOutputSurface() override;
49 void DidInitializeOutputSurface(
50 bool success,
51 const RendererCapabilities& capabilities) override;
52 void DidCompletePageScaleAnimation() override;
53 void BeginMainFrame(std::unique_ptr<BeginMainFrameAndCommitState>
54 begin_main_frame_state) override;
55
56 TestHooks* test_hooks_;
57 ThreadedChannelForTest* threaded_channel_for_test_;
58 };
59
60 } // namespace cc
61
62 #endif // CC_TEST_PROXY_MAIN_FOR_TEST_H_
OLDNEW
« no previous file with comments | « cc/test/proxy_impl_for_test.cc ('k') | cc/test/proxy_main_for_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698