| 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; |
| 132 size_t GetSurfaceReferenceCount(const SurfaceId& surface_id) const override; | 136 size_t GetSurfaceReferenceCount(const SurfaceId& surface_id) const override; |
| 133 size_t GetReferencedSurfaceCount(const SurfaceId& surface_id) const override; | 137 size_t GetReferencedSurfaceCount(const SurfaceId& surface_id) const override; |
| 134 | 138 |
| 135 scoped_refptr<SurfaceReferenceFactory> reference_factory() { | 139 scoped_refptr<SurfaceReferenceFactory> reference_factory() { |
| 136 return reference_factory_; | 140 return reference_factory_; |
| 137 } | 141 } |
| 138 | 142 |
| 139 private: | 143 private: |
| 140 friend class SurfaceManagerRefTest; | 144 friend class SurfaceManagerRefTest; |
| 141 | 145 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 temp_references_; | 247 temp_references_; |
| 244 | 248 |
| 245 base::WeakPtrFactory<SurfaceManager> weak_factory_; | 249 base::WeakPtrFactory<SurfaceManager> weak_factory_; |
| 246 | 250 |
| 247 DISALLOW_COPY_AND_ASSIGN(SurfaceManager); | 251 DISALLOW_COPY_AND_ASSIGN(SurfaceManager); |
| 248 }; | 252 }; |
| 249 | 253 |
| 250 } // namespace cc | 254 } // namespace cc |
| 251 | 255 |
| 252 #endif // CC_SURFACES_SURFACE_MANAGER_H_ | 256 #endif // CC_SURFACES_SURFACE_MANAGER_H_ |
| OLD | NEW |