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

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

Issue 1506023008: [NOT LANDED] Revert of cc: Split ThreadProxy into ProxyMain and ProxyImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« 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
14 // Creates a ProxyMain that notifies the supplied |test_hooks| of various
15 // actions.
16 class ProxyMainForTest : public ProxyMain {
17 public:
18 static scoped_ptr<ProxyMain> CreateThreaded(
19 TestHooks* test_hooks,
20 LayerTreeHost* host,
21 TaskRunnerProvider* task_runner_provider,
22 scoped_ptr<BeginFrameSource> external_begin_frame_source);
23
24 ~ProxyMainForTest() override;
25
26 ProxyMainForTest(TestHooks* test_hooks,
27 LayerTreeHost* host,
28 TaskRunnerProvider* task_runner_provider,
29 scoped_ptr<BeginFrameSource> external_begin_frame_source);
30
31 void SetNeedsUpdateLayers() override;
32 void DidCompleteSwapBuffers() override;
33 void SetRendererCapabilities(
34 const RendererCapabilities& capabilities) override;
35 void BeginMainFrameNotExpectedSoon() override;
36 void DidCommitAndDrawFrame() override;
37 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events) override;
38 void DidLoseOutputSurface() override;
39 void RequestNewOutputSurface() override;
40 void DidInitializeOutputSurface(
41 bool success,
42 const RendererCapabilities& capabilities) override;
43 void DidCompletePageScaleAnimation() override;
44 void PostFrameTimingEventsOnMain(
45 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events,
46 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events)
47 override;
48 void BeginMainFrame(
49 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state) override;
50
51 TestHooks* test_hooks_;
52 };
53
54 } // namespace cc
55
56 #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