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..9c27f777153069030bcd00447fa2ce9fdd4efa07 |
--- /dev/null |
+++ b/cc/surfaces/direct_surface_embedding.h |
@@ -0,0 +1,29 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
kylechar
2016/12/08 02:02:45
2016
|
+// 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) { |
kylechar
2016/12/08 02:02:45
SurfaceEmbeddingUsingSequence is exported though?
|
+ public: |
+ DirectSurfaceEmbedding(const SurfaceInfo& info, SurfaceManager* manager) |
+ : SurfaceEmbeddingUsingSequence(info), manager_(manager) {} |
+ |
+ private: |
+ SurfaceEmbedding* CloneImpl() override; |
+ void SatisfySequence(const SurfaceSequence&) override; |
kylechar
2016/12/08 02:02:45
const SurfafeSequence& sequence
|
+ void RequireSequence(const SurfaceSequence&) override; |
+ |
+ SurfaceManager* manager_ = nullptr; |
+}; |
kylechar
2016/12/08 02:02:45
Should this be copyable?
|
+ |
+} // namespace cc |
+ |
+#endif // CC_SURFACES_DIRECT_SURFACE_EMBEDDING_H_ |