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

Issue 1089523002: ScreenOrientationController: task-based dispatching of change events. (Closed)

Created:
5 years, 8 months ago by sof
Modified:
5 years, 8 months ago
CC:
alex clarke (OOO till 29th), blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

ScreenOrientationController: task-based dispatching of change events. Move ScreenOrientationController over to posting a task for dispatching its async change events. That is, no longer use a one-shot timer. R=mlamouri BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193927

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -28 lines) Patch
M LayoutTests/screen_orientation/orientationchange-event.html View 4 chunks +14 lines, -10 lines 0 comments Download
M LayoutTests/screen_orientation/page-visibility.html View 6 chunks +14 lines, -11 lines 0 comments Download
M Source/modules/screen_orientation/ScreenOrientationController.h View 2 chunks +2 lines, -3 lines 0 comments Download
M Source/modules/screen_orientation/ScreenOrientationController.cpp View 4 chunks +11 lines, -4 lines 1 comment Download

Messages

Total messages: 12 (3 generated)
sof
Please take a look. Motivated/spurred on by the scheduler team wanting to see less use ...
5 years, 8 months ago (2015-04-15 09:02:13 UTC) #2
alex clarke (OOO till 29th)
https://codereview.chromium.org/1089523002/diff/1/Source/modules/screen_orientation/ScreenOrientationController.cpp File Source/modules/screen_orientation/ScreenOrientationController.cpp (right): https://codereview.chromium.org/1089523002/diff/1/Source/modules/screen_orientation/ScreenOrientationController.cpp#newcode142 Source/modules/screen_orientation/ScreenOrientationController.cpp:142: document->postTask(FROM_HERE, createSameThreadTask(&ScreenOrientationController::dispatchChangeEvent, this)); FYI the blink scheduler team are ...
5 years, 8 months ago (2015-04-15 09:27:32 UTC) #4
sof
On 2015/04/15 09:27:32, alexclarke1 wrote: > https://codereview.chromium.org/1089523002/diff/1/Source/modules/screen_orientation/ScreenOrientationController.cpp > File Source/modules/screen_orientation/ScreenOrientationController.cpp (right): > > https://codereview.chromium.org/1089523002/diff/1/Source/modules/screen_orientation/ScreenOrientationController.cpp#newcode142 > ...
5 years, 8 months ago (2015-04-15 09:42:08 UTC) #5
mlamouri (slow - plz ping)
lgtm
5 years, 8 months ago (2015-04-16 10:44:25 UTC) #6
sof
On 2015/04/15 09:42:08, sof wrote: > On 2015/04/15 09:27:32, alexclarke1 wrote: > > > https://codereview.chromium.org/1089523002/diff/1/Source/modules/screen_orientation/ScreenOrientationController.cpp ...
5 years, 8 months ago (2015-04-17 06:57:14 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1089523002/1
5 years, 8 months ago (2015-04-17 06:57:47 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://src.chromium.org/viewvc/blink?view=rev&revision=193927
5 years, 8 months ago (2015-04-17 08:04:02 UTC) #10
tkent
Can you use Document::enqueueUniqueAnimationFrameEvent?
5 years, 8 months ago (2015-04-17 08:25:08 UTC) #11
sof
5 years, 8 months ago (2015-04-17 09:09:12 UTC) #12
Message was sent while issue was closed.
On 2015/04/17 08:25:08, tkent wrote:
> Can you use Document::enqueueUniqueAnimationFrameEvent?

I could, it would dispatch the change event via the animation controller's queue
just fine, I think (haven't tested.)

Its queue would be reused, but otherwise there's no reason to associate a
'change' simple event with delivery of animation-related events (which _may_
also be queued.) ?

Powered by Google App Engine
This is Rietveld 408576698