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

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

Issue 2267263002: cc: Delete all the RendererCapabilities. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-prepare-mailbox-param
Patch Set: renderer-caps: rebase 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/threaded_channel.h ('k') | no next file » | 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/trees/threaded_channel.h" 5 #include "cc/trees/threaded_channel.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 main().initialized = false; 192 main().initialized = false;
193 } 193 }
194 194
195 void ThreadedChannel::DidCompleteSwapBuffers() { 195 void ThreadedChannel::DidCompleteSwapBuffers() {
196 DCHECK(IsImplThread()); 196 DCHECK(IsImplThread());
197 MainThreadTaskRunner()->PostTask( 197 MainThreadTaskRunner()->PostTask(
198 FROM_HERE, base::Bind(&ProxyMain::DidCompleteSwapBuffers, 198 FROM_HERE, base::Bind(&ProxyMain::DidCompleteSwapBuffers,
199 impl().proxy_main_weak_ptr)); 199 impl().proxy_main_weak_ptr));
200 } 200 }
201 201
202 void ThreadedChannel::SetRendererCapabilitiesMainCopy(
203 const RendererCapabilities& capabilities) {
204 DCHECK(IsImplThread());
205 MainThreadTaskRunner()->PostTask(
206 FROM_HERE, base::Bind(&ProxyMain::SetRendererCapabilities,
207 impl().proxy_main_weak_ptr, capabilities));
208 }
209
210 void ThreadedChannel::BeginMainFrameNotExpectedSoon() { 202 void ThreadedChannel::BeginMainFrameNotExpectedSoon() {
211 DCHECK(IsImplThread()); 203 DCHECK(IsImplThread());
212 MainThreadTaskRunner()->PostTask( 204 MainThreadTaskRunner()->PostTask(
213 FROM_HERE, base::Bind(&ProxyMain::BeginMainFrameNotExpectedSoon, 205 FROM_HERE, base::Bind(&ProxyMain::BeginMainFrameNotExpectedSoon,
214 impl().proxy_main_weak_ptr)); 206 impl().proxy_main_weak_ptr));
215 } 207 }
216 208
217 void ThreadedChannel::DidCommitAndDrawFrame() { 209 void ThreadedChannel::DidCommitAndDrawFrame() {
218 DCHECK(IsImplThread()); 210 DCHECK(IsImplThread());
219 MainThreadTaskRunner()->PostTask(FROM_HERE, 211 MainThreadTaskRunner()->PostTask(FROM_HERE,
(...skipping 16 matching lines...) Expand all
236 base::Bind(&ProxyMain::DidLoseOutputSurface, impl().proxy_main_weak_ptr)); 228 base::Bind(&ProxyMain::DidLoseOutputSurface, impl().proxy_main_weak_ptr));
237 } 229 }
238 230
239 void ThreadedChannel::RequestNewOutputSurface() { 231 void ThreadedChannel::RequestNewOutputSurface() {
240 DCHECK(IsImplThread()); 232 DCHECK(IsImplThread());
241 MainThreadTaskRunner()->PostTask( 233 MainThreadTaskRunner()->PostTask(
242 FROM_HERE, base::Bind(&ProxyMain::RequestNewOutputSurface, 234 FROM_HERE, base::Bind(&ProxyMain::RequestNewOutputSurface,
243 impl().proxy_main_weak_ptr)); 235 impl().proxy_main_weak_ptr));
244 } 236 }
245 237
246 void ThreadedChannel::DidInitializeOutputSurface( 238 void ThreadedChannel::DidInitializeOutputSurface(bool success) {
247 bool success,
248 const RendererCapabilities& capabilities) {
249 DCHECK(IsImplThread()); 239 DCHECK(IsImplThread());
250 MainThreadTaskRunner()->PostTask( 240 MainThreadTaskRunner()->PostTask(
251 FROM_HERE, base::Bind(&ProxyMain::DidInitializeOutputSurface, 241 FROM_HERE, base::Bind(&ProxyMain::DidInitializeOutputSurface,
252 impl().proxy_main_weak_ptr, success, capabilities)); 242 impl().proxy_main_weak_ptr, success));
253 } 243 }
254 244
255 void ThreadedChannel::DidCompletePageScaleAnimation() { 245 void ThreadedChannel::DidCompletePageScaleAnimation() {
256 DCHECK(IsImplThread()); 246 DCHECK(IsImplThread());
257 MainThreadTaskRunner()->PostTask( 247 MainThreadTaskRunner()->PostTask(
258 FROM_HERE, base::Bind(&ProxyMain::DidCompletePageScaleAnimation, 248 FROM_HERE, base::Bind(&ProxyMain::DidCompletePageScaleAnimation,
259 impl().proxy_main_weak_ptr)); 249 impl().proxy_main_weak_ptr));
260 } 250 }
261 251
262 void ThreadedChannel::BeginMainFrame( 252 void ThreadedChannel::BeginMainFrame(
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 340
351 ThreadedChannel::MainThreadOnly::~MainThreadOnly() {} 341 ThreadedChannel::MainThreadOnly::~MainThreadOnly() {}
352 342
353 ThreadedChannel::CompositorThreadOnly::CompositorThreadOnly( 343 ThreadedChannel::CompositorThreadOnly::CompositorThreadOnly(
354 base::WeakPtr<ProxyMain> proxy_main_weak_ptr) 344 base::WeakPtr<ProxyMain> proxy_main_weak_ptr)
355 : proxy_main_weak_ptr(proxy_main_weak_ptr) {} 345 : proxy_main_weak_ptr(proxy_main_weak_ptr) {}
356 346
357 ThreadedChannel::CompositorThreadOnly::~CompositorThreadOnly() {} 347 ThreadedChannel::CompositorThreadOnly::~CompositorThreadOnly() {}
358 348
359 } // namespace cc 349 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/threaded_channel.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698