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

Issue 317373007: Report correct touch hit rects for fullscreen HTML5 video on Android (Closed)

Created:
6 years, 6 months ago by Zeeshan Qureshi
Modified:
6 years, 6 months ago
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Report correct touch hit rects when RuntimeEnabledFeatures::overlayFullscreenVideoEnabled is true and have a touch handler on the document or body. We had an optimization in the cc touch hit rect calculation that if there was a handler on the document or body then we'd short circuit the computation and report a single rect at the root layer covering the whole page. Now when making an HTML5 video element fullscreen with this flag turned on the RenderLayerCompositor removes the root cc::layer and reattaches the video layer causing the compositor to think that there are no handlers registered. BUG=372314 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176071

Patch Set 1 #

Patch Set 2 : Rebase ToT #

Total comments: 1

Patch Set 3 : Share OverlayFullscreenVideo state #

Patch Set 4 : Start work on test #

Patch Set 5 : Add virtual test #

Total comments: 5

Patch Set 6 : Address comments #

Patch Set 7 : Update test expectations #

Total comments: 1

Patch Set 8 : Update description #

Messages

Total messages: 19 (0 generated)
Zeeshan Qureshi
Rick, can you do a first pass? Should we be adding a test for this ...
6 years, 6 months ago (2014-06-07 01:33:10 UTC) #1
abarth-chromium
On 2014/06/07 at 01:33:10, zeeshanq wrote: > Should we be adding a test for this ...
6 years, 6 months ago (2014-06-07 09:05:55 UTC) #2
abarth-chromium
https://codereview.chromium.org/317373007/diff/20001/Source/core/page/scrolling/ScrollingCoordinator.cpp File Source/core/page/scrolling/ScrollingCoordinator.cpp (right): https://codereview.chromium.org/317373007/diff/20001/Source/core/page/scrolling/ScrollingCoordinator.cpp#newcode797 Source/core/page/scrolling/ScrollingCoordinator.cpp:797: bool inFullscreenOnAndroid = RuntimeEnabledFeatures::overlayFullscreenVideoEnabled() && RenderLayerCompositor::findFullscreenVideoRenderer(*document); It's inefficient to ...
6 years, 6 months ago (2014-06-07 09:06:03 UTC) #3
Zeeshan Qureshi
Thanks Adam! I updated the CL to share state between the two. I still need ...
6 years, 6 months ago (2014-06-09 23:51:54 UTC) #4
Zeeshan Qureshi
The Android tests in fullscreen/ were timing out on my device so created a separate ...
6 years, 6 months ago (2014-06-10 19:19:13 UTC) #5
Rick Byers
I still need to review the tests, but this general approach seems OK to me. ...
6 years, 6 months ago (2014-06-10 20:02:24 UTC) #6
Rick Byers
https://codereview.chromium.org/317373007/diff/100001/LayoutTests/fast/events/touch/overlayfullscreenvideo/compositor-touch-hit-rects-fullscreen-video-controls-expected.txt File LayoutTests/fast/events/touch/overlayfullscreenvideo/compositor-touch-hit-rects-fullscreen-video-controls-expected.txt (right): https://codereview.chromium.org/317373007/diff/100001/LayoutTests/fast/events/touch/overlayfullscreenvideo/compositor-touch-hit-rects-fullscreen-video-controls-expected.txt#newcode1 LayoutTests/fast/events/touch/overlayfullscreenvideo/compositor-touch-hit-rects-fullscreen-video-controls-expected.txt:1: This test makes sure that touch hit rects are ...
6 years, 6 months ago (2014-06-10 21:39:57 UTC) #7
Zeeshan Qureshi
Rick, tried to address most of your comments.
6 years, 6 months ago (2014-06-11 23:31:40 UTC) #8
Rick Byers
Thanks, LGTM. +trchen from the overlay fullscreen video perspective. https://codereview.chromium.org/317373007/diff/180001/LayoutTests/fullscreen/compositor-touch-hit-rects-fullscreen-video-controls.html File LayoutTests/fullscreen/compositor-touch-hit-rects-fullscreen-video-controls.html (right): https://codereview.chromium.org/317373007/diff/180001/LayoutTests/fullscreen/compositor-touch-hit-rects-fullscreen-video-controls.html#newcode9 LayoutTests/fullscreen/compositor-touch-hit-rects-fullscreen-video-controls.html:9: ...
6 years, 6 months ago (2014-06-12 15:47:20 UTC) #9
trchen
lgtm too. Thanks you!
6 years, 6 months ago (2014-06-12 21:35:04 UTC) #10
Zeeshan Qureshi
The CQ bit was checked by zeeshanq@chromium.org
6 years, 6 months ago (2014-06-12 21:43:21 UTC) #11
Zeeshan Qureshi
Thanks!
6 years, 6 months ago (2014-06-12 21:43:35 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zeeshanq@chromium.org/317373007/200001
6 years, 6 months ago (2014-06-12 21:43:46 UTC) #13
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, 6 months ago (2014-06-12 22:54:09 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-13 00:04:03 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/12040)
6 years, 6 months ago (2014-06-13 00:04:04 UTC) #16
Zeeshan Qureshi
The CQ bit was checked by zeeshanq@chromium.org
6 years, 6 months ago (2014-06-13 00:05:19 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zeeshanq@chromium.org/317373007/200001
6 years, 6 months ago (2014-06-13 00:05:47 UTC) #18
commit-bot: I haz the power
6 years, 6 months ago (2014-06-13 01:08:33 UTC) #19
Message was sent while issue was closed.
Change committed as 176071

Powered by Google App Engine
This is Rietveld 408576698