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