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); | |
193 layer_tree_host_->BeginMainFrame(begin_main_frame_state->begin_frame_args); | 189 layer_tree_host_->BeginMainFrame(begin_main_frame_state->begin_frame_args); |
194 layer_tree_host_->AnimateLayers( | 190 layer_tree_host_->AnimateLayers( |
195 begin_main_frame_state->begin_frame_args.frame_time); | 191 begin_main_frame_state->begin_frame_args.frame_time); |
196 | 192 |
197 // Recreate all UI resources if there were evicted UI resources when the impl | 193 // Recreate all UI resources if there were evicted UI resources when the impl |
198 // thread initiated the commit. | 194 // thread initiated the commit. |
199 if (begin_main_frame_state->evicted_ui_resources) | 195 if (begin_main_frame_state->evicted_ui_resources) |
200 layer_tree_host_->RecreateUIResources(); | 196 layer_tree_host_->RecreateUIResources(); |
201 | 197 |
202 layer_tree_host_->RequestMainFrameUpdate(); | 198 layer_tree_host_->RequestMainFrameUpdate(); |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 return false; | 454 return false; |
459 channel_main_->SetNeedsCommitOnImpl(); | 455 channel_main_->SetNeedsCommitOnImpl(); |
460 return true; | 456 return true; |
461 } | 457 } |
462 | 458 |
463 bool ProxyMain::IsMainThread() const { | 459 bool ProxyMain::IsMainThread() const { |
464 return task_runner_provider_->IsMainThread(); | 460 return task_runner_provider_->IsMainThread(); |
465 } | 461 } |
466 | 462 |
467 } // namespace cc | 463 } // namespace cc |
OLD | NEW |