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

Unified Diff: third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.h

Issue 1956893003: compositor-worker: Add CompositorProxyClient worker client of CompositorWorker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/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 b7e1d00fa209ab1ec3a9a8e0e8d13870e90cf305..726131c21e87eea521e774b7d4653940234049f7 100644
--- a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.h
+++ b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.h
@@ -5,16 +5,18 @@
#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"
namespace blink {
class CompositorWorkerThread;
class WorkerThreadStartupData;
-class CompositorWorkerGlobalScope final : public WorkerGlobalScope {
+class MODULES_EXPORT CompositorWorkerGlobalScope final : public WorkerGlobalScope {
DEFINE_WRAPPERTYPEINFO();
public:
static CompositorWorkerGlobalScope* create(CompositorWorkerThread*, PassOwnPtr<WorkerThreadStartupData>, double timeOrigin);
@@ -28,7 +30,7 @@ public:
int requestAnimationFrame(FrameRequestCallback*);
void cancelAnimationFrame(int id);
- void executeAnimationFrameCallbacks(double highResTimeNow);
+ bool executeAnimationFrameCallbacks(double highResTimeMs);
// ExecutionContext:
bool isCompositorWorkerGlobalScope() const override { return true; }
@@ -39,6 +41,7 @@ private:
CompositorWorkerGlobalScope(const KURL&, const String& userAgent, CompositorWorkerThread*, double timeOrigin, PassOwnPtr<SecurityOrigin::PrivilegeData>, WorkerClients*);
CompositorWorkerThread* thread() const;
+ bool m_executingAnimationFrameCallbacks;
FrameRequestCallbackCollection m_callbackCollection;
};

Powered by Google App Engine
This is Rietveld 408576698