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

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

Issue 1047783002: compositor-worker: Allow registering compositor-frame callbacks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698