| Index: third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.h
|
| diff --git a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.h b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.h
|
| index fb702fb505256dc3d1c4daaae154cd4bc6e0f006..5e07b6ff5c2872ccbeb35605042db4d937d5e49b 100644
|
| --- a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.h
|
| +++ b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.h
|
| @@ -5,16 +5,19 @@
|
| #ifndef CompositorWorkerGlobalScope_h
|
| #define CompositorWorkerGlobalScope_h
|
|
|
| +#include "core/dom/CompositorProxyClient.h"
|
| #include "core/dom/FrameRequestCallbackCollection.h"
|
| #include "core/dom/MessagePort.h"
|
| #include "core/workers/WorkerGlobalScope.h"
|
| +#include "modules/ModulesExport.h"
|
| +#include "wtf/HashSet.h"
|
|
|
| namespace blink {
|
|
|
| class CompositorWorkerThread;
|
| class WorkerThreadStartupData;
|
|
|
| -class CompositorWorkerGlobalScope final : public WorkerGlobalScope {
|
| +class MODULES_EXPORT CompositorWorkerGlobalScope final : public WorkerGlobalScope {
|
| DEFINE_WRAPPERTYPEINFO();
|
| public:
|
| static PassRefPtrWillBeRawPtr<CompositorWorkerGlobalScope> create(CompositorWorkerThread*, PassOwnPtr<WorkerThreadStartupData>, double timeOrigin);
|
| @@ -28,7 +31,7 @@ public:
|
|
|
| int requestAnimationFrame(FrameRequestCallback*);
|
| void cancelAnimationFrame(int id);
|
| - void executeAnimationFrameCallbacks(double highResTimeNow);
|
| + bool executeAnimationFrameCallbacks(double highResTimeNow);
|
|
|
| // ExecutionContext:
|
| bool isCompositorWorkerGlobalScope() const override { return true; }
|
| @@ -39,7 +42,9 @@ private:
|
| CompositorWorkerGlobalScope(const KURL&, const String& userAgent, CompositorWorkerThread*, double timeOrigin, PassOwnPtr<SecurityOrigin::PrivilegeData>, PassOwnPtrWillBeRawPtr<WorkerClients>);
|
| CompositorWorkerThread* thread() const;
|
|
|
| + bool m_executingAnimationFrameCallbacks;
|
| FrameRequestCallbackCollection m_callbackCollection;
|
| + CompositorProxyClient* m_client;
|
| };
|
|
|
| } // namespace blink
|
|
|