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

Side by Side Diff: cc/test/proxy_impl_for_test.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_PROXY_IMPL_FOR_TEST_H_ 5 #ifndef CC_TEST_PROXY_IMPL_FOR_TEST_H_
6 #define CC_TEST_PROXY_IMPL_FOR_TEST_H_ 6 #define CC_TEST_PROXY_IMPL_FOR_TEST_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/test/test_hooks.h" 9 #include "cc/test/test_hooks.h"
10 #include "cc/trees/proxy_impl.h" 10 #include "cc/trees/proxy_impl.h"
11 11
12 namespace cc { 12 namespace cc {
13 // Creates a ProxyImpl that notifies the supplied |test_hooks| of various 13 // Creates a ProxyImpl that notifies the supplied |test_hooks| of various
14 // actions. 14 // actions.
15 class ProxyImplForTest : public ProxyImpl { 15 class ProxyImplForTest : public ProxyImpl {
16 public: 16 public:
17 static scoped_ptr<ProxyImpl> Create( 17 static scoped_ptr<ProxyImplForTest> Create(
18 TestHooks* test_hooks, 18 TestHooks* test_hooks,
19 ChannelImpl* channel_impl, 19 ChannelImpl* channel_impl,
20 LayerTreeHost* layer_tree_host, 20 LayerTreeHost* layer_tree_host,
21 TaskRunnerProvider* task_runner_provider, 21 TaskRunnerProvider* task_runner_provider,
22 scoped_ptr<BeginFrameSource> external_begin_frame_source); 22 scoped_ptr<BeginFrameSource> external_begin_frame_source);
23 23
24 using ProxyImpl::PostAnimationEventsToMainThreadOnImplThread; 24 using ProxyImpl::PostAnimationEventsToMainThreadOnImplThread;
25 using ProxyImpl::DidLoseOutputSurfaceOnImplThread; 25 using ProxyImpl::DidLoseOutputSurfaceOnImplThread;
26 using ProxyImpl::DidCompletePageScaleAnimationOnImplThread; 26 using ProxyImpl::DidCompletePageScaleAnimationOnImplThread;
27 using ProxyImpl::SendBeginMainFrameNotExpectedSoon; 27 using ProxyImpl::SendBeginMainFrameNotExpectedSoon;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 LayerTreeHost* layer_tree_host, 64 LayerTreeHost* layer_tree_host,
65 base::TimeTicks main_thread_start_time, 65 base::TimeTicks main_thread_start_time,
66 bool hold_commit_for_activation) override; 66 bool hold_commit_for_activation) override;
67 67
68 TestHooks* test_hooks_; 68 TestHooks* test_hooks_;
69 }; 69 };
70 70
71 } // namespace cc 71 } // namespace cc
72 72
73 #endif // CC_TEST_PROXY_IMPL_FOR_TEST_H_ 73 #endif // CC_TEST_PROXY_IMPL_FOR_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698