Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(474)

Side by Side Diff: cc/surfaces/surface_embedding.h

Issue 2514033002: Introducing SurfaceReferenceFactory (Closed)
Patch Set: ref Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698