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

Unified Diff: cc/surfaces/direct_surface_embedding.h

Issue 2514033002: Introducing SurfaceReferenceFactory (Closed)
Patch Set: x 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..97f62f59cd7eb45dae78c1e6271e814d33154ef3
--- /dev/null
+++ b/cc/surfaces/direct_surface_embedding.h
@@ -0,0 +1,29 @@
+// 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(const SurfaceInfo& info, SurfaceManager* manager)
+ : SurfaceEmbeddingUsingSequence(info), manager_(manager) {}
+
+ private:
+ SurfaceEmbedding* CloneImpl() const override;
+ void SatisfySequence(const SurfaceSequence&) override;
+ void RequireSequence(const SurfaceSequence&) override;
+
+ SurfaceManager* manager_ = nullptr;
+};
+
+} // namespace cc
+
+#endif // CC_SURFACES_DIRECT_SURFACE_EMBEDDING_H_

Powered by Google App Engine
This is Rietveld 408576698