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

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

Issue 2008283004: Revert of Added a debug info UI for Blimp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/remote_channel_impl.h ('k') | cc/trees/remote_channel_unittest.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/remote_channel_impl.h" 5 #include "cc/trees/remote_channel_impl.h"
6 6
7 #include "base/bind_helpers.h" 7 #include "base/bind_helpers.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "cc/animation/animation_events.h" 10 #include "cc/animation/animation_events.h"
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 MainThreadTaskRunner()->PostTask( 327 MainThreadTaskRunner()->PostTask(
328 FROM_HERE, base::Bind(&RemoteChannelImpl::DidCompleteSwapBuffersOnMain, 328 FROM_HERE, base::Bind(&RemoteChannelImpl::DidCompleteSwapBuffersOnMain,
329 impl().remote_channel_weak_ptr)); 329 impl().remote_channel_weak_ptr));
330 } 330 }
331 331
332 void RemoteChannelImpl::SetRendererCapabilitiesMainCopy( 332 void RemoteChannelImpl::SetRendererCapabilitiesMainCopy(
333 const RendererCapabilities& capabilities) {} 333 const RendererCapabilities& capabilities) {}
334 334
335 void RemoteChannelImpl::BeginMainFrameNotExpectedSoon() {} 335 void RemoteChannelImpl::BeginMainFrameNotExpectedSoon() {}
336 336
337 void RemoteChannelImpl::DidCommitAndDrawFrame() { 337 void RemoteChannelImpl::DidCommitAndDrawFrame() {}
338 DCHECK(task_runner_provider_->IsImplThread());
339 MainThreadTaskRunner()->PostTask(
340 FROM_HERE, base::Bind(&RemoteChannelImpl::DidCommitAndDrawFrameOnMain,
341 impl().remote_channel_weak_ptr));
342 }
343 338
344 void RemoteChannelImpl::SetAnimationEvents( 339 void RemoteChannelImpl::SetAnimationEvents(
345 std::unique_ptr<AnimationEvents> queue) {} 340 std::unique_ptr<AnimationEvents> queue) {}
346 341
347 void RemoteChannelImpl::DidLoseOutputSurface() { 342 void RemoteChannelImpl::DidLoseOutputSurface() {
348 DCHECK(task_runner_provider_->IsImplThread()); 343 DCHECK(task_runner_provider_->IsImplThread());
349 344
350 MainThreadTaskRunner()->PostTask( 345 MainThreadTaskRunner()->PostTask(
351 FROM_HERE, base::Bind(&RemoteChannelImpl::DidLoseOutputSurfaceOnMain, 346 FROM_HERE, base::Bind(&RemoteChannelImpl::DidLoseOutputSurfaceOnMain,
352 impl().remote_channel_weak_ptr)); 347 impl().remote_channel_weak_ptr));
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 FROM_HERE, 392 FROM_HERE,
398 base::Bind(&RemoteChannelImpl::SendMessageProtoOnMain, 393 base::Bind(&RemoteChannelImpl::SendMessageProtoOnMain,
399 impl().remote_channel_weak_ptr, base::Passed(&proto))); 394 impl().remote_channel_weak_ptr, base::Passed(&proto)));
400 } 395 }
401 396
402 void RemoteChannelImpl::DidCompleteSwapBuffersOnMain() { 397 void RemoteChannelImpl::DidCompleteSwapBuffersOnMain() {
403 DCHECK(task_runner_provider_->IsMainThread()); 398 DCHECK(task_runner_provider_->IsMainThread());
404 main().layer_tree_host->DidCompleteSwapBuffers(); 399 main().layer_tree_host->DidCompleteSwapBuffers();
405 } 400 }
406 401
407 void RemoteChannelImpl::DidCommitAndDrawFrameOnMain() {
408 DCHECK(task_runner_provider_->IsMainThread());
409 main().layer_tree_host->DidCommitAndDrawFrame();
410 }
411
412 void RemoteChannelImpl::DidLoseOutputSurfaceOnMain() { 402 void RemoteChannelImpl::DidLoseOutputSurfaceOnMain() {
413 DCHECK(task_runner_provider_->IsMainThread()); 403 DCHECK(task_runner_provider_->IsMainThread());
414 404
415 main().layer_tree_host->DidLoseOutputSurface(); 405 main().layer_tree_host->DidLoseOutputSurface();
416 } 406 }
417 407
418 void RemoteChannelImpl::RequestNewOutputSurfaceOnMain() { 408 void RemoteChannelImpl::RequestNewOutputSurfaceOnMain() {
419 DCHECK(task_runner_provider_->IsMainThread()); 409 DCHECK(task_runner_provider_->IsMainThread());
420 410
421 main().layer_tree_host->RequestNewOutputSurface(); 411 main().layer_tree_host->RequestNewOutputSurface();
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 529
540 RemoteChannelImpl::CompositorThreadOnly::CompositorThreadOnly( 530 RemoteChannelImpl::CompositorThreadOnly::CompositorThreadOnly(
541 base::WeakPtr<RemoteChannelImpl> remote_channel_weak_ptr) 531 base::WeakPtr<RemoteChannelImpl> remote_channel_weak_ptr)
542 : proxy_impl(nullptr), 532 : proxy_impl(nullptr),
543 proxy_impl_weak_factory(nullptr), 533 proxy_impl_weak_factory(nullptr),
544 remote_channel_weak_ptr(remote_channel_weak_ptr) {} 534 remote_channel_weak_ptr(remote_channel_weak_ptr) {}
545 535
546 RemoteChannelImpl::CompositorThreadOnly::~CompositorThreadOnly() {} 536 RemoteChannelImpl::CompositorThreadOnly::~CompositorThreadOnly() {}
547 537
548 } // namespace cc 538 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/remote_channel_impl.h ('k') | cc/trees/remote_channel_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698