OLD | NEW |
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 #ifndef CC_SCHEDULER_BEGIN_FRAME_SOURCE_H_ | 5 #ifndef CC_SCHEDULER_BEGIN_FRAME_SOURCE_H_ |
6 #define CC_SCHEDULER_BEGIN_FRAME_SOURCE_H_ | 6 #define CC_SCHEDULER_BEGIN_FRAME_SOURCE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/debug/trace_event.h" | |
12 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/trace_event/trace_event.h" |
13 #include "cc/output/begin_frame_args.h" | 13 #include "cc/output/begin_frame_args.h" |
14 #include "cc/output/vsync_parameter_observer.h" | 14 #include "cc/output/vsync_parameter_observer.h" |
15 #include "cc/scheduler/delay_based_time_source.h" | 15 #include "cc/scheduler/delay_based_time_source.h" |
16 | 16 |
17 namespace cc { | 17 namespace cc { |
18 | 18 |
19 // (Pure) Interface for observing BeginFrame messages from BeginFrameSource | 19 // (Pure) Interface for observing BeginFrame messages from BeginFrameSource |
20 // objects. | 20 // objects. |
21 class CC_EXPORT BeginFrameObserver { | 21 class CC_EXPORT BeginFrameObserver { |
22 public: | 22 public: |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 | 276 |
277 base::TimeDelta minimum_interval_; | 277 base::TimeDelta minimum_interval_; |
278 | 278 |
279 BeginFrameSource* active_source_; | 279 BeginFrameSource* active_source_; |
280 std::set<BeginFrameSource*> source_list_; | 280 std::set<BeginFrameSource*> source_list_; |
281 }; | 281 }; |
282 | 282 |
283 } // namespace cc | 283 } // namespace cc |
284 | 284 |
285 #endif // CC_SCHEDULER_BEGIN_FRAME_SOURCE_H_ | 285 #endif // CC_SCHEDULER_BEGIN_FRAME_SOURCE_H_ |
OLD | NEW |