| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CC_SURFACES_SEQUENCE_SURFACE_REFERENCE_H_ | |
| 6 #define CC_SURFACES_SEQUENCE_SURFACE_REFERENCE_H_ | |
| 7 | |
| 8 #include "cc/surfaces/surface_reference_base.h" | |
| 9 #include "cc/surfaces/surface_reference_factory.h" | |
| 10 #include "cc/surfaces/surface_sequence.h" | |
| 11 | |
| 12 namespace cc { | |
| 13 | |
| 14 // A surface reference which is internally implemented using SurfaceSequence | |
| 15 class SequenceSurfaceReference final : public SurfaceReferenceBase { | |
| 16 public: | |
| 17 SequenceSurfaceReference(scoped_refptr<const SurfaceReferenceFactory> factory, | |
| 18 const SurfaceSequence& sequence); | |
| 19 | |
| 20 ~SequenceSurfaceReference() override; | |
| 21 | |
| 22 const SurfaceSequence& sequence() const { return sequence_; } | |
| 23 | |
| 24 private: | |
| 25 const SurfaceSequence sequence_; | |
| 26 | |
| 27 DISALLOW_COPY_AND_ASSIGN(SequenceSurfaceReference); | |
| 28 }; | |
| 29 | |
| 30 } // namespace cc | |
| 31 | |
| 32 #endif // CC_SURFACES_SEQUENCE_SURFACE_REFERENCE_H_ | |
| OLD | NEW |