Closed Bug 1151937 Opened 9 years ago Closed 9 years ago

[webvr] remove silly uuid-like things

Categories

(Core :: DOM: Device Interfaces, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: vlad, Assigned: vlad)

Details

Attachments

(1 file)

Attached patch remove UUIDsSplinter Review
WebVR deviceId/hardwareId were uuid-like things that shouldn't be.  Make them into simple integers.
Attachment #8589197 - Flags: review?(jmuizelaar)
Comment on attachment 8589197 [details] [diff] [review]
remove UUIDs

Review of attachment 8589197 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/vr/VRDevice.cpp
@@ +278,5 @@
>      , mTracking(false)
>    {
> +
> +    uint64_t hmdid = aHMD->GetDeviceIndex() << 8;
> +    uint64_t devid = hmdid | 0x01;

Might be worth having a comment connecting the 0x1 with the 0 above (perhaps even a define or enum). I had to look to figure out what was going on.
Attachment #8589197 - Flags: review?(jmuizelaar) → review+
https://hg.mozilla.org/mozilla-central/rev/deb77afd348f
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: