author Daosheng Mu <>
Fri, 28 Dec 2018 22:09:44 +0000
changeset 509582 ec8667678f3a7fa4d6259b070a35a4c4a5c14209
parent 487587 2e16db6bbb2106bc2fde665626d0013020651623
child 512074 d3fc75eaf96015d7b5ec0ac88331d588ee0e6575
permissions -rw-r--r--
Bug 1430040 - Part 4: Make the parent process keep the OpenVR controller manifest info when VR process is enabled. r=kip Differential Revision:

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at */

using mozilla::TimeStamp from "mozilla/TimeStamp.h";
using mozilla::gfx::OpenVRControllerType from "gfxVR.h";

include GraphicsMessages;
include protocol PVRGPU;

namespace mozilla {
namespace gfx {

async protocol PVR
  async NewGPUVRManager(Endpoint<PVRGPUParent> endpoint);
  async Init(GfxPrefSetting[] prefs, GfxVarUpdate[] vars, DevicePrefs devicePrefs);
  async NotifyVsync(TimeStamp vsyncTimestamp);

  async UpdatePref(GfxPrefSetting pref);
  async UpdateVar(GfxVarUpdate var);
  async OpenVRControllerActionPathToVR(nsCString aPath);
  async OpenVRControllerManifestPathToVR(OpenVRControllerType aType, nsCString aPath);

  async OpenVRControllerActionPathToParent(nsCString aPath);
  async OpenVRControllerManifestPathToParent(OpenVRControllerType aType, nsCString aPath);

} // namespace gfx
} // namespace mozilla