| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SURFACE_MANAGER_H_ | 5 #ifndef CC_SURFACES_SURFACE_MANAGER_H_ |
| 6 #define CC_SURFACES_SURFACE_MANAGER_H_ | 6 #define CC_SURFACES_SURFACE_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 const FrameSinkId& child_frame_sink_id); | 122 const FrameSinkId& child_frame_sink_id); |
| 123 void UnregisterFrameSinkHierarchy(const FrameSinkId& parent_frame_sink_id, | 123 void UnregisterFrameSinkHierarchy(const FrameSinkId& parent_frame_sink_id, |
| 124 const FrameSinkId& child_frame_sink_id); | 124 const FrameSinkId& child_frame_sink_id); |
| 125 | 125 |
| 126 // SurfaceReferenceManager: | 126 // SurfaceReferenceManager: |
| 127 const SurfaceId& GetRootSurfaceId() const override; | 127 const SurfaceId& GetRootSurfaceId() const override; |
| 128 void AddSurfaceReference(const SurfaceId& parent_id, | 128 void AddSurfaceReference(const SurfaceId& parent_id, |
| 129 const SurfaceId& child_id) override; | 129 const SurfaceId& child_id) override; |
| 130 void RemoveSurfaceReference(const SurfaceId& parent_id, | 130 void RemoveSurfaceReference(const SurfaceId& parent_id, |
| 131 const SurfaceId& child_id) override; | 131 const SurfaceId& child_id) override; |
| 132 void AddSurfaceReferences( | |
| 133 const std::vector<SurfaceReference>& references) override; | |
| 134 void RemoveSurfaceReferences( | |
| 135 const std::vector<SurfaceReference>& references) override; | |
| 136 size_t GetSurfaceReferenceCount(const SurfaceId& surface_id) const override; | 132 size_t GetSurfaceReferenceCount(const SurfaceId& surface_id) const override; |
| 137 size_t GetReferencedSurfaceCount(const SurfaceId& surface_id) const override; | 133 size_t GetReferencedSurfaceCount(const SurfaceId& surface_id) const override; |
| 138 | 134 |
| 139 scoped_refptr<SurfaceReferenceFactory> reference_factory() { | 135 scoped_refptr<SurfaceReferenceFactory> reference_factory() { |
| 140 return reference_factory_; | 136 return reference_factory_; |
| 141 } | 137 } |
| 142 | 138 |
| 143 private: | 139 private: |
| 144 friend class SurfaceManagerRefTest; | 140 friend class SurfaceManagerRefTest; |
| 145 | 141 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 temp_references_; | 243 temp_references_; |
| 248 | 244 |
| 249 base::WeakPtrFactory<SurfaceManager> weak_factory_; | 245 base::WeakPtrFactory<SurfaceManager> weak_factory_; |
| 250 | 246 |
| 251 DISALLOW_COPY_AND_ASSIGN(SurfaceManager); | 247 DISALLOW_COPY_AND_ASSIGN(SurfaceManager); |
| 252 }; | 248 }; |
| 253 | 249 |
| 254 } // namespace cc | 250 } // namespace cc |
| 255 | 251 |
| 256 #endif // CC_SURFACES_SURFACE_MANAGER_H_ | 252 #endif // CC_SURFACES_SURFACE_MANAGER_H_ |
| OLD | NEW |