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

Unified Diff: cc/blimp/layer_factory.h

Issue 2375363002: cc/blimp: Set up the framework for state serialization. (Closed)
Patch Set: tests Created 4 years, 2 months 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/blimp/layer_factory.h
diff --git a/cc/blimp/layer_factory.h b/cc/blimp/layer_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..c8ff5dd727c678e838eca5145fe5a4b24421abf9
--- /dev/null
+++ b/cc/blimp/layer_factory.h
@@ -0,0 +1,25 @@
+// Copyright 2016 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_BLIMP_LAYER_FACTORY_H_
+#define CC_BLIMP_LAYER_FACTORY_H_
+
+#include "base/macros.h"
+#include "base/memory/ref_counted.h"
+
+namespace cc {
+class Layer;
+
+// Used to allow tests to inject the Layer created by the
+// CompositorStateDeserializer on the client.
+class LayerFactory {
+ public:
+ virtual ~LayerFactory() {}
+
+ virtual scoped_refptr<Layer> CreateLayer(int engine_layer_id) = 0;
ajuma 2016/10/04 15:45:10 When you start to expand test coverage, you'll nee
Khushal 2016/10/04 18:34:47 Sounds good. For each of them we can add methods t
+};
+
+} // namespace cc
+
+#endif // CC_BLIMP_LAYER_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698