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 explicit SurfaceEmbeddingUsingSequence(const SurfaceInfo& info) |
| 18 : SurfaceEmbedding(info) {} |
| 19 |
| 20 private: |
| 21 void RemoveReference(CompositorFrameMetadata* metadata) override; |
| 22 void AddReference() override; |
| 23 void RemoveReference() override; |
| 24 virtual void RequireSequence(const SurfaceSequence&) = 0; |
| 25 virtual void SatisfySequence(const SurfaceSequence&) = 0; |
| 26 SurfaceSequence seq_; |
| 27 }; |
| 28 |
| 29 } // namespace cc |
| 30 |
| 31 #endif // CC_SURFACES_SURFACE_EMBEDDING_H_ |
OLD | NEW |