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

Side by Side Diff: third_party/WebKit/Source/platform/scheduler/renderer/idle_time_estimator.h

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (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
OLDNEW
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 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_IDLE_TIME_ESTIMATO R_H_ 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_IDLE_TIME_ESTIMATO R_H_
6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_IDLE_TIME_ESTIMATO R_H_ 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_IDLE_TIME_ESTIMATO R_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/time/tick_clock.h" 10 #include "base/time/tick_clock.h"
11 #include "cc/base/rolling_time_delta_history.h" 11 #include "cc/base/rolling_time_delta_history.h"
12 #include "public/platform/WebCommon.h"
12 #include "public/platform/scheduler/base/task_queue.h" 13 #include "public/platform/scheduler/base/task_queue.h"
13 #include "public/platform/WebCommon.h"
14 14
15 namespace blink { 15 namespace blink {
16 namespace scheduler { 16 namespace scheduler {
17 17
18 // Estimates how much idle time there is available. Ignores nested tasks. 18 // Estimates how much idle time there is available. Ignores nested tasks.
19 class BLINK_PLATFORM_EXPORT IdleTimeEstimator 19 class BLINK_PLATFORM_EXPORT IdleTimeEstimator
20 : public base::MessageLoop::TaskObserver { 20 : public base::MessageLoop::TaskObserver {
21 public: 21 public:
22 IdleTimeEstimator(const scoped_refptr<TaskQueue>& compositor_task_runner, 22 IdleTimeEstimator(const scoped_refptr<TaskQueue>& compositor_task_runner,
23 base::TickClock* time_source, 23 base::TickClock* time_source,
(...skipping 27 matching lines...) Expand all
51 int nesting_level_; 51 int nesting_level_;
52 bool did_commit_; 52 bool did_commit_;
53 53
54 DISALLOW_COPY_AND_ASSIGN(IdleTimeEstimator); 54 DISALLOW_COPY_AND_ASSIGN(IdleTimeEstimator);
55 }; 55 };
56 56
57 } // namespace scheduler 57 } // namespace scheduler
58 } // namespace blink 58 } // namespace blink
59 59
60 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_IDLE_TIME_ESTIM ATOR_H_ 60 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_IDLE_TIME_ESTIM ATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698