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

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: Include WebCompositorMutatorClient from WebLayerTreeView to allow unique_ptr usage. Created 4 years, 7 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
index 8c0714b6ee6ae36c725a20372414f454da578176..767117edd37e7750ebb97832ab30f914d5746c9a 100644
--- a/third_party/WebKit/Source/web/CompositorProxyClientImpl.h
+++ b/third_party/WebKit/Source/web/CompositorProxyClientImpl.h
@@ -10,6 +10,7 @@
namespace blink {
+class CompositorMutatorImpl;
class CompositorWorkerGlobalScope;
class WorkerGlobalScope;
@@ -22,7 +23,7 @@ class CompositorProxyClientImpl final : public GarbageCollected<CompositorProxyC
USING_GARBAGE_COLLECTED_MIXIN(CompositorProxyClientImpl);
WTF_MAKE_NONCOPYABLE(CompositorProxyClientImpl);
public:
- CompositorProxyClientImpl();
+ CompositorProxyClientImpl(CompositorMutatorImpl*);
DECLARE_VIRTUAL_TRACE();
// Runs the animation frame callback for the frame starting at the given time.
@@ -31,11 +32,13 @@ public:
// CompositorProxyClient:
void setGlobalScope(WorkerGlobalScope*) override;
- void runAnimationFrameCallbacks() override;
+ void requestAnimationFrame() override;
private:
bool executeAnimationFrameCallbacks(double monotonicTimeNow);
+ Member<CompositorMutatorImpl> m_mutator;
+
Member<CompositorWorkerGlobalScope> m_globalScope;
bool m_requestedAnimationFrameCallbacks;
};
« no previous file with comments | « third_party/WebKit/Source/web/CompositorMutatorImpl.cpp ('k') | third_party/WebKit/Source/web/CompositorProxyClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698