diff --git a/gfx/vr/ipc/VRLayerChild.cpp b/gfx/vr/ipc/VRLayerChild.cpp index cffe9c1f1268..31840de5a4bf 100644 --- a/gfx/vr/ipc/VRLayerChild.cpp +++ b/gfx/vr/ipc/VRLayerChild.cpp @@ -21,7 +21,6 @@ VRLayerChild::VRLayerChild(uint32_t aVRDisplayID, VRManagerChild* aVRManagerChil , mShSurfClient(nullptr) , mFront(nullptr) { - MOZ_COUNT_CTOR(VRLayerChild); } VRLayerChild::~VRLayerChild() diff --git a/gfx/vr/ipc/VRLayerChild.h b/gfx/vr/ipc/VRLayerChild.h index df42dddac2b9..3533d3969082 100644 --- a/gfx/vr/ipc/VRLayerChild.h +++ b/gfx/vr/ipc/VRLayerChild.h @@ -29,7 +29,7 @@ class SurfaceFactory; namespace gfx { class VRLayerChild : public PVRLayerChild { - NS_INLINE_DECL_REFCOUNTING(VRLayerChild) + NS_INLINE_DECL_THREADSAFE_REFCOUNTING(VRLayerChild) public: VRLayerChild(uint32_t aVRDisplayID, VRManagerChild* aVRManagerChild); diff --git a/gfx/vr/ipc/VRLayerParent.cpp b/gfx/vr/ipc/VRLayerParent.cpp index 10c906949eda..083997161ca1 100644 --- a/gfx/vr/ipc/VRLayerParent.cpp +++ b/gfx/vr/ipc/VRLayerParent.cpp @@ -16,7 +16,6 @@ VRLayerParent::VRLayerParent(uint32_t aVRDisplayID, const Rect& aLeftEyeRect, co , mLeftEyeRect(aLeftEyeRect) , mRightEyeRect(aRightEyeRect) { - MOZ_COUNT_CTOR(VRLayerParent); } VRLayerParent::~VRLayerParent() diff --git a/gfx/vr/ipc/VRLayerParent.h b/gfx/vr/ipc/VRLayerParent.h index 1326af8687c5..11f52755cf3b 100644 --- a/gfx/vr/ipc/VRLayerParent.h +++ b/gfx/vr/ipc/VRLayerParent.h @@ -16,7 +16,7 @@ namespace mozilla { namespace gfx { class VRLayerParent : public PVRLayerParent { - NS_INLINE_DECL_REFCOUNTING(VRLayerParent) + NS_INLINE_DECL_THREADSAFE_REFCOUNTING(VRLayerParent) public: VRLayerParent(uint32_t aVRDisplayID, const Rect& aLeftEyeRect, const Rect& aRightEyeRect);