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

Unified Diff: third_party/WebKit/Source/core/dom/CompositorProxyClient.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/core/dom/CompositorProxyClient.h
diff --git a/third_party/WebKit/Source/core/dom/CompositorProxyClient.h b/third_party/WebKit/Source/core/dom/CompositorProxyClient.h
new file mode 100644
index 0000000000000000000000000000000000000000..ede5c8fccb76950697c7d31a7ca72c2ec27a2447
--- /dev/null
+++ b/third_party/WebKit/Source/core/dom/CompositorProxyClient.h
@@ -0,0 +1,43 @@
+// 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 CompositorProxyClient_h
+#define CompositorProxyClient_h
+
+#include "core/CoreExport.h"
+#include "core/workers/WorkerClients.h"
+#include "platform/heap/Handle.h"
+#include "wtf/Noncopyable.h"
+
+namespace blink {
+
+class CompositorProxy;
+class WorkerClients;
+class WorkerGlobalScope;
+
+class CORE_EXPORT CompositorProxyClient : public NoBaseWillBeGarbageCollectedFinalized<CompositorProxyClient>,
+ public WillBeHeapSupplement<WorkerClients> {
+ WTF_MAKE_NONCOPYABLE(CompositorProxyClient);
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(CompositorProxyClient);
+
+public:
+ CompositorProxyClient() {}
+ virtual ~CompositorProxyClient() {}
+
+ static CompositorProxyClient* from(WorkerClients*);
+ static const char* supplementName();
+
+ virtual void registerCompositorProxy(CompositorProxy*) = 0;
+ virtual void unregisterCompositorProxy(CompositorProxy*) = 0;
+ virtual void requestSync(CompositorProxy*) = 0;
+
+ virtual void setGlobalScope(WorkerGlobalScope*) = 0;
+ virtual void requestMutation() = 0;
+};
+
+CORE_EXPORT void provideCompositorProxyClientTo(WorkerClients*, PassOwnPtrWillBeRawPtr<CompositorProxyClient>);
+
+} // namespace blink
+
+#endif // CompositorProxyClient_h
« no previous file with comments | « third_party/WebKit/Source/core/dom/CompositorProxy.idl ('k') | third_party/WebKit/Source/core/dom/CompositorProxyClient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698