| 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_main.h" | 5 #include "cc/trees/proxy_main.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/trace_event/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 layer_tree_host_->ApplyScrollAndScale( | 179 layer_tree_host_->ApplyScrollAndScale( |
| 180 begin_main_frame_state->scroll_info.get()); | 180 begin_main_frame_state->scroll_info.get()); |
| 181 | 181 |
| 182 if (begin_main_frame_state->begin_frame_callbacks) { | 182 if (begin_main_frame_state->begin_frame_callbacks) { |
| 183 for (auto& callback : *begin_main_frame_state->begin_frame_callbacks) | 183 for (auto& callback : *begin_main_frame_state->begin_frame_callbacks) |
| 184 callback.Run(); | 184 callback.Run(); |
| 185 } | 185 } |
| 186 | 186 |
| 187 layer_tree_host_->WillBeginMainFrame(); | 187 layer_tree_host_->WillBeginMainFrame(); |
| 188 | 188 |
| 189 layer_tree_host_->ReportFixedRasterScaleUseCounters( |
| 190 begin_main_frame_state->has_fixed_raster_scale_blurry_content, |
| 191 begin_main_frame_state |
| 192 ->has_fixed_raster_scale_potential_performance_regression); |
| 189 layer_tree_host_->BeginMainFrame(begin_main_frame_state->begin_frame_args); | 193 layer_tree_host_->BeginMainFrame(begin_main_frame_state->begin_frame_args); |
| 190 layer_tree_host_->AnimateLayers( | 194 layer_tree_host_->AnimateLayers( |
| 191 begin_main_frame_state->begin_frame_args.frame_time); | 195 begin_main_frame_state->begin_frame_args.frame_time); |
| 192 | 196 |
| 193 // Recreate all UI resources if there were evicted UI resources when the impl | 197 // Recreate all UI resources if there were evicted UI resources when the impl |
| 194 // thread initiated the commit. | 198 // thread initiated the commit. |
| 195 if (begin_main_frame_state->evicted_ui_resources) | 199 if (begin_main_frame_state->evicted_ui_resources) |
| 196 layer_tree_host_->RecreateUIResources(); | 200 layer_tree_host_->RecreateUIResources(); |
| 197 | 201 |
| 198 layer_tree_host_->RequestMainFrameUpdate(); | 202 layer_tree_host_->RequestMainFrameUpdate(); |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 return false; | 461 return false; |
| 458 channel_main_->SetNeedsCommitOnImpl(); | 462 channel_main_->SetNeedsCommitOnImpl(); |
| 459 return true; | 463 return true; |
| 460 } | 464 } |
| 461 | 465 |
| 462 bool ProxyMain::IsMainThread() const { | 466 bool ProxyMain::IsMainThread() const { |
| 463 return task_runner_provider_->IsMainThread(); | 467 return task_runner_provider_->IsMainThread(); |
| 464 } | 468 } |
| 465 | 469 |
| 466 } // namespace cc | 470 } // namespace cc |
| OLD | NEW |