Chromium Code Reviews| 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 19 matching lines...) Expand all Loading... | |
| 30 public: | 30 public: |
| 31 CompositorFrameSinkSupport(CompositorFrameSinkSupportClient* client, | 31 CompositorFrameSinkSupport(CompositorFrameSinkSupportClient* client, |
| 32 SurfaceManager* surface_manager, | 32 SurfaceManager* surface_manager, |
| 33 const FrameSinkId& frame_sink_id, | 33 const FrameSinkId& frame_sink_id, |
| 34 bool is_root, | 34 bool is_root, |
| 35 bool handles_frame_sink_id_invalidation, | 35 bool handles_frame_sink_id_invalidation, |
| 36 bool needs_sync_points); | 36 bool needs_sync_points); |
| 37 | 37 |
| 38 ~CompositorFrameSinkSupport() override; | 38 ~CompositorFrameSinkSupport() override; |
| 39 | 39 |
| 40 void Init(); | |
|
boliu
2017/04/10 17:02:23
it's usually better to have a public factory metho
Alex Z.
2017/04/10 17:34:29
We're still in discussion about the necessity of t
| |
| 41 | |
| 40 const FrameSinkId& frame_sink_id() const { return frame_sink_id_; } | 42 const FrameSinkId& frame_sink_id() const { return frame_sink_id_; } |
| 41 | 43 |
| 42 Surface* current_surface_for_testing() { | 44 Surface* current_surface_for_testing() { |
| 43 return surface_factory_.current_surface_for_testing(); | 45 return surface_factory_.current_surface_for_testing(); |
| 44 } | 46 } |
| 45 | 47 |
| 46 const ReferencedSurfaceTracker& ReferenceTrackerForTesting() const { | 48 const ReferencedSurfaceTracker& ReferenceTrackerForTesting() const { |
| 47 return reference_tracker_; | 49 return reference_tracker_; |
| 48 } | 50 } |
| 49 | 51 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 129 const bool handles_frame_sink_id_invalidation_; | 131 const bool handles_frame_sink_id_invalidation_; |
| 130 | 132 |
| 131 base::WeakPtrFactory<CompositorFrameSinkSupport> weak_factory_; | 133 base::WeakPtrFactory<CompositorFrameSinkSupport> weak_factory_; |
| 132 | 134 |
| 133 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkSupport); | 135 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkSupport); |
| 134 }; | 136 }; |
| 135 | 137 |
| 136 } // namespace cc | 138 } // namespace cc |
| 137 | 139 |
| 138 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ | 140 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ |
| OLD | NEW |