| 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 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 void SetVisible(bool visible); | 42 void SetVisible(bool visible); |
| 43 void SetRootSurfaceResourcesLocked(bool locked); | 43 void SetRootSurfaceResourcesLocked(bool locked); |
| 44 void ForceImmediateSwapIfPossible(); | 44 void ForceImmediateSwapIfPossible(); |
| 45 virtual void DisplayResized(); | 45 virtual void DisplayResized(); |
| 46 virtual void SetNewRootSurface(const SurfaceId& root_surface_id); | 46 virtual void SetNewRootSurface(const SurfaceId& root_surface_id); |
| 47 virtual void SurfaceDamaged(const SurfaceId& surface_id, | 47 virtual void SurfaceDamaged(const SurfaceId& surface_id, |
| 48 const BeginFrameAck& ack, | 48 const BeginFrameAck& ack, |
| 49 bool display_damaged); | 49 bool display_damaged); |
| 50 void SurfaceCreated(const SurfaceInfo& surface_info); | 50 void SurfaceCreated(const SurfaceInfo& surface_info); |
| 51 void SurfaceDestroyed(const SurfaceId& surface_id); | 51 void SurfaceDiscarded(const SurfaceId& surface_id); |
| 52 void SurfaceDamageExpected(const SurfaceId& surface_id, | 52 void SurfaceDamageExpected(const SurfaceId& surface_id, |
| 53 const BeginFrameArgs& args); | 53 const BeginFrameArgs& args); |
| 54 | 54 |
| 55 virtual void DidSwapBuffers(); | 55 virtual void DidSwapBuffers(); |
| 56 void DidReceiveSwapBuffersAck(); | 56 void DidReceiveSwapBuffersAck(); |
| 57 | 57 |
| 58 void OutputSurfaceLost(); | 58 void OutputSurfaceLost(); |
| 59 | 59 |
| 60 // BeginFrameObserverBase implementation | 60 // BeginFrameObserverBase implementation |
| 61 bool OnBeginFrameDerivedImpl(const BeginFrameArgs& args) override; | 61 bool OnBeginFrameDerivedImpl(const BeginFrameArgs& args) override; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 111 |
| 112 base::WeakPtrFactory<DisplayScheduler> weak_ptr_factory_; | 112 base::WeakPtrFactory<DisplayScheduler> weak_ptr_factory_; |
| 113 | 113 |
| 114 private: | 114 private: |
| 115 DISALLOW_COPY_AND_ASSIGN(DisplayScheduler); | 115 DISALLOW_COPY_AND_ASSIGN(DisplayScheduler); |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 } // namespace cc | 118 } // namespace cc |
| 119 | 119 |
| 120 #endif // CC_SURFACES_DISPLAY_SCHEDULER_H_ | 120 #endif // CC_SURFACES_DISPLAY_SCHEDULER_H_ |
| OLD | NEW |