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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: cc/surfaces/direct_surface_embedding.h
diff --git a/cc/surfaces/direct_surface_embedding.h b/cc/surfaces/direct_surface_embedding.h
new file mode 100644
index 0000000000000000000000000000000000000000..8b2b69fa31dde02934fbd3bd43ef10a2da081c7a
--- /dev/null
+++ b/cc/surfaces/direct_surface_embedding.h
@@ -0,0 +1,30 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_SURFACES_DIRECT_SURFACE_EMBEDDING_H_
+#define CC_SURFACES_DIRECT_SURFACE_EMBEDDING_H_
+
+#include "cc/surfaces/surface_embedding.h"
+#include "cc/surfaces/surface_manager.h"
+
+namespace cc {
+
+class CC_SURFACES_EXPORT DirectSurfaceEmbedding final
+ : public NON_EXPORTED_BASE(SurfaceEmbeddingUsingSequence) {
+ public:
+ DirectSurfaceEmbedding(SurfaceManager* manager) : manager_(manager) {}
+
+ protected:
+ ~DirectSurfaceEmbedding() override = default;
+
+ private:
+ void SatisfySequence(const SurfaceSequence&) const override;
+ void RequireSequence(const SurfaceId&, const SurfaceSequence&) const override;
+
+ SurfaceManager* manager_ = nullptr;
+};
+
+} // namespace cc
+
+#endif // CC_SURFACES_DIRECT_SURFACE_EMBEDDING_H_

Powered by Google App Engine
This is Rietveld 408576698