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

Side by Side Diff: cc/surfaces/direct_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 2014 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_DIRECT_SURFACE_EMBEDDING_H_
6 #define CC_SURFACES_DIRECT_SURFACE_EMBEDDING_H_
7
8 #include "cc/surfaces/surface_embedding.h"
9 #include "cc/surfaces/surface_manager.h"
10
11 namespace cc {
12
13 class CC_SURFACES_EXPORT DirectSurfaceEmbedding final
14 : public NON_EXPORTED_BASE(SurfaceEmbeddingUsingSequence) {
15 public:
16 DirectSurfaceEmbedding(SurfaceManager* manager) : manager_(manager) {}
17
18 protected:
19 ~DirectSurfaceEmbedding() override = default;
20
21 private:
22 void SatisfySequence(const SurfaceSequence&) const override;
23 void RequireSequence(const SurfaceId&, const SurfaceSequence&) const override;
24
25 SurfaceManager* manager_ = nullptr;
26 };
27
28 } // namespace cc
29
30 #endif // CC_SURFACES_DIRECT_SURFACE_EMBEDDING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698