| 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 27 matching lines...) Expand all Loading... |
| 38 void SetClient(DisplaySchedulerClient* client); | 38 void SetClient(DisplaySchedulerClient* client); |
| 39 | 39 |
| 40 void SetVisible(bool visible); | 40 void SetVisible(bool visible); |
| 41 void SetRootSurfaceResourcesLocked(bool locked); | 41 void SetRootSurfaceResourcesLocked(bool locked); |
| 42 void ForceImmediateSwapIfPossible(); | 42 void ForceImmediateSwapIfPossible(); |
| 43 virtual void DisplayResized(); | 43 virtual void DisplayResized(); |
| 44 virtual void SetNewRootSurface(const SurfaceId& root_surface_id); | 44 virtual void SetNewRootSurface(const SurfaceId& root_surface_id); |
| 45 virtual void SurfaceDamaged(const SurfaceId& surface_id); | 45 virtual void SurfaceDamaged(const SurfaceId& surface_id); |
| 46 | 46 |
| 47 virtual void DidSwapBuffers(); | 47 virtual void DidSwapBuffers(); |
| 48 void DidSwapBuffersComplete(); | 48 void DidReceiveSwapBuffersAck(); |
| 49 | 49 |
| 50 void OutputSurfaceLost(); | 50 void OutputSurfaceLost(); |
| 51 | 51 |
| 52 // BeginFrameObserverBase implementation | 52 // BeginFrameObserverBase implementation |
| 53 bool OnBeginFrameDerivedImpl(const BeginFrameArgs& args) override; | 53 bool OnBeginFrameDerivedImpl(const BeginFrameArgs& args) override; |
| 54 void OnBeginFrameSourcePausedChanged(bool paused) override; | 54 void OnBeginFrameSourcePausedChanged(bool paused) override; |
| 55 | 55 |
| 56 protected: | 56 protected: |
| 57 base::TimeTicks DesiredBeginFrameDeadlineTime(); | 57 base::TimeTicks DesiredBeginFrameDeadlineTime(); |
| 58 virtual void ScheduleBeginFrameDeadline(); | 58 virtual void ScheduleBeginFrameDeadline(); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 99 |
| 100 base::WeakPtrFactory<DisplayScheduler> weak_ptr_factory_; | 100 base::WeakPtrFactory<DisplayScheduler> weak_ptr_factory_; |
| 101 | 101 |
| 102 private: | 102 private: |
| 103 DISALLOW_COPY_AND_ASSIGN(DisplayScheduler); | 103 DISALLOW_COPY_AND_ASSIGN(DisplayScheduler); |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 } // namespace cc | 106 } // namespace cc |
| 107 | 107 |
| 108 #endif // CC_SURFACES_DISPLAY_SCHEDULER_H_ | 108 #endif // CC_SURFACES_DISPLAY_SCHEDULER_H_ |
| OLD | NEW |