| 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_SURFACE_REFERENCE_OWNER_H_ | 5 #ifndef CC_SURFACES_SURFACE_REFERENCE_OWNER_H_ |
| 6 #define CC_SURFACES_SURFACE_REFERENCE_OWNER_H_ | 6 #define CC_SURFACES_SURFACE_REFERENCE_OWNER_H_ |
| 7 | 7 |
| 8 #include "cc/surfaces/surface_sequence_generator.h" | 8 #include "cc/surfaces/surface_sequence_generator.h" |
| 9 | 9 |
| 10 namespace cc { | 10 namespace cc { |
| 11 | 11 |
| 12 // Implementations of this interface can be passed to | 12 // Implementations of this interface can be passed to |
| 13 // SurfaceReferenceFactory::CreateReference as the reference owner. | 13 // SurfaceReferenceFactory::CreateReference as the reference owner. |
| 14 class SurfaceReferenceOwner { | 14 class SurfaceReferenceOwner { |
| 15 public: | 15 public: |
| 16 virtual ~SurfaceReferenceOwner() {} |
| 17 |
| 16 virtual SurfaceSequenceGenerator* GetSurfaceSequenceGenerator() = 0; | 18 virtual SurfaceSequenceGenerator* GetSurfaceSequenceGenerator() = 0; |
| 17 }; | 19 }; |
| 18 | 20 |
| 19 } // namespace cc | 21 } // namespace cc |
| 20 | 22 |
| 21 #endif // CC_SURFACES_SURFACE_REFERENCE_OWNER_H_ | 23 #endif // CC_SURFACES_SURFACE_REFERENCE_OWNER_H_ |
| OLD | NEW |