OLD | NEW |
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/proxy_impl.h" | 5 #include "cc/trees/proxy_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 begin_main_frame_state->begin_frame_id = begin_frame_id; | 512 begin_main_frame_state->begin_frame_id = begin_frame_id; |
513 begin_main_frame_state->begin_frame_args = args; | 513 begin_main_frame_state->begin_frame_args = args; |
514 begin_main_frame_state->begin_frame_callbacks = | 514 begin_main_frame_state->begin_frame_callbacks = |
515 layer_tree_host_impl_->ProcessLayerTreeMutations(); | 515 layer_tree_host_impl_->ProcessLayerTreeMutations(); |
516 begin_main_frame_state->scroll_info = | 516 begin_main_frame_state->scroll_info = |
517 layer_tree_host_impl_->ProcessScrollDeltas(); | 517 layer_tree_host_impl_->ProcessScrollDeltas(); |
518 begin_main_frame_state->memory_allocation_limit_bytes = | 518 begin_main_frame_state->memory_allocation_limit_bytes = |
519 layer_tree_host_impl_->memory_allocation_limit_bytes(); | 519 layer_tree_host_impl_->memory_allocation_limit_bytes(); |
520 begin_main_frame_state->evicted_ui_resources = | 520 begin_main_frame_state->evicted_ui_resources = |
521 layer_tree_host_impl_->EvictedUIResourcesExist(); | 521 layer_tree_host_impl_->EvictedUIResourcesExist(); |
522 begin_main_frame_state->has_fixed_raster_scale_blurry_content = | |
523 layer_tree_host_impl_->has_fixed_raster_scale_blurry_content(); | |
524 begin_main_frame_state | |
525 ->has_fixed_raster_scale_potential_performance_regression = | |
526 layer_tree_host_impl_ | |
527 ->HasFixedRasterScalePotentialPerformanceRegression(); | |
528 channel_impl_->BeginMainFrame(std::move(begin_main_frame_state)); | 522 channel_impl_->BeginMainFrame(std::move(begin_main_frame_state)); |
529 devtools_instrumentation::DidRequestMainThreadFrame(layer_tree_host_id_); | 523 devtools_instrumentation::DidRequestMainThreadFrame(layer_tree_host_id_); |
530 } | 524 } |
531 | 525 |
532 DrawResult ProxyImpl::ScheduledActionDrawAndSwapIfPossible() { | 526 DrawResult ProxyImpl::ScheduledActionDrawAndSwapIfPossible() { |
533 TRACE_EVENT0("cc", "ProxyImpl::ScheduledActionDrawAndSwap"); | 527 TRACE_EVENT0("cc", "ProxyImpl::ScheduledActionDrawAndSwap"); |
534 DCHECK(IsImplThread()); | 528 DCHECK(IsImplThread()); |
535 | 529 |
536 // SchedulerStateMachine::DidDrawIfPossibleCompleted isn't set up to | 530 // SchedulerStateMachine::DidDrawIfPossibleCompleted isn't set up to |
537 // handle DRAW_ABORTED_CANT_DRAW. Moreover, the scheduler should | 531 // handle DRAW_ABORTED_CANT_DRAW. Moreover, the scheduler should |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
685 bool ProxyImpl::IsMainThreadBlocked() const { | 679 bool ProxyImpl::IsMainThreadBlocked() const { |
686 return task_runner_provider_->IsMainThreadBlocked(); | 680 return task_runner_provider_->IsMainThreadBlocked(); |
687 } | 681 } |
688 | 682 |
689 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() { | 683 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() { |
690 DCHECK(IsMainThreadBlocked() && commit_completion_event_); | 684 DCHECK(IsMainThreadBlocked() && commit_completion_event_); |
691 return main_thread_blocked_commit_vars_unsafe_; | 685 return main_thread_blocked_commit_vars_unsafe_; |
692 } | 686 } |
693 | 687 |
694 } // namespace cc | 688 } // namespace cc |
OLD | NEW |