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

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

Issue 2693323003: [scheduler] Disable background thread load tracker by default. (Closed)
Patch Set: Created 3 years, 10 months 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 | « third_party/WebKit/Source/platform/scheduler/base/thread_load_tracker_unittest.cc ('k') | 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 timer_tasks_seem_expensive(false), 220 timer_tasks_seem_expensive(false),
221 touchstart_expected_soon(false), 221 touchstart_expected_soon(false),
222 have_seen_a_begin_main_frame(false), 222 have_seen_a_begin_main_frame(false),
223 have_reported_blocking_intervention_in_current_policy(false), 223 have_reported_blocking_intervention_in_current_policy(false),
224 have_reported_blocking_intervention_since_navigation(false), 224 have_reported_blocking_intervention_since_navigation(false),
225 has_visible_render_widget_with_touch_handler(false), 225 has_visible_render_widget_with_touch_handler(false),
226 begin_frame_not_expected_soon(false), 226 begin_frame_not_expected_soon(false),
227 in_idle_period_for_testing(false), 227 in_idle_period_for_testing(false),
228 use_virtual_time(false), 228 use_virtual_time(false),
229 is_audio_playing(false), 229 is_audio_playing(false),
230 rail_mode_observer(nullptr) {} 230 rail_mode_observer(nullptr) {
231 foreground_main_thread_load_tracker.Resume(now);
232 }
231 233
232 RendererSchedulerImpl::MainThreadOnly::~MainThreadOnly() {} 234 RendererSchedulerImpl::MainThreadOnly::~MainThreadOnly() {}
233 235
234 RendererSchedulerImpl::AnyThread::AnyThread() 236 RendererSchedulerImpl::AnyThread::AnyThread()
235 : awaiting_touch_start_response(false), 237 : awaiting_touch_start_response(false),
236 in_idle_period(false), 238 in_idle_period(false),
237 begin_main_frame_on_critical_path(false), 239 begin_main_frame_on_critical_path(false),
238 last_gesture_was_compositor_driven(false), 240 last_gesture_was_compositor_driven(false),
239 default_gesture_prevented(true), 241 default_gesture_prevented(true),
240 have_seen_touchstart(false), 242 have_seen_touchstart(false),
(...skipping 1652 matching lines...) Expand 10 before | Expand all | Expand 10 after
1893 case TimeDomainType::VIRTUAL: 1895 case TimeDomainType::VIRTUAL:
1894 return "virtual"; 1896 return "virtual";
1895 default: 1897 default:
1896 NOTREACHED(); 1898 NOTREACHED();
1897 return nullptr; 1899 return nullptr;
1898 } 1900 }
1899 } 1901 }
1900 1902
1901 } // namespace scheduler 1903 } // namespace scheduler
1902 } // namespace blink 1904 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/scheduler/base/thread_load_tracker_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698