| 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_
|
|
|