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

Side by Side Diff: cc/trees/threaded_channel.h

Issue 2282433002: Revert of cc: Delete all the RendererCapabilities. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-prepare-mailbox-param
Patch Set: Created 4 years, 3 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/trees/single_thread_proxy.cc ('k') | cc/trees/threaded_channel.cc » ('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 #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 <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 LayerTreeHost* layer_tree_host, 110 LayerTreeHost* layer_tree_host,
111 base::TimeTicks main_thread_start_time, 111 base::TimeTicks main_thread_start_time,
112 bool hold_commit_for_activation) override; 112 bool hold_commit_for_activation) override;
113 void SynchronouslyInitializeImpl( 113 void SynchronouslyInitializeImpl(
114 LayerTreeHost* layer_tree_host, 114 LayerTreeHost* layer_tree_host,
115 std::unique_ptr<BeginFrameSource> external_begin_frame_source) override; 115 std::unique_ptr<BeginFrameSource> external_begin_frame_source) override;
116 void SynchronouslyCloseImpl() override; 116 void SynchronouslyCloseImpl() override;
117 117
118 // ChannelImpl Implementation 118 // ChannelImpl Implementation
119 void DidCompleteSwapBuffers() override; 119 void DidCompleteSwapBuffers() override;
120 void SetRendererCapabilitiesMainCopy(
121 const RendererCapabilities& capabilities) override;
120 void BeginMainFrameNotExpectedSoon() override; 122 void BeginMainFrameNotExpectedSoon() override;
121 void DidCommitAndDrawFrame() override; 123 void DidCommitAndDrawFrame() override;
122 void SetAnimationEvents(std::unique_ptr<AnimationEvents> events) override; 124 void SetAnimationEvents(std::unique_ptr<AnimationEvents> events) override;
123 void DidLoseOutputSurface() override; 125 void DidLoseOutputSurface() override;
124 void RequestNewOutputSurface() override; 126 void RequestNewOutputSurface() override;
125 void DidInitializeOutputSurface(bool success) override; 127 void DidInitializeOutputSurface(
128 bool success,
129 const RendererCapabilities& capabilities) override;
126 void DidCompletePageScaleAnimation() override; 130 void DidCompletePageScaleAnimation() override;
127 void BeginMainFrame(std::unique_ptr<BeginMainFrameAndCommitState> 131 void BeginMainFrame(std::unique_ptr<BeginMainFrameAndCommitState>
128 begin_main_frame_state) override; 132 begin_main_frame_state) override;
129 133
130 protected: 134 protected:
131 ThreadedChannel(ProxyMain* proxy_main, 135 ThreadedChannel(ProxyMain* proxy_main,
132 TaskRunnerProvider* task_runner_provider); 136 TaskRunnerProvider* task_runner_provider);
133 137
134 // Virtual for testing. 138 // Virtual for testing.
135 virtual std::unique_ptr<ProxyImpl> CreateProxyImpl( 139 virtual std::unique_ptr<ProxyImpl> CreateProxyImpl(
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // Used on the main thread to safely queue calls to ProxyImpl to be run on the 206 // Used on the main thread to safely queue calls to ProxyImpl to be run on the
203 // impl thread. 207 // impl thread.
204 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_; 208 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_;
205 209
206 DISALLOW_COPY_AND_ASSIGN(ThreadedChannel); 210 DISALLOW_COPY_AND_ASSIGN(ThreadedChannel);
207 }; 211 };
208 212
209 } // namespace cc 213 } // namespace cc
210 214
211 #endif // CC_TREES_THREADED_CHANNEL_H_ 215 #endif // CC_TREES_THREADED_CHANNEL_H_
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | cc/trees/threaded_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698