| Index: cc/blink/web_mutator_client_impl.h
|
| diff --git a/cc/blink/web_mutator_client_impl.h b/cc/blink/web_mutator_client_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6dd3913531e3a14d5c14e0a2c2378e3fc03eea16
|
| --- /dev/null
|
| +++ b/cc/blink/web_mutator_client_impl.h
|
| @@ -0,0 +1,42 @@
|
| +// Copyright 2015 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_BLINK_WEB_MUTATOR_CLIENT_IMPL_H_
|
| +#define CC_BLINK_WEB_MUTATOR_CLIENT_IMPL_H_
|
| +
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "cc/animation/layer_tree_mutator.h"
|
| +#include "cc/blink/cc_blink_export.h"
|
| +#include "third_party/WebKit/public/platform/WebMutation.h"
|
| +#include "third_party/WebKit/public/platform/WebMutatorClient.h"
|
| +
|
| +namespace blink {
|
| +class WebMutator;
|
| +} // namespace blink
|
| +
|
| +namespace cc_blink {
|
| +
|
| +class WebMutatorClientImpl : public blink::WebMutatorClient,
|
| + public cc::LayerTreeMutator {
|
| + public:
|
| + CC_BLINK_EXPORT WebMutatorClientImpl(blink::WebMutator*);
|
| + ~WebMutatorClientImpl() override;
|
| +
|
| + // cc::LayerTreeMutator
|
| + bool Mutate(base::TimeTicks timeNow, cc::LayerTreeImpl* state) override;
|
| + void SetClient(cc::LayerTreeMutatorClient* client) override;
|
| + cc::LayerTreeMutationMap* TakeMutations() override;
|
| +
|
| + // blink::WebMutatorClient
|
| + void setNeedsMutate() override;
|
| +
|
| + private:
|
| + cc::LayerTreeMutatorClient* client_;
|
| + blink::WebMutator* mutator_;
|
| + scoped_ptr<cc::LayerTreeMutationMap> mutations_;
|
| +};
|
| +
|
| +} // namespace cc_blink
|
| +
|
| +#endif // CC_BLINK_WEB_MUTATOR_CLIENT_IMPL_H_
|
|
|