Closed Bug 1204806 Opened 9 years ago Closed 8 years ago

[TV 2.6] Draw cursor while virtual mouse is connected to TV

Categories

(Core Graveyard :: Widget: Gonk, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.6+, b2g-v2.6 fixed)

RESOLVED FIXED
FxOS-S2 (10Jul)
blocking-b2g 2.6+
Tracking Status
b2g-v2.6 --- fixed

People

(Reporter: schien, Assigned: etsai)

References

Details

(Whiteboard: [ft:conndevices][partner-blocker][ETA: 6/15])

Attachments

(1 file)

We need to draw mouse cursor while hardware mouse or virtual mouse is connected to TV. HwComposer supports HWC_CURSOR_OVERLAY for drawing mouse cursor [1].

In the past APC project we drew mouse cursor in shell.html (see bug 937464) and it hurt the rendering performance due to constantly reflow. We should avoid this kind of approach on TV project.

@cjones also tried to render mouse cursor in Gecko for RPi on bug 1082892.

[1] http://androidxref.com/5.1.1_r6/xref/hardware/libhardware/include/hardware/hwcomposer.h#787
No longer blocks: TV_RemoteControl
Assignee: nobody → etsai
See Also: → 1203048
Whiteboard: [ft:conndevices][partner-blocker][partner-cherry-pick]
Whiteboard: [ft:conndevices][partner-blocker][partner-cherry-pick] → [ft:conndevices][partner-blocker][POVB]
On Gonk platform we already have a SpriteController to draw cursor/finger for mouse/touch input and the position can be controlled by PointerController::move. We only need to create a call path from EventShuttle to PointerController.
blocking-b2g: --- → 2.6?
Use this bug to implement cursor integration with bug 1270701. While it's in cursor mode and any client connects, show cursor; otherwise, hide cursor?
Status: NEW → ASSIGNED
Depends on: 1270701
Summary: Draw cursor while hardware mouse or virtual mouse is connected to TV → [TV 2.6] Draw cursor while virtual mouse is connected to TV
blocking-b2g: 2.6? → 2.6+
Whiteboard: [ft:conndevices][partner-blocker][POVB] → [ft:conndevices][partner-blocker]
Whiteboard: [ft:conndevices][partner-blocker] → [ft:conndevices][partner-blocker][ETA: 6/15]
Target Milestone: --- → FxOS-S2 (10Jul)
Comment on attachment 8758641 [details] [review]
Patch 1. Draw mouse cursor when remote user connected in cursor mode

Let's check the conversations on github.
Attachment #8758641 - Flags: review?(kikuo)
Comment on attachment 8758641 [details] [review]
Patch 1. Draw mouse cursor when remote user connected in cursor mode

Hi Kilik, based on conversation on PR, please help to review this patch.
Attachment #8758641 - Flags: review?(kikuo)
Comment on attachment 8758641 [details] [review]
Patch 1. Draw mouse cursor when remote user connected in cursor mode

Please file a follow-up to remove these cursor-related interfaces,variables out of nsIWidget.h to a separated utility instance. It could be used from namespace DOM. The implementation in that instance may be like [1],[2]. By transferring values through function signatures and posting Invalidate/ScheduleRender via a thread. That should be work.

Thanks.

[1] https://dxr.mozilla.org/mozilla-central/source/widget/windows/WinUtils.h
[2] https://dxr.mozilla.org/mozilla-central/source/widget/SharedWidgetUtils.cpp
Attachment #8758641 - Flags: review?(kikuo) → review+
Comment on attachment 8758641 [details] [review]
Patch 1. Draw mouse cursor when remote user connected in cursor mode

NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.

[Approval Request Comment]
Bug caused by (feature/regressing bug #): 1204806
User impact if declined: No mouse cursor when using remote control virtual touch pad
Testing completed: self-tested
Risk to taking this patch (and alternatives if risky): low
String or UUID changes made by this patch: N/A
Attachment #8758641 - Flags: approval-mozilla-b2g48?
Follow-up bug: 1277779
Comment on attachment 8758641 [details] [review]
Patch 1. Draw mouse cursor when remote user connected in cursor mode

Approve for TV 2.5
Attachment #8758641 - Flags: approval-mozilla-b2g48? → approval-mozilla-b2g48+
Hi Gary, please help to merge for TV 2.6, thanks.
Flags: needinfo?(xeonchen)
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: