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 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 begin_main_frame_state->begin_frame_id = begin_frame_id; | 508 begin_main_frame_state->begin_frame_id = begin_frame_id; |
509 begin_main_frame_state->begin_frame_args = args; | 509 begin_main_frame_state->begin_frame_args = args; |
510 begin_main_frame_state->begin_frame_callbacks = | 510 begin_main_frame_state->begin_frame_callbacks = |
511 layer_tree_host_impl_->ProcessLayerTreeMutations(); | 511 layer_tree_host_impl_->ProcessLayerTreeMutations(); |
512 begin_main_frame_state->scroll_info = | 512 begin_main_frame_state->scroll_info = |
513 layer_tree_host_impl_->ProcessScrollDeltas(); | 513 layer_tree_host_impl_->ProcessScrollDeltas(); |
514 begin_main_frame_state->memory_allocation_limit_bytes = | 514 begin_main_frame_state->memory_allocation_limit_bytes = |
515 layer_tree_host_impl_->memory_allocation_limit_bytes(); | 515 layer_tree_host_impl_->memory_allocation_limit_bytes(); |
516 begin_main_frame_state->evicted_ui_resources = | 516 begin_main_frame_state->evicted_ui_resources = |
517 layer_tree_host_impl_->EvictedUIResourcesExist(); | 517 layer_tree_host_impl_->EvictedUIResourcesExist(); |
518 begin_main_frame_state->has_fixed_raster_scale_blurry_content = | |
519 layer_tree_host_impl_->has_fixed_raster_scale_blurry_content(); | |
520 begin_main_frame_state | |
521 ->has_fixed_raster_scale_potential_performance_regression = | |
522 layer_tree_host_impl_ | |
523 ->HasFixedRasterScalePotentialPerformanceRegression(); | |
524 channel_impl_->BeginMainFrame(std::move(begin_main_frame_state)); | 518 channel_impl_->BeginMainFrame(std::move(begin_main_frame_state)); |
525 devtools_instrumentation::DidRequestMainThreadFrame(layer_tree_host_id_); | 519 devtools_instrumentation::DidRequestMainThreadFrame(layer_tree_host_id_); |
526 } | 520 } |
527 | 521 |
528 DrawResult ProxyImpl::ScheduledActionDrawAndSwapIfPossible() { | 522 DrawResult ProxyImpl::ScheduledActionDrawAndSwapIfPossible() { |
529 TRACE_EVENT0("cc", "ProxyImpl::ScheduledActionDrawAndSwap"); | 523 TRACE_EVENT0("cc", "ProxyImpl::ScheduledActionDrawAndSwap"); |
530 DCHECK(IsImplThread()); | 524 DCHECK(IsImplThread()); |
531 | 525 |
532 // SchedulerStateMachine::DidDrawIfPossibleCompleted isn't set up to | 526 // SchedulerStateMachine::DidDrawIfPossibleCompleted isn't set up to |
533 // handle DRAW_ABORTED_CANT_DRAW. Moreover, the scheduler should | 527 // handle DRAW_ABORTED_CANT_DRAW. Moreover, the scheduler should |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 bool ProxyImpl::IsMainThreadBlocked() const { | 675 bool ProxyImpl::IsMainThreadBlocked() const { |
682 return task_runner_provider_->IsMainThreadBlocked(); | 676 return task_runner_provider_->IsMainThreadBlocked(); |
683 } | 677 } |
684 | 678 |
685 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() { | 679 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() { |
686 DCHECK(IsMainThreadBlocked() && commit_completion_event_); | 680 DCHECK(IsMainThreadBlocked() && commit_completion_event_); |
687 return main_thread_blocked_commit_vars_unsafe_; | 681 return main_thread_blocked_commit_vars_unsafe_; |
688 } | 682 } |
689 | 683 |
690 } // namespace cc | 684 } // namespace cc |
OLD | NEW |