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

Unified Diff: third_party/WebKit/Source/core/dom/CompositorProxyClient.h

Issue 1900423004: [compositorworker] Register compositor proxies with proxy client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comment Created 4 years, 6 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/core/dom/CompositorProxyClient.h
diff --git a/third_party/WebKit/Source/core/dom/CompositorProxyClient.h b/third_party/WebKit/Source/core/dom/CompositorProxyClient.h
index 9f9cea1630df55fab6cf18a20aba27a882066311..c8f77af0f1b48a7f2ecbf4f7b994fc2980ab09c3 100644
--- a/third_party/WebKit/Source/core/dom/CompositorProxyClient.h
+++ b/third_party/WebKit/Source/core/dom/CompositorProxyClient.h
@@ -30,6 +30,12 @@ public:
virtual void setGlobalScope(WorkerGlobalScope*) = 0;
virtual void requestAnimationFrame() = 0;
+ virtual void registerCompositorProxy(CompositorProxy*) = 0;
+ // It is not guaranteed to receive an unregister call for every registered
+ // proxy. In fact we only receive one when a proxy is explicitly
+ // disconnected otherwise we rely on oilpan collection process to remove the
+ // weak reference to the proxy.
+ virtual void unregisterCompositorProxy(CompositorProxy*) = 0;
};
CORE_EXPORT void provideCompositorProxyClientTo(WorkerClients*, CompositorProxyClient*);

Powered by Google App Engine
This is Rietveld 408576698