| 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 const SurfaceId root_surface_id_; | 243 const SurfaceId root_surface_id_; |
| 244 | 244 |
| 245 // The DirectSurfaceReferenceFactory that uses this manager to create surface | 245 // The DirectSurfaceReferenceFactory that uses this manager to create surface |
| 246 // references. | 246 // references. |
| 247 scoped_refptr<SurfaceReferenceFactory> reference_factory_; | 247 scoped_refptr<SurfaceReferenceFactory> reference_factory_; |
| 248 | 248 |
| 249 // SurfaceIds that have temporary references from top level root so they | 249 // SurfaceIds that have temporary references from top level root so they |
| 250 // aren't GC'd before a real reference is added. This is basically a | 250 // aren't GC'd before a real reference is added. This is basically a |
| 251 // collection of surface ids, for example: | 251 // collection of surface ids, for example: |
| 252 // SurfaceId surface_id(key, value[index]); | 252 // SurfaceId surface_id(key, value[index]); |
| 253 // The LocalFrameIds are stored in the order the surfaces are created in. | 253 // The LocalSurfaceIds are stored in the order the surfaces are created in. |
| 254 std::unordered_map<FrameSinkId, std::vector<LocalFrameId>, FrameSinkIdHash> | 254 std::unordered_map<FrameSinkId, std::vector<LocalSurfaceId>, FrameSinkIdHash> |
| 255 temp_references_; | 255 temp_references_; |
| 256 | 256 |
| 257 base::WeakPtrFactory<SurfaceManager> weak_factory_; | 257 base::WeakPtrFactory<SurfaceManager> weak_factory_; |
| 258 | 258 |
| 259 DISALLOW_COPY_AND_ASSIGN(SurfaceManager); | 259 DISALLOW_COPY_AND_ASSIGN(SurfaceManager); |
| 260 }; | 260 }; |
| 261 | 261 |
| 262 } // namespace cc | 262 } // namespace cc |
| 263 | 263 |
| 264 #endif // CC_SURFACES_SURFACE_MANAGER_H_ | 264 #endif // CC_SURFACES_SURFACE_MANAGER_H_ |
| OLD | NEW |