| 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 <stddef.h> |
| 9 #include <stdint.h> |
| 10 |
| 8 #include <set> | 11 #include <set> |
| 9 #include <string> | 12 #include <string> |
| 10 | 13 |
| 11 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/macros.h" |
| 12 #include "base/trace_event/trace_event.h" | 16 #include "base/trace_event/trace_event.h" |
| 13 #include "cc/output/begin_frame_args.h" | 17 #include "cc/output/begin_frame_args.h" |
| 14 #include "cc/scheduler/delay_based_time_source.h" | 18 #include "cc/scheduler/delay_based_time_source.h" |
| 15 | 19 |
| 16 #ifdef NDEBUG | 20 #ifdef NDEBUG |
| 17 #define DEBUG_FRAMES(...) | 21 #define DEBUG_FRAMES(...) |
| 18 #else | 22 #else |
| 19 #define DEBUG_FRAMES(name, arg1_name, arg1_val, arg2_name, arg2_val) \ | 23 #define DEBUG_FRAMES(name, arg1_name, arg1_val, arg2_name, arg2_val) \ |
| 20 TRACE_EVENT2(TRACE_DISABLED_BY_DEFAULT("cc.debug.scheduler.frames"), name, \ | 24 TRACE_EVENT2(TRACE_DISABLED_BY_DEFAULT("cc.debug.scheduler.frames"), name, \ |
| 21 arg1_name, arg1_val, arg2_name, arg2_val); | 25 arg1_name, arg1_val, arg2_name, arg2_val); |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 BeginFrameSource* active_source_; | 295 BeginFrameSource* active_source_; |
| 292 std::set<BeginFrameSource*> source_list_; | 296 std::set<BeginFrameSource*> source_list_; |
| 293 | 297 |
| 294 private: | 298 private: |
| 295 DISALLOW_COPY_AND_ASSIGN(BeginFrameSourceMultiplexer); | 299 DISALLOW_COPY_AND_ASSIGN(BeginFrameSourceMultiplexer); |
| 296 }; | 300 }; |
| 297 | 301 |
| 298 } // namespace cc | 302 } // namespace cc |
| 299 | 303 |
| 300 #endif // CC_SCHEDULER_BEGIN_FRAME_SOURCE_H_ | 304 #endif // CC_SCHEDULER_BEGIN_FRAME_SOURCE_H_ |
| OLD | NEW |