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

Unified Diff: cc/test/remote_client_layer_factory.cc

Issue 2375363002: cc/blimp: Set up the framework for state serialization. (Closed)
Patch Set: test update 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
« no previous file with comments | « cc/test/remote_client_layer_factory.h ('k') | cc/trees/layer_tree.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/remote_client_layer_factory.cc
diff --git a/cc/test/remote_client_layer_factory.cc b/cc/test/remote_client_layer_factory.cc
new file mode 100644
index 0000000000000000000000000000000000000000..89ba9388983a91115a6bcda0fc87e912bfaf062e
--- /dev/null
+++ b/cc/test/remote_client_layer_factory.cc
@@ -0,0 +1,29 @@
+// 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.
+
+#include "cc/test/remote_client_layer_factory.h"
+
+#include "cc/layers/layer.h"
+
+namespace cc {
+namespace {
+class ClientLayer : public Layer {
+ public:
+ explicit ClientLayer(int engine_layer_id) : Layer(engine_layer_id) {}
+
+ private:
+ ~ClientLayer() override {}
+};
+} // namespace
+
+RemoteClientLayerFactory::RemoteClientLayerFactory() = default;
+
+RemoteClientLayerFactory::~RemoteClientLayerFactory() = default;
+
+scoped_refptr<Layer> RemoteClientLayerFactory::CreateLayer(
+ int engine_layer_id) {
+ return make_scoped_refptr(new ClientLayer(engine_layer_id));
+}
+
+} // namespace cc
« no previous file with comments | « cc/test/remote_client_layer_factory.h ('k') | cc/trees/layer_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698