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

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

Issue 1602343002: compositor-worker: cc->blink mutation plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compositor-worker-ian-patch
Patch Set: Merge master + s/scoped_ptr/unique_ptr/ Created 4 years, 8 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..1c5ee5e761679bb3a008c14deb55e34c8b71fbaa
--- /dev/null
+++ b/third_party/WebKit/Source/platform/graphics/CompositorMutatorClient.h
@@ -0,0 +1,34 @@
+// 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 "platform/PlatformExport.h"
+#include "public/platform/WebCompositorMutatorClient.h"
+#include "wtf/OwnPtr.h"
+#include "wtf/PassOwnPtr.h"
+
+namespace blink {
+
+struct CompositorMutations;
+class CompositorMutationsTarget;
+
+class PLATFORM_EXPORT CompositorMutatorClient : public WebCompositorMutatorClient {
+public:
+ CompositorMutatorClient(CompositorMutationsTarget*);
+ virtual ~CompositorMutatorClient();
+
+ // cc::LayerTreeMutator
+ base::Closure TakeMutations() override;
+
+ void setMutationsForTesting(PassOwnPtr<CompositorMutations>);
+private:
+ CompositorMutationsTarget* m_mutationsTarget;
+ OwnPtr<CompositorMutations> m_mutations;
+};
+
+} // namespace blink
+
+#endif // CompositorMutatorClient_h

Powered by Google App Engine
This is Rietveld 408576698