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

Unified Diff: third_party/WebKit/Source/web/CompositorProxyClientImpl.h

Issue 1895873006: compositor-worker: Initialize CW machinery plumbing to compositor and fire CW rAF callbacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary scope 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/web/CompositorProxyClientImpl.h
diff --git a/third_party/WebKit/Source/web/CompositorProxyClientImpl.h b/third_party/WebKit/Source/web/CompositorProxyClientImpl.h
new file mode 100644
index 0000000000000000000000000000000000000000..1ab4efb3a89aa41f058b736638930f80ecec56e0
--- /dev/null
+++ b/third_party/WebKit/Source/web/CompositorProxyClientImpl.h
@@ -0,0 +1,44 @@
+// 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 CompositorProxyClientImpl_h
+#define CompositorProxyClientImpl_h
+
+#include "core/dom/CompositorProxyClient.h"
+
jbroman 2016/04/20 21:06:42 nit: unnecessary newline
flackr 2016/04/25 14:06:28 Removed.
+#include "wtf/Noncopyable.h"
+
+namespace blink {
+
+class CompositorMutatorImpl;
+class CompositorWorkerGlobalScope;
+class WorkerGlobalScope;
+
+class CompositorProxyClientImpl : public CompositorProxyClient {
+ WTF_MAKE_NONCOPYABLE(CompositorProxyClientImpl);
+
+public:
+ explicit CompositorProxyClientImpl(CompositorMutatorImpl*);
+ ~CompositorProxyClientImpl() override;
+ DECLARE_VIRTUAL_TRACE();
+
+ bool mutate(double timeNow) final;
jbroman 2016/04/20 21:06:42 nit: this seems to be overriding a method in Compo
flackr 2016/04/25 14:06:28 No longer overridiing the method in CompositorProx
+
+ // CompositorProxyClient:
+ void setGlobalScope(WorkerGlobalScope*) override;
+ void requestMutation() override;
+
+private:
+ bool executeAnimationFrameCallbacks(double time);
+
+ CompositorMutatorImpl* m_mutator;
jbroman 2016/04/20 21:06:42 lifetime of the CompositorMutatorImpl isn't obviou
+
+ Member<CompositorWorkerGlobalScope> m_globalScope;
+ bool m_executingAnimationFrameCallbacks;
+ bool m_requestedAnimationFrameCallbacks;
+};
+
+} // namespace blink
+
+#endif // CompositorProxyClientImpl_h

Powered by Google App Engine
This is Rietveld 408576698