| Index: Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp
|
| diff --git a/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp b/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp
|
| index d4c47c0d724d78d63995f0db74d84815b93c1600..ac7fb2729dcbb4a2361798c80df17774c741269e 100644
|
| --- a/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp
|
| +++ b/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp
|
| @@ -22,6 +22,7 @@ PassRefPtrWillBeRawPtr<CompositorWorkerGlobalScope> CompositorWorkerGlobalScope:
|
|
|
| CompositorWorkerGlobalScope::CompositorWorkerGlobalScope(const KURL& url, const String& userAgent, CompositorWorkerThread* thread, double timeOrigin, const SecurityOrigin* starterOrigin, PassOwnPtrWillBeRawPtr<WorkerClients> workerClients)
|
| : WorkerGlobalScope(url, userAgent, thread, timeOrigin, starterOrigin, workerClients)
|
| + , m_callbackCollection(this)
|
| {
|
| }
|
|
|
| @@ -43,6 +44,21 @@ void CompositorWorkerGlobalScope::postMessage(ExecutionContext*, PassRefPtr<Seri
|
| thread()->workerObjectProxy().postMessageToWorkerObject(message, channels.release());
|
| }
|
|
|
| +int CompositorWorkerGlobalScope::requestCompositorFrame(RequestAnimationFrameCallback* callback)
|
| +{
|
| + return m_callbackCollection.registerCallback(callback);
|
| +}
|
| +
|
| +void CompositorWorkerGlobalScope::cancelCompositorFrame(int id)
|
| +{
|
| + m_callbackCollection.cancelCallback(id);
|
| +}
|
| +
|
| +void CompositorWorkerGlobalScope::executeCompositorFrameCallbacks(double highResTimeNow)
|
| +{
|
| + m_callbackCollection.executeCallbacks(highResTimeNow, highResTimeNow);
|
| +}
|
| +
|
| CompositorWorkerThread* CompositorWorkerGlobalScope::thread() const
|
| {
|
| return static_cast<CompositorWorkerThread*>(WorkerGlobalScope::thread());
|
|
|