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

Side by Side Diff: cc/trees/threaded_channel.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_TREES_THREADED_CHANNEL_H_ 5 #ifndef CC_TREES_THREADED_CHANNEL_H_
6 #define CC_TREES_THREADED_CHANNEL_H_ 6 #define CC_TREES_THREADED_CHANNEL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 bool success, 125 bool success,
126 const RendererCapabilities& capabilities) override; 126 const RendererCapabilities& capabilities) override;
127 void DidCompletePageScaleAnimation() override; 127 void DidCompletePageScaleAnimation() override;
128 void PostFrameTimingEventsOnMain( 128 void PostFrameTimingEventsOnMain(
129 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, 129 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events,
130 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) 130 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events)
131 override; 131 override;
132 void BeginMainFrame( 132 void BeginMainFrame(
133 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state) override; 133 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state) override;
134 134
135 // Should be called on impl thread only.
136 ProxyImpl* GetProxyImplForTesting() const;
137
138 protected: 135 protected:
139 ThreadedChannel(ProxyMain* proxy_main, 136 ThreadedChannel(ProxyMain* proxy_main,
140 TaskRunnerProvider* task_runner_provider); 137 TaskRunnerProvider* task_runner_provider);
141 138
142 // Virtual for testing. 139 // Virtual for testing.
143 virtual scoped_ptr<ProxyImpl> CreateProxyImpl( 140 virtual scoped_ptr<ProxyImpl> CreateProxyImpl(
144 ChannelImpl* channel_impl, 141 ChannelImpl* channel_impl,
145 LayerTreeHost* layer_tree_host, 142 LayerTreeHost* layer_tree_host,
146 TaskRunnerProvider* task_runner_provider, 143 TaskRunnerProvider* task_runner_provider,
147 scoped_ptr<BeginFrameSource> external_begin_frame_source); 144 scoped_ptr<BeginFrameSource> external_begin_frame_source);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // Used on the main thread to safely queue calls to ProxyImpl to be run on the 207 // Used on the main thread to safely queue calls to ProxyImpl to be run on the
211 // impl thread. 208 // impl thread.
212 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_; 209 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_;
213 210
214 DISALLOW_COPY_AND_ASSIGN(ThreadedChannel); 211 DISALLOW_COPY_AND_ASSIGN(ThreadedChannel);
215 }; 212 };
216 213
217 } // namespace cc 214 } // namespace cc
218 215
219 #endif // CC_TREES_THREADED_CHANNEL_H_ 216 #endif // CC_TREES_THREADED_CHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698