| OLD | NEW |
| 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 CC_SURFACES_DISPLAY_SCHEDULER_H_ | 5 #ifndef CC_SURFACES_DISPLAY_SCHEDULER_H_ |
| 6 #define CC_SURFACES_DISPLAY_SCHEDULER_H_ | 6 #define CC_SURFACES_DISPLAY_SCHEDULER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/cancelable_callback.h" | 10 #include "base/cancelable_callback.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
| 14 #include "cc/output/renderer_settings.h" | 14 #include "cc/output/renderer_settings.h" |
| 15 #include "cc/scheduler/begin_frame_source.h" | 15 #include "cc/scheduler/begin_frame_source.h" |
| 16 #include "cc/surfaces/surface_id.h" | 16 #include "cc/surfaces/surface_id.h" |
| 17 #include "cc/surfaces/surfaces_export.h" | 17 #include "cc/surfaces/surfaces_export.h" |
| 18 | 18 |
| 19 namespace cc { | 19 namespace cc { |
| 20 | 20 |
| 21 class OutputSurface; | |
| 22 class BeginFrameSource; | 21 class BeginFrameSource; |
| 23 | 22 |
| 24 class CC_SURFACES_EXPORT DisplaySchedulerClient { | 23 class CC_SURFACES_EXPORT DisplaySchedulerClient { |
| 25 public: | 24 public: |
| 26 virtual ~DisplaySchedulerClient() {} | 25 virtual ~DisplaySchedulerClient() {} |
| 27 | 26 |
| 28 virtual bool DrawAndSwap() = 0; | 27 virtual bool DrawAndSwap() = 0; |
| 29 }; | 28 }; |
| 30 | 29 |
| 31 class CC_SURFACES_EXPORT DisplayScheduler : public BeginFrameObserverBase { | 30 class CC_SURFACES_EXPORT DisplayScheduler : public BeginFrameObserverBase { |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 98 |
| 100 base::WeakPtrFactory<DisplayScheduler> weak_ptr_factory_; | 99 base::WeakPtrFactory<DisplayScheduler> weak_ptr_factory_; |
| 101 | 100 |
| 102 private: | 101 private: |
| 103 DISALLOW_COPY_AND_ASSIGN(DisplayScheduler); | 102 DISALLOW_COPY_AND_ASSIGN(DisplayScheduler); |
| 104 }; | 103 }; |
| 105 | 104 |
| 106 } // namespace cc | 105 } // namespace cc |
| 107 | 106 |
| 108 #endif // CC_SURFACES_DISPLAY_SCHEDULER_H_ | 107 #endif // CC_SURFACES_DISPLAY_SCHEDULER_H_ |
| OLD | NEW |