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

Unified Diff: third_party/WebKit/Source/platform/graphics/CompositorMutatorClient.h

Issue 1547893003: WIP - compositor worker mega patch. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 11 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
Index: third_party/WebKit/Source/platform/graphics/CompositorMutatorClient.h
diff --git a/third_party/WebKit/Source/platform/graphics/CompositorMutatorClient.h b/third_party/WebKit/Source/platform/graphics/CompositorMutatorClient.h
new file mode 100644
index 0000000000000000000000000000000000000000..7d5f13409e266cb49894440cf30175f66d3deffd
--- /dev/null
+++ b/third_party/WebKit/Source/platform/graphics/CompositorMutatorClient.h
@@ -0,0 +1,38 @@
+// 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 CompositorMutatorClient_h
+#define CompositorMutatorClient_h
+
+#include "base/memory/scoped_ptr.h"
+#include "platform/PlatformExport.h"
+#include "public/platform/WebCompositorMutatorClient.h"
+#include "wtf/OwnPtr.h"
+
+namespace blink {
+
+class CompositorMutator;
+struct CompositorMutations;
+
+class PLATFORM_EXPORT CompositorMutatorClient : public WebCompositorMutatorClient {
+public:
+ explicit CompositorMutatorClient(CompositorMutator*);
+ virtual ~CompositorMutatorClient();
+
+ void setNeedsMutate();
+
+ // cc::LayerTreeMutator
+ bool Mutate(base::TimeTicks timeNow, cc::LayerTreeImpl* state) override;
+ void SetClient(cc::LayerTreeMutatorClient* client) override;
+ scoped_ptr<cc::LayerTreeMutations> TakeMutations() override;
+
+ private:
+ cc::LayerTreeMutatorClient* m_client;
+ CompositorMutator* m_mutator;
+ OwnPtr<CompositorMutations> m_mutations;
+};
+
+} // namespace blink
+
+#endif // CompositorMutatorClient_h

Powered by Google App Engine
This is Rietveld 408576698