Bug 1346926 - Make PVRManager::SetHaveEventListener async draft
authorKearwood Gilbert <kgilbert@mozilla.com>
Tue, 21 Mar 2017 13:21:17 -0700
changeset 502467 1e7f6e653870a15b8e454fbaa6e07461d769e50b
parent 502328 9fb5e850ab7ab0b2b90640c604f66038407b411d
child 550163 7f0b033fa0ba03951d169caef83cce89a94db969
push id50285
push userbmo:kgilbert@mozilla.com
push dateTue, 21 Mar 2017 20:22:35 +0000
bugs1346926
milestone55.0a1
Bug 1346926 - Make PVRManager::SetHaveEventListener async - There appears to be no issues with simply changing SetHaveEventListener from sync to async. MozReview-Commit-ID: 3LKgDx9AZnm
gfx/vr/ipc/PVRManager.ipdl
ipc/ipdl/sync-messages.ini
--- a/gfx/vr/ipc/PVRManager.ipdl
+++ b/gfx/vr/ipc/PVRManager.ipdl
@@ -45,17 +45,17 @@ parent:
   // asynchronously to children via UpdateDisplayInfo.
   async RefreshDisplays();
 
   // Reset the sensor of the display identified by aDisplayID so that the current
   // sensor state is the "Zero" position.
   async ResetSensor(uint32_t aDisplayID);
 
   sync GetSensorState(uint32_t aDisplayID) returns(VRHMDSensorState aState);
-  sync SetHaveEventListener(bool aHaveEventListener);
+  async SetHaveEventListener(bool aHaveEventListener);
 
   async ControllerListenerAdded();
   async ControllerListenerRemoved();
   async CreateVRTestSystem();
   async CreateVRServiceTestDisplay(nsCString aID, uint32_t aPromiseID);
   async CreateVRServiceTestController(nsCString aID, uint32_t aPromiseID);
   async SetDisplayInfoToMockDisplay(uint32_t aDeviceID, VRDisplayInfo aDisplayInfo);
   async SetSensorStateToMockDisplay(uint32_t aDeviceID, VRHMDSensorState aSensorState);
--- a/ipc/ipdl/sync-messages.ini
+++ b/ipc/ipdl/sync-messages.ini
@@ -946,18 +946,16 @@ description =
 [PWebRenderBridge::DeleteImage]
 description =
 [PWebRenderBridge::DPSyncEnd]
 description =
 [PWebRenderBridge::DPGetSnapshot]
 description =
 [PVRManager::GetSensorState]
 description =
-[PVRManager::SetHaveEventListener]
-description =
 [PHal::GetCurrentBatteryInformation]
 description =
 [PHal::GetCurrentNetworkInformation]
 description =
 [PHal::GetScreenEnabled]
 description =
 [PHal::GetKeyLightEnabled]
 description =