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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 begin_main_frame_state->begin_frame_id = begin_frame_id; | 497 begin_main_frame_state->begin_frame_id = begin_frame_id; |
498 begin_main_frame_state->begin_frame_args = args; | 498 begin_main_frame_state->begin_frame_args = args; |
499 begin_main_frame_state->begin_frame_callbacks = | 499 begin_main_frame_state->begin_frame_callbacks = |
500 layer_tree_host_impl_->ProcessLayerTreeMutations(); | 500 layer_tree_host_impl_->ProcessLayerTreeMutations(); |
501 begin_main_frame_state->scroll_info = | 501 begin_main_frame_state->scroll_info = |
502 layer_tree_host_impl_->ProcessScrollDeltas(); | 502 layer_tree_host_impl_->ProcessScrollDeltas(); |
503 begin_main_frame_state->memory_allocation_limit_bytes = | 503 begin_main_frame_state->memory_allocation_limit_bytes = |
504 layer_tree_host_impl_->memory_allocation_limit_bytes(); | 504 layer_tree_host_impl_->memory_allocation_limit_bytes(); |
505 begin_main_frame_state->evicted_ui_resources = | 505 begin_main_frame_state->evicted_ui_resources = |
506 layer_tree_host_impl_->EvictedUIResourcesExist(); | 506 layer_tree_host_impl_->EvictedUIResourcesExist(); |
| 507 begin_main_frame_state->has_fixed_raster_scale_blurry_content = |
| 508 layer_tree_host_impl_->has_fixed_raster_scale_blurry_content(); |
| 509 begin_main_frame_state |
| 510 ->has_fixed_raster_scale_potential_performance_regression = |
| 511 layer_tree_host_impl_ |
| 512 ->HasFixedRasterScalePotentialPerformanceRegression(); |
507 channel_impl_->BeginMainFrame(std::move(begin_main_frame_state)); | 513 channel_impl_->BeginMainFrame(std::move(begin_main_frame_state)); |
508 devtools_instrumentation::DidRequestMainThreadFrame(layer_tree_host_id_); | 514 devtools_instrumentation::DidRequestMainThreadFrame(layer_tree_host_id_); |
509 } | 515 } |
510 | 516 |
511 DrawResult ProxyImpl::ScheduledActionDrawAndSwapIfPossible() { | 517 DrawResult ProxyImpl::ScheduledActionDrawAndSwapIfPossible() { |
512 TRACE_EVENT0("cc", "ProxyImpl::ScheduledActionDrawAndSwap"); | 518 TRACE_EVENT0("cc", "ProxyImpl::ScheduledActionDrawAndSwap"); |
513 DCHECK(IsImplThread()); | 519 DCHECK(IsImplThread()); |
514 | 520 |
515 // SchedulerStateMachine::DidDrawIfPossibleCompleted isn't set up to | 521 // SchedulerStateMachine::DidDrawIfPossibleCompleted isn't set up to |
516 // handle DRAW_ABORTED_CANT_DRAW. Moreover, the scheduler should | 522 // handle DRAW_ABORTED_CANT_DRAW. Moreover, the scheduler should |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 bool ProxyImpl::IsMainThreadBlocked() const { | 668 bool ProxyImpl::IsMainThreadBlocked() const { |
663 return task_runner_provider_->IsMainThreadBlocked(); | 669 return task_runner_provider_->IsMainThreadBlocked(); |
664 } | 670 } |
665 | 671 |
666 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() { | 672 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() { |
667 DCHECK(IsMainThreadBlocked() && commit_completion_event_); | 673 DCHECK(IsMainThreadBlocked() && commit_completion_event_); |
668 return main_thread_blocked_commit_vars_unsafe_; | 674 return main_thread_blocked_commit_vars_unsafe_; |
669 } | 675 } |
670 | 676 |
671 } // namespace cc | 677 } // namespace cc |
OLD | NEW |