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

Issue 1043903003: rAF: Introduce FrameRequestCallbackCollection for managing rAF callbacks. (Closed)

Created:
5 years, 8 months ago by sadrul
Modified:
5 years, 8 months ago
Reviewers:
caseq, esprehn, dgozman
CC:
aandrey+blink_chromium.org, darktears, apavlov+blink_chromium.org, arv+blink, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-dom_chromium.org, caseq+blink_chromium.org, Inactive, devtools-reviews_chromium.org, dglazkov+blink, dstockwell, eae+blinkwatch, Eric Willigers, eustas+blink_chromium.org, kozyatinskiy+blink_chromium.org, loislo+blink_chromium.org, lushnikov+blink_chromium.org, malch+blink_chromium.org, Mike Lawther (Google), pfeldman+blink_chromium.org, rjwright, rwlbuis, sergeyv+blink_chromium.org, shans, sof, Steve Block, Timothy Loh, vivekg_samsung, vivekg, yurys+blink_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

rAF: Introduce FrameRequestCallbackCollection for managing rAF callbacks. Rename the rAF callback from RequestAnimationFrameCallback to FrameRequestCallback, since that's what it's called in the spec (https://html.spec.whatwg.org/multipage/browsers.html#the-window-object). Split out the functionality related to managing the rAF callbacks into a separate FrameRequestCallbackCollection so that it can be used by compositor-workers. BUG=436952 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192918

Patch Set 1 #

Total comments: 2

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : sort #

Patch Set 5 : . #

Total comments: 6

Patch Set 6 : . #

Total comments: 4

Patch Set 7 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -185 lines) Patch
M Source/core/core.gypi View 1 2 3 4 5 6 4 chunks +4 lines, -2 lines 0 comments Download
M Source/core/dom/Document.h View 1 2 3 4 5 6 3 chunks +2 lines, -2 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 4 5 6 3 chunks +2 lines, -2 lines 0 comments Download
A + Source/core/dom/FrameRequestCallback.h View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
A + Source/core/dom/FrameRequestCallback.idl View 1 2 1 chunk +1 line, -1 line 0 comments Download
A Source/core/dom/FrameRequestCallbackCollection.h View 1 2 3 4 5 6 1 chunk +40 lines, -0 lines 0 comments Download
A Source/core/dom/FrameRequestCallbackCollection.cpp View 1 2 1 chunk +85 lines, -0 lines 0 comments Download
D Source/core/dom/RequestAnimationFrameCallback.h View 1 2 1 chunk +0 lines, -51 lines 0 comments Download
D Source/core/dom/RequestAnimationFrameCallback.idl View 1 2 1 chunk +0 lines, -35 lines 0 comments Download
M Source/core/dom/ScriptedAnimationController.h View 1 2 3 4 chunks +4 lines, -7 lines 0 comments Download
M Source/core/dom/ScriptedAnimationController.cpp View 1 2 3 4 5 6 7 chunks +9 lines, -53 lines 0 comments Download
M Source/core/frame/DOMWindow.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/frame/LocalDOMWindow.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/frame/LocalDOMWindow.cpp View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/frame/RemoteDOMWindow.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/frame/RemoteDOMWindow.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/frame/Window.idl View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/inspector/InspectorDOMDebuggerAgent.h View 2 chunks +3 lines, -4 lines 0 comments Download
M Source/core/inspector/InspectorDOMDebuggerAgent.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/inspector/InspectorInstrumentation.idl View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/inspector/InspectorTraceEvents.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/inspector/InspectorTraceEvents.cpp View 1 2 3 4 5 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (5 generated)
sadrul
dgozman@chromium.org: Please review changes in inspector/ esprehn@chromium.org: Please review changes in dom/
5 years, 8 months ago (2015-03-30 18:23:31 UTC) #2
sadrul
This is used for CompositorWorker in https://codereview.chromium.org/1047783002 (it's pretty small. Let me know if you ...
5 years, 8 months ago (2015-03-30 18:25:00 UTC) #3
esprehn
Compositor worker doesn't call this thing requestAnimationFrame though? https://codereview.chromium.org/1043903003/diff/1/Source/core/dom/RequestAnimationFrameCallbackCollection.h File Source/core/dom/RequestAnimationFrameCallbackCollection.h (right): https://codereview.chromium.org/1043903003/diff/1/Source/core/dom/RequestAnimationFrameCallbackCollection.h#newcode15 Source/core/dom/RequestAnimationFrameCallbackCollection.h:15: class ...
5 years, 8 months ago (2015-03-30 18:36:38 UTC) #4
sadrul
On 2015/03/30 18:36:38, esprehn wrote: > Compositor worker doesn't call this thing requestAnimationFrame though? Indeed. ...
5 years, 8 months ago (2015-03-30 18:40:47 UTC) #5
esprehn
On 2015/03/30 at 18:40:47, sadrul wrote: > On 2015/03/30 18:36:38, esprehn wrote: > > Compositor ...
5 years, 8 months ago (2015-03-30 18:44:59 UTC) #6
sadrul
On 2015/03/30 18:44:59, esprehn wrote: > On 2015/03/30 at 18:40:47, sadrul wrote: > > On ...
5 years, 8 months ago (2015-03-30 19:34:09 UTC) #8
dgozman
InspectorDOMDebugger looks good, over to caseq@ for InspectorTraceEvents. https://codereview.chromium.org/1043903003/diff/100001/Source/core/inspector/InspectorTraceEvents.cpp File Source/core/inspector/InspectorTraceEvents.cpp (right): https://codereview.chromium.org/1043903003/diff/100001/Source/core/inspector/InspectorTraceEvents.cpp#newcode429 Source/core/inspector/InspectorTraceEvents.cpp:429: PassRefPtr<TraceEvent::ConvertableToTraceFormat> ...
5 years, 8 months ago (2015-03-31 10:10:05 UTC) #10
caseq
https://codereview.chromium.org/1043903003/diff/100001/Source/core/dom/FrameRequestCallbackCollection.cpp File Source/core/dom/FrameRequestCallbackCollection.cpp (right): https://codereview.chromium.org/1043903003/diff/100001/Source/core/dom/FrameRequestCallbackCollection.cpp#newcode27 Source/core/dom/FrameRequestCallbackCollection.cpp:27: InspectorInstrumentation::didRequestAnimationFrame(m_context, id); Here and 2 other InspectorInstrumentation calls below: ...
5 years, 8 months ago (2015-03-31 10:27:42 UTC) #11
sadrul
https://codereview.chromium.org/1043903003/diff/100001/Source/core/dom/FrameRequestCallbackCollection.cpp File Source/core/dom/FrameRequestCallbackCollection.cpp (right): https://codereview.chromium.org/1043903003/diff/100001/Source/core/dom/FrameRequestCallbackCollection.cpp#newcode27 Source/core/dom/FrameRequestCallbackCollection.cpp:27: InspectorInstrumentation::didRequestAnimationFrame(m_context, id); On 2015/03/31 10:27:42, caseq wrote: > Here ...
5 years, 8 months ago (2015-03-31 12:39:41 UTC) #12
caseq
On 2015/03/31 12:39:41, sadrul wrote: > https://codereview.chromium.org/1043903003/diff/100001/Source/core/dom/FrameRequestCallbackCollection.cpp > File Source/core/dom/FrameRequestCallbackCollection.cpp (right): > > https://codereview.chromium.org/1043903003/diff/100001/Source/core/dom/FrameRequestCallbackCollection.cpp#newcode27 > ...
5 years, 8 months ago (2015-03-31 13:25:32 UTC) #13
sadrul
https://codereview.chromium.org/1043903003/diff/100001/Source/core/inspector/InspectorTraceEvents.cpp File Source/core/inspector/InspectorTraceEvents.cpp (right): https://codereview.chromium.org/1043903003/diff/100001/Source/core/inspector/InspectorTraceEvents.cpp#newcode429 Source/core/inspector/InspectorTraceEvents.cpp:429: PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorAnimationFrameEvent::data(ExecutionContext* context, int callbackId) On 2015/03/31 12:39:41, sadrul ...
5 years, 8 months ago (2015-03-31 16:40:27 UTC) #14
esprehn
lgtm w/ empty -> isEmpty fixed. btw in the future I'd do renames and code ...
5 years, 8 months ago (2015-04-01 05:03:25 UTC) #15
sadrul
https://codereview.chromium.org/1043903003/diff/120001/Source/core/dom/FrameRequestCallbackCollection.h File Source/core/dom/FrameRequestCallbackCollection.h (right): https://codereview.chromium.org/1043903003/diff/120001/Source/core/dom/FrameRequestCallbackCollection.h#newcode24 Source/core/dom/FrameRequestCallbackCollection.h:24: bool empty() const { return !m_callbacks.size(); } On 2015/04/01 ...
5 years, 8 months ago (2015-04-01 06:38:53 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1043903003/140001
5 years, 8 months ago (2015-04-01 06:42:32 UTC) #19
commit-bot: I haz the power
5 years, 8 months ago (2015-04-01 11:18:13 UTC) #20
Message was sent while issue was closed.
Committed patchset #7 (id:140001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=192918

Powered by Google App Engine
This is Rietveld 408576698