OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 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_SURFACE_EMBEDDING_H_ |
| 6 #define CC_SURFACES_SURFACE_EMBEDDING_H_ |
| 7 |
| 8 #include "cc/output/compositor_frame_metadata.h" |
| 9 #include "cc/surfaces/surface_embedding_base.h" |
| 10 #include "cc/surfaces/surfaces_export.h" |
| 11 |
| 12 namespace cc { |
| 13 |
| 14 class CC_SURFACES_EXPORT SurfaceEmbeddingUsingSequence |
| 15 : public NON_EXPORTED_BASE(SurfaceEmbedding) { |
| 16 public: |
| 17 SurfaceRefPtr CreateReference(SurfaceReferenceOwner*, |
| 18 const SurfaceId&) const override; |
| 19 |
| 20 protected: |
| 21 ~SurfaceEmbeddingUsingSequence() override = default; |
| 22 |
| 23 private: |
| 24 void DestroyReference(SurfaceRef*, CompositorFrameMetadata*) const override; |
| 25 void DestroyReference(SurfaceRef*) const override; |
| 26 virtual void RequireSequence(const SurfaceId&, |
| 27 const SurfaceSequence&) const = 0; |
| 28 virtual void SatisfySequence(const SurfaceSequence&) const = 0; |
| 29 }; |
| 30 |
| 31 } // namespace cc |
| 32 |
| 33 #endif // CC_SURFACES_SURFACE_EMBEDDING_H_ |
OLD | NEW |