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

Unified Diff: cc/blink/web_mutator_client_impl.h

Issue 1547893003: WIP - compositor worker mega patch. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/blink/web_layer_impl.cc ('k') | cc/blink/web_mutator_client_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « cc/blink/web_layer_impl.cc ('k') | cc/blink/web_mutator_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698