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

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

Issue 1584743002: CC Animation: Replace AnimiationEventsVector with AnimiationEvents class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 11 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_main_for_test.h ('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 #include "cc/test/proxy_main_for_test.h" 5 #include "cc/test/proxy_main_for_test.h"
6 6
7 #include "cc/animation/animation_events.h"
7 #include "cc/test/threaded_channel_for_test.h" 8 #include "cc/test/threaded_channel_for_test.h"
8 9
9 namespace cc { 10 namespace cc {
10 11
11 scoped_ptr<ProxyMain> ProxyMainForTest::CreateThreaded( 12 scoped_ptr<ProxyMain> ProxyMainForTest::CreateThreaded(
12 TestHooks* test_hooks, 13 TestHooks* test_hooks,
13 LayerTreeHost* host, 14 LayerTreeHost* host,
14 TaskRunnerProvider* task_runner_provider) { 15 TaskRunnerProvider* task_runner_provider) {
15 scoped_ptr<ProxyMain> proxy_main( 16 scoped_ptr<ProxyMain> proxy_main(
16 new ProxyMainForTest(test_hooks, host, task_runner_provider)); 17 new ProxyMainForTest(test_hooks, host, task_runner_provider));
(...skipping 28 matching lines...) Expand all
45 void ProxyMainForTest::BeginMainFrameNotExpectedSoon() { 46 void ProxyMainForTest::BeginMainFrameNotExpectedSoon() {
46 test_hooks_->ReceivedBeginMainFrameNotExpectedSoon(); 47 test_hooks_->ReceivedBeginMainFrameNotExpectedSoon();
47 ProxyMain::BeginMainFrameNotExpectedSoon(); 48 ProxyMain::BeginMainFrameNotExpectedSoon();
48 } 49 }
49 50
50 void ProxyMainForTest::DidCommitAndDrawFrame() { 51 void ProxyMainForTest::DidCommitAndDrawFrame() {
51 test_hooks_->ReceivedDidCommitAndDrawFrame(); 52 test_hooks_->ReceivedDidCommitAndDrawFrame();
52 ProxyMain::DidCommitAndDrawFrame(); 53 ProxyMain::DidCommitAndDrawFrame();
53 } 54 }
54 55
55 void ProxyMainForTest::SetAnimationEvents( 56 void ProxyMainForTest::SetAnimationEvents(scoped_ptr<AnimationEvents> events) {
56 scoped_ptr<AnimationEventsVector> events) {
57 test_hooks_->ReceivedSetAnimationEvents(); 57 test_hooks_->ReceivedSetAnimationEvents();
58 ProxyMain::SetAnimationEvents(std::move(events)); 58 ProxyMain::SetAnimationEvents(std::move(events));
59 } 59 }
60 60
61 void ProxyMainForTest::DidLoseOutputSurface() { 61 void ProxyMainForTest::DidLoseOutputSurface() {
62 test_hooks_->ReceivedDidLoseOutputSurface(); 62 test_hooks_->ReceivedDidLoseOutputSurface();
63 ProxyMain::DidLoseOutputSurface(); 63 ProxyMain::DidLoseOutputSurface();
64 } 64 }
65 65
66 void ProxyMainForTest::RequestNewOutputSurface() { 66 void ProxyMainForTest::RequestNewOutputSurface() {
(...skipping 21 matching lines...) Expand all
88 std::move(main_frame_events)); 88 std::move(main_frame_events));
89 } 89 }
90 90
91 void ProxyMainForTest::BeginMainFrame( 91 void ProxyMainForTest::BeginMainFrame(
92 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state) { 92 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state) {
93 test_hooks_->ReceivedBeginMainFrame(); 93 test_hooks_->ReceivedBeginMainFrame();
94 ProxyMain::BeginMainFrame(std::move(begin_main_frame_state)); 94 ProxyMain::BeginMainFrame(std::move(begin_main_frame_state));
95 } 95 }
96 96
97 } // namespace cc 97 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/proxy_main_for_test.h ('k') | cc/trees/channel_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698