OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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/single_thread_proxy.h" | 5 #include "cc/trees/single_thread_proxy.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
9 #include "base/profiler/scoped_tracker.h" | 9 #include "base/profiler/scoped_tracker.h" |
10 #include "base/trace_event/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 DCHECK(task_runner_provider_->IsMainThread()); | 211 DCHECK(task_runner_provider_->IsMainThread()); |
212 | 212 |
213 // TODO(robliao): Remove ScopedTracker below once https://crbug.com/461509 is | 213 // TODO(robliao): Remove ScopedTracker below once https://crbug.com/461509 is |
214 // fixed. | 214 // fixed. |
215 tracked_objects::ScopedTracker tracking_profile1( | 215 tracked_objects::ScopedTracker tracking_profile1( |
216 FROM_HERE_WITH_EXPLICIT_FUNCTION("461509 SingleThreadProxy::DoCommit1")); | 216 FROM_HERE_WITH_EXPLICIT_FUNCTION("461509 SingleThreadProxy::DoCommit1")); |
217 layer_tree_host_->WillCommit(); | 217 layer_tree_host_->WillCommit(); |
218 devtools_instrumentation::ScopedCommitTrace commit_task( | 218 devtools_instrumentation::ScopedCommitTrace commit_task( |
219 layer_tree_host_->id()); | 219 layer_tree_host_->id()); |
220 | 220 |
| 221 layer_tree_host_->ReportFixedRasterScaleUseCounters( |
| 222 layer_tree_host_impl_->has_fixed_raster_scale_blurry_content(), |
| 223 layer_tree_host_impl_ |
| 224 ->HasFixedRasterScalePotentialPerformanceRegression()); |
| 225 |
221 // Commit immediately. | 226 // Commit immediately. |
222 { | 227 { |
223 // TODO(robliao): Remove ScopedTracker below once https://crbug.com/461509 | 228 // TODO(robliao): Remove ScopedTracker below once https://crbug.com/461509 |
224 // is fixed. | 229 // is fixed. |
225 tracked_objects::ScopedTracker tracking_profile2( | 230 tracked_objects::ScopedTracker tracking_profile2( |
226 FROM_HERE_WITH_EXPLICIT_FUNCTION( | 231 FROM_HERE_WITH_EXPLICIT_FUNCTION( |
227 "461509 SingleThreadProxy::DoCommit2")); | 232 "461509 SingleThreadProxy::DoCommit2")); |
228 DebugScopedSetMainThreadBlocked main_thread_blocked(task_runner_provider_); | 233 DebugScopedSetMainThreadBlocked main_thread_blocked(task_runner_provider_); |
229 DebugScopedSetImplThread impl(task_runner_provider_); | 234 DebugScopedSetImplThread impl(task_runner_provider_); |
230 | 235 |
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
882 void SingleThreadProxy::DidFinishImplFrame() { | 887 void SingleThreadProxy::DidFinishImplFrame() { |
883 layer_tree_host_impl_->DidFinishImplFrame(); | 888 layer_tree_host_impl_->DidFinishImplFrame(); |
884 #if DCHECK_IS_ON() | 889 #if DCHECK_IS_ON() |
885 DCHECK(inside_impl_frame_) | 890 DCHECK(inside_impl_frame_) |
886 << "DidFinishImplFrame called while not inside an impl frame!"; | 891 << "DidFinishImplFrame called while not inside an impl frame!"; |
887 inside_impl_frame_ = false; | 892 inside_impl_frame_ = false; |
888 #endif | 893 #endif |
889 } | 894 } |
890 | 895 |
891 } // namespace cc | 896 } // namespace cc |
OLD | NEW |