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

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

Issue 2514033002: Introducing SurfaceReferenceFactory (Closed)
Patch Set: rename leaves 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 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_FACTORY_H_
6 #define CC_SURFACES_SEQUENCE_SURFACE_REFERENCE_FACTORY_H_
7
8 #include "cc/output/compositor_frame_metadata.h"
9 #include "cc/surfaces/surface_reference_base.h"
10 #include "cc/surfaces/surface_reference_factory.h"
11 #include "cc/surfaces/surfaces_export.h"
12
13 namespace cc {
14
15 /* A surface reference factory that generates references which
16 * internally use SurfaceSequence. */
17 class CC_SURFACES_EXPORT SequenceSurfaceReferenceFactory
18 : public NON_EXPORTED_BASE(SurfaceReferenceFactory) {
19 public:
20 std::unique_ptr<SurfaceReferenceBase> CreateReference(
21 SurfaceReferenceOwner* owner,
22 const SurfaceId& surface_id) const override;
23
24 protected:
25 ~SequenceSurfaceReferenceFactory() override = default;
26
27 private:
28 void DestroyReference(SurfaceReferenceBase* surface_ref,
29 CompositorFrameMetadata* metadata) const override;
30 void DestroyReference(SurfaceReferenceBase* surface_ref) const override;
31 virtual void RequireSequence(const SurfaceId& surface_id,
32 const SurfaceSequence& sequence) const = 0;
33 virtual void SatisfySequence(const SurfaceSequence& sequence) const = 0;
34 };
35
36 } // namespace cc
37
38 #endif // CC_SURFACES_SEQUENCE_SURFACE_REFERENCE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698