Chromium Code Reviews| Index: Source/modules/compositorworker/CompositorWorkerGlobalScope.h |
| diff --git a/Source/modules/compositorworker/CompositorWorkerGlobalScope.h b/Source/modules/compositorworker/CompositorWorkerGlobalScope.h |
| index 04b60198eecea27771ee6b0a42b32d3c52b63527..b8566a0a96c92b2a3e22abfc9b53d78c34f3179c 100644 |
| --- a/Source/modules/compositorworker/CompositorWorkerGlobalScope.h |
| +++ b/Source/modules/compositorworker/CompositorWorkerGlobalScope.h |
| @@ -6,6 +6,7 @@ |
| #define CompositorWorkerGlobalScope_h |
| #include "core/dom/MessagePort.h" |
| +#include "core/dom/RequestAnimationFrameCallbackCollection.h" |
| #include "core/workers/WorkerGlobalScope.h" |
| namespace blink { |
| @@ -25,7 +26,9 @@ public: |
| void postMessage(ExecutionContext*, PassRefPtr<SerializedScriptValue>, const MessagePortArray*, ExceptionState&); |
| DEFINE_ATTRIBUTE_EVENT_LISTENER(message); |
| - void executeCompositorFrameCallbacks(double monotonicTimeNow); |
| + int requestCompositorFrame(RequestAnimationFrameCallback*); |
|
esprehn
2015/03/30 18:43:12
Why not just call this thing requestAnimationFrame
sadrul
2015/03/31 02:45:36
Done.
|
| + void cancelCompositorFrame(int id); |
| + void executeCompositorFrameCallbacks(double highResTimeNow); |
| // ExecutionContext: |
| bool isCompositorWorkerGlobalScope() const override { return true; } |
| @@ -33,6 +36,8 @@ public: |
| private: |
| CompositorWorkerGlobalScope(const KURL&, const String& userAgent, CompositorWorkerThread*, double timeOrigin, const SecurityOrigin*, PassOwnPtrWillBeRawPtr<WorkerClients>); |
| CompositorWorkerThread* thread() const; |
| + |
| + RequestAnimationFrameCallbackCollection m_callbackCollection; |
| }; |
| } // namespace blink |