OLD | NEW |
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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 DCHECK(task_runner_provider_->IsImplThread()); | 364 DCHECK(task_runner_provider_->IsImplThread()); |
365 | 365 |
366 MainThreadTaskRunner()->PostTask( | 366 MainThreadTaskRunner()->PostTask( |
367 FROM_HERE, | 367 FROM_HERE, |
368 base::Bind(&RemoteChannelImpl::DidInitializeOutputSurfaceOnMain, | 368 base::Bind(&RemoteChannelImpl::DidInitializeOutputSurfaceOnMain, |
369 impl().remote_channel_weak_ptr, success, capabilities)); | 369 impl().remote_channel_weak_ptr, success, capabilities)); |
370 } | 370 } |
371 | 371 |
372 void RemoteChannelImpl::DidCompletePageScaleAnimation() {} | 372 void RemoteChannelImpl::DidCompletePageScaleAnimation() {} |
373 | 373 |
374 void RemoteChannelImpl::PostFrameTimingEventsOnMain( | |
375 std::unique_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, | |
376 std::unique_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) { | |
377 } | |
378 | |
379 void RemoteChannelImpl::BeginMainFrame( | 374 void RemoteChannelImpl::BeginMainFrame( |
380 std::unique_ptr<BeginMainFrameAndCommitState> begin_main_frame_state) { | 375 std::unique_ptr<BeginMainFrameAndCommitState> begin_main_frame_state) { |
381 std::unique_ptr<proto::CompositorMessage> proto; | 376 std::unique_ptr<proto::CompositorMessage> proto; |
382 proto.reset(new proto::CompositorMessage); | 377 proto.reset(new proto::CompositorMessage); |
383 proto::CompositorMessageToMain* to_main_proto = proto->mutable_to_main(); | 378 proto::CompositorMessageToMain* to_main_proto = proto->mutable_to_main(); |
384 | 379 |
385 to_main_proto->set_message_type( | 380 to_main_proto->set_message_type( |
386 proto::CompositorMessageToMain::BEGIN_MAIN_FRAME); | 381 proto::CompositorMessageToMain::BEGIN_MAIN_FRAME); |
387 proto::BeginMainFrame* begin_main_frame_message = | 382 proto::BeginMainFrame* begin_main_frame_message = |
388 to_main_proto->mutable_begin_main_frame_message(); | 383 to_main_proto->mutable_begin_main_frame_message(); |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 | 527 |
533 RemoteChannelImpl::CompositorThreadOnly::CompositorThreadOnly( | 528 RemoteChannelImpl::CompositorThreadOnly::CompositorThreadOnly( |
534 base::WeakPtr<RemoteChannelImpl> remote_channel_weak_ptr) | 529 base::WeakPtr<RemoteChannelImpl> remote_channel_weak_ptr) |
535 : proxy_impl(nullptr), | 530 : proxy_impl(nullptr), |
536 proxy_impl_weak_factory(nullptr), | 531 proxy_impl_weak_factory(nullptr), |
537 remote_channel_weak_ptr(remote_channel_weak_ptr) {} | 532 remote_channel_weak_ptr(remote_channel_weak_ptr) {} |
538 | 533 |
539 RemoteChannelImpl::CompositorThreadOnly::~CompositorThreadOnly() {} | 534 RemoteChannelImpl::CompositorThreadOnly::~CompositorThreadOnly() {} |
540 | 535 |
541 } // namespace cc | 536 } // namespace cc |
OLD | NEW |