| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_COMPOSITOR_FRAME_SINK_SUPPORT_H_ | 5 #ifndef CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ |
| 6 #define CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ | 6 #define CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <unordered_set> | 9 #include <unordered_set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 71 |
| 72 // SurfaceFactoryClient implementation. | 72 // SurfaceFactoryClient implementation. |
| 73 void ReferencedSurfacesChanged( | 73 void ReferencedSurfacesChanged( |
| 74 const LocalSurfaceId& local_surface_id, | 74 const LocalSurfaceId& local_surface_id, |
| 75 const std::vector<SurfaceId>* active_referenced_surfaces, | 75 const std::vector<SurfaceId>* active_referenced_surfaces, |
| 76 const std::vector<SurfaceId>* pending_referenced_surfaces) override; | 76 const std::vector<SurfaceId>* pending_referenced_surfaces) override; |
| 77 void ReturnResources(const ReturnedResourceArray& resources) override; | 77 void ReturnResources(const ReturnedResourceArray& resources) override; |
| 78 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override; | 78 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override; |
| 79 void WillDrawSurface(const LocalSurfaceId& local_surface_id, | 79 void WillDrawSurface(const LocalSurfaceId& local_surface_id, |
| 80 const gfx::Rect& damage_rect) override; | 80 const gfx::Rect& damage_rect) override; |
| 81 void OnBadFrameReceived() override; |
| 81 | 82 |
| 82 // BeginFrameObserver implementation. | 83 // BeginFrameObserver implementation. |
| 83 void OnBeginFrame(const BeginFrameArgs& args) override; | 84 void OnBeginFrame(const BeginFrameArgs& args) override; |
| 84 const BeginFrameArgs& LastUsedBeginFrameArgs() const override; | 85 const BeginFrameArgs& LastUsedBeginFrameArgs() const override; |
| 85 void OnBeginFrameSourcePausedChanged(bool paused) override; | 86 void OnBeginFrameSourcePausedChanged(bool paused) override; |
| 86 | 87 |
| 87 void UpdateNeedsBeginFramesInternal(); | 88 void UpdateNeedsBeginFramesInternal(); |
| 88 | 89 |
| 89 CompositorFrameSinkSupportClient* const client_; | 90 CompositorFrameSinkSupportClient* const client_; |
| 90 | 91 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 const bool handles_frame_sink_id_invalidation_; | 130 const bool handles_frame_sink_id_invalidation_; |
| 130 | 131 |
| 131 base::WeakPtrFactory<CompositorFrameSinkSupport> weak_factory_; | 132 base::WeakPtrFactory<CompositorFrameSinkSupport> weak_factory_; |
| 132 | 133 |
| 133 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkSupport); | 134 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkSupport); |
| 134 }; | 135 }; |
| 135 | 136 |
| 136 } // namespace cc | 137 } // namespace cc |
| 137 | 138 |
| 138 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ | 139 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ |
| OLD | NEW |