Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc

Issue 2476373002: [scheduler] Do not use audio signal in policy for renderer scheduler. (Closed)
Patch Set: added TODO Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "platform/scheduler/renderer/renderer_scheduler_impl.h" 5 #include "platform/scheduler/renderer/renderer_scheduler_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/debug/stack_trace.h" 8 #include "base/debug/stack_trace.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after
1027 } 1027 }
1028 1028
1029 if (MainThreadOnly().use_virtual_time) { 1029 if (MainThreadOnly().use_virtual_time) {
1030 new_policy.compositor_queue_policy.time_domain_type = 1030 new_policy.compositor_queue_policy.time_domain_type =
1031 TimeDomainType::VIRTUAL; 1031 TimeDomainType::VIRTUAL;
1032 new_policy.default_queue_policy.time_domain_type = TimeDomainType::VIRTUAL; 1032 new_policy.default_queue_policy.time_domain_type = TimeDomainType::VIRTUAL;
1033 new_policy.loading_queue_policy.time_domain_type = TimeDomainType::VIRTUAL; 1033 new_policy.loading_queue_policy.time_domain_type = TimeDomainType::VIRTUAL;
1034 new_policy.timer_queue_policy.time_domain_type = TimeDomainType::VIRTUAL; 1034 new_policy.timer_queue_policy.time_domain_type = TimeDomainType::VIRTUAL;
1035 } 1035 }
1036 1036
1037 new_policy.should_disable_throttling = 1037 // TODO(altimin): Taking audio state into account here is temporarily
1038 ShouldDisableThrottlingBecauseOfAudio(now) || 1038 // disabled because of failing webrtc bots. Investigate and fix ASAP.
1039 MainThreadOnly().use_virtual_time; 1039 new_policy.should_disable_throttling = MainThreadOnly().use_virtual_time;
1040 1040
1041 // Tracing is done before the early out check, because it's quite possible we 1041 // Tracing is done before the early out check, because it's quite possible we
1042 // will otherwise miss this information in traces. 1042 // will otherwise miss this information in traces.
1043 CreateTraceEventObjectSnapshotLocked(); 1043 CreateTraceEventObjectSnapshotLocked();
1044 TRACE_COUNTER1(TRACE_DISABLED_BY_DEFAULT("renderer.scheduler"), "use_case", 1044 TRACE_COUNTER1(TRACE_DISABLED_BY_DEFAULT("renderer.scheduler"), "use_case",
1045 use_case); 1045 use_case);
1046 TRACE_COUNTER1(TRACE_DISABLED_BY_DEFAULT("renderer.scheduler"), "rail_mode", 1046 TRACE_COUNTER1(TRACE_DISABLED_BY_DEFAULT("renderer.scheduler"), "rail_mode",
1047 new_policy.rail_mode); 1047 new_policy.rail_mode);
1048 TRACE_COUNTER1(TRACE_DISABLED_BY_DEFAULT("renderer.scheduler"), 1048 TRACE_COUNTER1(TRACE_DISABLED_BY_DEFAULT("renderer.scheduler"),
1049 "touchstart_expected_soon", 1049 "touchstart_expected_soon",
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
1690 case v8::PERFORMANCE_LOAD: 1690 case v8::PERFORMANCE_LOAD:
1691 return "load"; 1691 return "load";
1692 default: 1692 default:
1693 NOTREACHED(); 1693 NOTREACHED();
1694 return nullptr; 1694 return nullptr;
1695 } 1695 }
1696 } 1696 }
1697 1697
1698 } // namespace scheduler 1698 } // namespace scheduler
1699 } // namespace blink 1699 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698