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

Issue 346273008: Gamepad: make gamepad events play well with page visibility (Closed)

Created:
6 years, 6 months ago by kbalazs
Modified:
6 years, 5 months ago
CC:
blink-reviews, tkent
Base URL:
https://chromium.googlesource.com/chromium/blink.git@gamepad-vis
Project:
blink
Visibility:
Public.

Description

Gamepad: make gamepad events play well with page visibility This CL attempts to guarantee that we inform the page about every device change and do it without sending events while the page is hidden. For the first claim to be true we need to compare the current state with the state the had the page had seen the last time when it was visible. Note that the browser side might suspend the gamepad thread so simply queuing the events is not enough. R=bajones@chromium.org,abarth@chromium.org BUG=386846 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177874

Patch Set 1 #

Patch Set 2 : queueing #

Total comments: 2

Patch Set 3 : oilpan and other fixes #

Total comments: 2

Patch Set 4 : PersistentHeapDequeWillBeHeapDeque #

Unified diffs Side-by-side diffs Delta from patch set Stats (+227 lines, -5 lines) Patch
A LayoutTests/gamepad/page-visibility.html View 1 1 chunk +128 lines, -0 lines 0 comments Download
A LayoutTests/gamepad/page-visibility-expected.txt View 1 1 chunk +30 lines, -0 lines 0 comments Download
M Source/modules/gamepad/NavigatorGamepad.h View 1 2 3 4 chunks +7 lines, -0 lines 0 comments Download
M Source/modules/gamepad/NavigatorGamepad.cpp View 1 2 4 chunks +56 lines, -3 lines 0 comments Download
M Source/platform/AsyncMethodRunner.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M Source/platform/heap/Handle.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
kbalazs
6 years, 6 months ago (2014-06-23 23:35:35 UTC) #1
abarth-chromium
This looks like the wrong place to do this work. Do we need to do ...
6 years, 6 months ago (2014-06-24 02:17:48 UTC) #2
kbalazs
On 2014/06/24 02:17:48, abarth wrote: > This looks like the wrong place to do this ...
6 years, 6 months ago (2014-06-24 19:51:59 UTC) #3
abarth-chromium
Ok, that makes sense. It seems like there should be a better way to structure ...
6 years, 6 months ago (2014-06-24 19:59:26 UTC) #4
kbalazs
Some discussion from irc for reference: <kbalazs> hi abarth <abarth> kbalazs: hi <kbalazs> abarth: gamepad... ...
6 years, 6 months ago (2014-06-26 21:32:15 UTC) #5
kbalazs
I am still having trouble understanding how can I reach the goal of the CL ...
6 years, 6 months ago (2014-06-26 21:50:55 UTC) #6
abarth-chromium
The way I'd probably approach this problem is by changing the interface between Blink and ...
6 years, 6 months ago (2014-06-27 03:07:50 UTC) #7
kbalazs
On 2014/06/27 03:07:50, abarth wrote: > The way I'd probably approach this problem is by ...
6 years, 5 months ago (2014-06-27 18:51:42 UTC) #8
kbalazs
On 2014/06/27 18:51:42, kbalazs wrote: > On 2014/06/27 03:07:50, abarth wrote: > > The way ...
6 years, 5 months ago (2014-07-07 21:03:36 UTC) #9
kbalazs
PTAL
6 years, 5 months ago (2014-07-07 21:13:31 UTC) #10
abarth-chromium
This CL looks much better than the previous CL. One comment below about memory safety.. ...
6 years, 5 months ago (2014-07-07 22:11:04 UTC) #11
kbalazs
On 2014/07/07 22:11:04, abarth wrote: > This CL looks much better than the previous CL. ...
6 years, 5 months ago (2014-07-08 17:23:16 UTC) #12
kbalazs
https://codereview.chromium.org/346273008/diff/40001/Source/platform/AsyncMethodRunner.h File Source/platform/AsyncMethodRunner.h (right): https://codereview.chromium.org/346273008/diff/40001/Source/platform/AsyncMethodRunner.h#newcode78 Source/platform/AsyncMethodRunner.h:78: return; FYI I have added this to avoid special ...
6 years, 5 months ago (2014-07-08 21:01:20 UTC) #13
tkent
https://codereview.chromium.org/346273008/diff/40001/Source/modules/gamepad/NavigatorGamepad.h File Source/modules/gamepad/NavigatorGamepad.h (right): https://codereview.chromium.org/346273008/diff/40001/Source/modules/gamepad/NavigatorGamepad.h#newcode93 Source/modules/gamepad/NavigatorGamepad.h:93: WillBeHeapDeque<Member<Gamepad> > m_pendingEvents; NavigatorGamepad is not garbage-collected on trunk, ...
6 years, 5 months ago (2014-07-08 23:17:53 UTC) #14
abarth-chromium
LGTM I'm slightly skeptical about the changes to async method runner, but maybe it ok.
6 years, 5 months ago (2014-07-10 15:51:15 UTC) #15
kbalazs
The CQ bit was checked by b.kelemen@samsung.com
6 years, 5 months ago (2014-07-10 15:55:36 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/b.kelemen@samsung.com/346273008/60001
6 years, 5 months ago (2014-07-10 15:55:50 UTC) #17
haraken
LGTM from the oilpan perspective.
6 years, 5 months ago (2014-07-10 15:59:22 UTC) #18
abarth-chromium
The CQ bit was unchecked by abarth@chromium.org
6 years, 5 months ago (2014-07-10 16:02:40 UTC) #19
abarth-chromium
On second thought, can you add a counter to AsyncMethodRunner instead? That way we'll resume ...
6 years, 5 months ago (2014-07-10 16:03:11 UTC) #20
kbalazs
On 2014/07/10 16:03:11, abarth wrote: > On second thought, can you add a counter to ...
6 years, 5 months ago (2014-07-10 16:07:01 UTC) #21
kbalazs
The CQ bit was checked by b.kelemen@samsung.com
6 years, 5 months ago (2014-07-10 16:46:46 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/b.kelemen@samsung.com/346273008/60001
6 years, 5 months ago (2014-07-10 16:47:09 UTC) #23
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 5 months ago (2014-07-10 18:59:12 UTC) #24
commit-bot: I haz the power
Change committed as 177874
6 years, 5 months ago (2014-07-10 20:03:48 UTC) #25
falken
On 2014/07/10 20:03:48, I haz the power (commit-bot) wrote: > Change committed as 177874 The ...
6 years, 5 months ago (2014-07-11 01:59:29 UTC) #26
kbalazs
6 years, 5 months ago (2014-07-11 14:47:04 UTC) #27
Message was sent while issue was closed.
On 2014/07/11 01:59:29, falken wrote:
> On 2014/07/10 20:03:48, I haz the power (commit-bot) wrote:
> > Change committed as 177874
> 
> The added page-visibility.html layout test looks flaky (but mostly just on
> Oilpan?):
>
http://test-results.appspot.com/dashboards/flakiness_dashboard.html#group=%40...
> 
> It fails with:
> FAIL More gamepad events should have been received

Thanks. Do you think I should mark it as [ Failure Pass ] for the time being?
It's not clear to me what is the procedure when a test is flaky but never
actually red.

Powered by Google App Engine
This is Rietveld 408576698