Skip to content

Commit

Permalink
Bug 1289211 - Rename InfallibleTArray to nsTArray in gfx/vr/ r=kip
Browse files Browse the repository at this point in the history
Differential Revision: https://phabricator.services.mozilla.com/D36956

--HG--
extra : moz-landing-system : lando
  • Loading branch information
brennie committed Jul 10, 2019
1 parent 06f829c commit 420c8e8
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion gfx/vr/VRManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ void VRManager::StopVRNavigation(const uint32_t& aDisplayID,

#if !defined(MOZ_WIDGET_ANDROID)

bool VRManager::RunPuppet(const InfallibleTArray<uint64_t>& aBuffer,
bool VRManager::RunPuppet(const nsTArray<uint64_t>& aBuffer,
VRManagerParent* aManagerParent) {
if (!StaticPrefs::dom_vr_puppet_enabled()) {
// Sanity check to ensure that a compromised content process
Expand Down
2 changes: 1 addition & 1 deletion gfx/vr/VRManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class VRManager {
const TimeDuration& aTimeout);
void Shutdown();
#if !defined(MOZ_WIDGET_ANDROID)
bool RunPuppet(const InfallibleTArray<uint64_t>& aBuffer,
bool RunPuppet(const nsTArray<uint64_t>& aBuffer,
VRManagerParent* aManagerParent);
void ResetPuppet(VRManagerParent* aManagerParent);
#endif
Expand Down
2 changes: 1 addition & 1 deletion gfx/vr/VRPuppetCommandBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ VRPuppetCommandBuffer::~VRPuppetCommandBuffer() {
MOZ_COUNT_DTOR(VRPuppetCommandBuffer);
}

void VRPuppetCommandBuffer::Submit(const InfallibleTArray<uint64_t>& aBuffer) {
void VRPuppetCommandBuffer::Submit(const nsTArray<uint64_t>& aBuffer) {
MutexAutoLock lock(mMutex);
mBuffer.AppendElements(aBuffer);
mEnded = false;
Expand Down
2 changes: 1 addition & 1 deletion gfx/vr/VRPuppetCommandBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class VRPuppetCommandBuffer {
static VRPuppetCommandBuffer& Get();

// Interface to VRTestSystem
void Submit(const InfallibleTArray<uint64_t>& aBuffer);
void Submit(const nsTArray<uint64_t>& aBuffer);
void Reset();
bool HasEnded();

Expand Down
2 changes: 1 addition & 1 deletion gfx/vr/VRServiceHost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ void VRServiceHost::ShutdownVRProcess() {

#endif // !defined(MOZ_WIDGET_ANDROID)

void VRServiceHost::PuppetSubmit(const InfallibleTArray<uint64_t>& aBuffer) {
void VRServiceHost::PuppetSubmit(const nsTArray<uint64_t>& aBuffer) {
if (mVRProcessEnabled) {
mPuppetActive = true;
// TODO - Implement VR puppet support for VR process (Bug 1555188)
Expand Down
2 changes: 1 addition & 1 deletion gfx/vr/VRServiceHost.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class VRServiceHost {
void CreateService(volatile VRExternalShmem* aShmem);
#endif

void PuppetSubmit(const InfallibleTArray<uint64_t>& aBuffer);
void PuppetSubmit(const nsTArray<uint64_t>& aBuffer);
void PuppetReset();
bool PuppetHasEnded();

Expand Down
2 changes: 1 addition & 1 deletion gfx/vr/ipc/VRManagerChild.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ mozilla::ipc::IPCResult VRManagerChild::RecvNotifyPuppetResetComplete() {
return IPC_OK();
}

void VRManagerChild::RunPuppet(const InfallibleTArray<uint64_t>& aBuffer,
void VRManagerChild::RunPuppet(const nsTArray<uint64_t>& aBuffer,
dom::Promise* aPromise, ErrorResult& aRv) {
if (mRunPuppetPromise) {
// We only allow one puppet script to run simultaneously.
Expand Down
4 changes: 2 additions & 2 deletions gfx/vr/ipc/VRManagerChild.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ class VRManagerChild : public PVRManagerChild {

virtual void HandleFatalError(const char* aMsg) const override;

void RunPuppet(const InfallibleTArray<uint64_t>& aBuffer,
dom::Promise* aPromise, ErrorResult& aRv);
void RunPuppet(const nsTArray<uint64_t>& aBuffer, dom::Promise* aPromise,
ErrorResult& aRv);
void ResetPuppet(dom::Promise* aPromise, ErrorResult& aRv);

protected:
Expand Down
2 changes: 1 addition & 1 deletion gfx/vr/ipc/VRManagerParent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ mozilla::ipc::IPCResult VRManagerParent::RecvControllerListenerRemoved() {
}

mozilla::ipc::IPCResult VRManagerParent::RecvRunPuppet(
const InfallibleTArray<uint64_t>& aBuffer) {
const nsTArray<uint64_t>& aBuffer) {
#if defined(MOZ_WIDGET_ANDROID)
// Not yet implemented for Android / GeckoView
// See Bug 1555192
Expand Down
3 changes: 1 addition & 2 deletions gfx/vr/ipc/VRManagerParent.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ class VRManagerParent final : public PVRManagerParent {
mozilla::ipc::IPCResult RecvStartActivity();
mozilla::ipc::IPCResult RecvStopActivity();

mozilla::ipc::IPCResult RecvRunPuppet(
const InfallibleTArray<uint64_t>& aBuffer);
mozilla::ipc::IPCResult RecvRunPuppet(const nsTArray<uint64_t>& aBuffer);
mozilla::ipc::IPCResult RecvResetPuppet();

private:
Expand Down

0 comments on commit 420c8e8

Please sign in to comment.