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

Side by Side Diff: components/scheduler/renderer/renderer_scheduler_impl.cc

Issue 1374653003: scheduler: Add a base directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed gn clobber build. Created 5 years, 2 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
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 "components/scheduler/renderer/renderer_scheduler_impl.h" 5 #include "components/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/trace_event/trace_event.h" 9 #include "base/trace_event/trace_event.h"
10 #include "base/trace_event/trace_event_argument.h" 10 #include "base/trace_event/trace_event_argument.h"
11 #include "cc/output/begin_frame_args.h" 11 #include "cc/output/begin_frame_args.h"
12 #include "components/scheduler/base/task_queue_impl.h"
13 #include "components/scheduler/base/task_queue_selector.h"
12 #include "components/scheduler/child/scheduler_task_runner_delegate.h" 14 #include "components/scheduler/child/scheduler_task_runner_delegate.h"
13 #include "components/scheduler/child/task_queue_impl.h"
14 #include "components/scheduler/child/task_queue_selector.h"
15 15
16 namespace scheduler { 16 namespace scheduler {
17 namespace { 17 namespace {
18 const int kLoadingTaskEstimationSampleCount = 200; 18 const int kLoadingTaskEstimationSampleCount = 200;
19 const double kLoadingTaskEstimationPercentile = 90; 19 const double kLoadingTaskEstimationPercentile = 90;
20 const int kTimerTaskEstimationSampleCount = 200; 20 const int kTimerTaskEstimationSampleCount = 200;
21 const double kTimerTaskEstimationPercentile = 90; 21 const double kTimerTaskEstimationPercentile = 90;
22 const int kShortIdlePeriodDurationSampleCount = 10; 22 const int kShortIdlePeriodDurationSampleCount = 10;
23 const double kShortIdlePeriodDurationPercentile = 20; 23 const double kShortIdlePeriodDurationPercentile = 20;
24 } 24 }
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 MainThreadOnly().short_idle_period_duration.Clear(); 921 MainThreadOnly().short_idle_period_duration.Clear();
922 // Make sure that we don't initially assume there is no idle time. 922 // Make sure that we don't initially assume there is no idle time.
923 MainThreadOnly().short_idle_period_duration.InsertSample( 923 MainThreadOnly().short_idle_period_duration.InsertSample(
924 cc::BeginFrameArgs::DefaultInterval()); 924 cc::BeginFrameArgs::DefaultInterval());
925 AnyThread().user_model.Reset(); 925 AnyThread().user_model.Reset();
926 MainThreadOnly().have_seen_a_begin_main_frame = false; 926 MainThreadOnly().have_seen_a_begin_main_frame = false;
927 UpdatePolicyLocked(UpdateType::MAY_EARLY_OUT_IF_POLICY_UNCHANGED); 927 UpdatePolicyLocked(UpdateType::MAY_EARLY_OUT_IF_POLICY_UNCHANGED);
928 } 928 }
929 929
930 } // namespace scheduler 930 } // namespace scheduler
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698