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

Unified Diff: cc/test/remote_client_layer_factory.h

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/proto/layer_tree_host.proto ('k') | cc/test/remote_client_layer_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/remote_client_layer_factory.h
diff --git a/cc/test/remote_client_layer_factory.h b/cc/test/remote_client_layer_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..53232bfdad353427d7bfe360da38e466af25134f
--- /dev/null
+++ b/cc/test/remote_client_layer_factory.h
@@ -0,0 +1,27 @@
+// 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_TEST_REMOTE_CLIENT_LAYER_FACTORY_H_
+#define CC_TEST_REMOTE_CLIENT_LAYER_FACTORY_H_
+
+#include "base/macros.h"
+#include "cc/blimp/layer_factory.h"
+
+namespace cc {
+
+// An implementation of LayerFactory for tests that ensures that the layer id
+// for layers created on the client matches the ids of the corresponding layers
+// on the engine.
+class RemoteClientLayerFactory : public LayerFactory {
+ public:
+ RemoteClientLayerFactory();
+ ~RemoteClientLayerFactory() override;
+
+ // LayerFactory implementation.
+ scoped_refptr<Layer> CreateLayer(int engine_layer_id) override;
+};
+
+} // namespace cc
+
+#endif // CC_TEST_REMOTE_CLIENT_LAYER_FACTORY_H_
« no previous file with comments | « cc/proto/layer_tree_host.proto ('k') | cc/test/remote_client_layer_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698