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" |
(...skipping 22 matching lines...) Expand all Loading... |
33 DisplayScheduler(BeginFrameSource* begin_frame_source, | 33 DisplayScheduler(BeginFrameSource* begin_frame_source, |
34 base::SingleThreadTaskRunner* task_runner, | 34 base::SingleThreadTaskRunner* task_runner, |
35 int max_pending_swaps); | 35 int max_pending_swaps); |
36 ~DisplayScheduler() override; | 36 ~DisplayScheduler() override; |
37 | 37 |
38 void SetClient(DisplaySchedulerClient* client); | 38 void SetClient(DisplaySchedulerClient* client); |
39 | 39 |
40 void SetRootSurfaceResourcesLocked(bool locked); | 40 void SetRootSurfaceResourcesLocked(bool locked); |
41 void ForceImmediateSwapIfPossible(); | 41 void ForceImmediateSwapIfPossible(); |
42 virtual void DisplayResized(); | 42 virtual void DisplayResized(); |
43 virtual void SetNewRootSurface(SurfaceId root_surface_id); | 43 virtual void SetNewRootSurface(const SurfaceId& root_surface_id); |
44 virtual void SurfaceDamaged(SurfaceId surface_id); | 44 virtual void SurfaceDamaged(const SurfaceId& surface_id); |
45 | 45 |
46 virtual void DidSwapBuffers(); | 46 virtual void DidSwapBuffers(); |
47 void DidSwapBuffersComplete(); | 47 void DidSwapBuffersComplete(); |
48 | 48 |
49 void OutputSurfaceLost(); | 49 void OutputSurfaceLost(); |
50 | 50 |
51 // BeginFrameObserverBase implementation | 51 // BeginFrameObserverBase implementation |
52 bool OnBeginFrameDerivedImpl(const BeginFrameArgs& args) override; | 52 bool OnBeginFrameDerivedImpl(const BeginFrameArgs& args) override; |
53 void OnBeginFrameSourcePausedChanged(bool paused) override; | 53 void OnBeginFrameSourcePausedChanged(bool paused) override; |
54 | 54 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 base::WeakPtrFactory<DisplayScheduler> weak_ptr_factory_; | 92 base::WeakPtrFactory<DisplayScheduler> weak_ptr_factory_; |
93 | 93 |
94 private: | 94 private: |
95 DISALLOW_COPY_AND_ASSIGN(DisplayScheduler); | 95 DISALLOW_COPY_AND_ASSIGN(DisplayScheduler); |
96 }; | 96 }; |
97 | 97 |
98 } // namespace cc | 98 } // namespace cc |
99 | 99 |
100 #endif // CC_SURFACES_DISPLAY_SCHEDULER_H_ | 100 #endif // CC_SURFACES_DISPLAY_SCHEDULER_H_ |
OLD | NEW |