Copy as Markdown
Other Tools
//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#ifndef PVRManagerChild_h
#define PVRManagerChild_h
#include "mozilla/gfx/PVRManager.h"
#ifdef DEBUG
#include "prenv.h"
#endif // DEBUG
#include "mozilla/Tainting.h"
#include "mozilla/ipc/MessageChannel.h"
#include "mozilla/ipc/ProtocolUtils.h"
// Headers for things that cannot be forward declared
#include "ImageTypes.h"
#include "Units.h"
#include "gfxPoint.h"
#include "gfxTypes.h"
#include "moz_external_vr.h"
#include "mozilla/HalIPCUtils.h"
#include "mozilla/ServoStyleConsts.h"
#include "mozilla/TimeStamp.h"
#include "mozilla/WidgetUtils.h"
#include "mozilla/dom/GamepadBinding.h"
#include "mozilla/dom/GamepadHandle.h"
#include "mozilla/dom/GamepadLightIndicatorBinding.h"
#include "mozilla/dom/GamepadPoseState.h"
#include "mozilla/dom/GamepadTouchState.h"
#include "mozilla/gfx/2D.h"
#include "mozilla/gfx/FileHandleWrapper.h"
#include "mozilla/gfx/Matrix.h"
#include "mozilla/gfx/Point.h"
#include "mozilla/gfx/Rect.h"
#include "mozilla/gfx/Types.h"
#include "mozilla/ipc/CrossProcessSemaphore.h"
#include "mozilla/ipc/IPCTypes.h"
#include "mozilla/ipc/SharedMemory.h"
#include "mozilla/layers/CompositorTypes.h"
#include "mozilla/layers/LayersTypes.h"
#include "mozilla/layers/ScrollableLayerGuid.h"
#include "mozilla/layers/VideoBridgeUtils.h"
#include "mozilla/webrender/WebRenderTypes.h"
#include "nsCSSPropertyID.h"
#include "nsColor.h"
#include "nsCoord.h"
#include "nsRegion.h"
namespace mozilla {
namespace gfx {
class PVRLayerChild;
} // namespace gfx
} // namespace mozilla
namespace mozilla {
namespace gfx {
class PVRLayerParent;
} // namespace gfx
} // namespace mozilla
namespace mozilla {
namespace gfx {
class PVRLayerChild;
} // namespace gfx
} // namespace mozilla
namespace mozilla {
struct null_t;
} // namespace mozilla
namespace mozilla {
namespace gfx {
struct DeviceColor;
} // namespace gfx
} // namespace mozilla
struct nsRect;
struct nsPoint;
namespace mozilla {
class TimeStamp;
} // namespace mozilla
namespace mozilla {
namespace layers {
struct TextureInfo;
} // namespace layers
} // namespace mozilla
namespace mozilla {
struct void_t;
} // namespace mozilla
namespace mozilla {
namespace gfx {
struct VRFieldOfView;
} // namespace gfx
} // namespace mozilla
namespace mozilla {
namespace gfx {
struct VRDisplayInfo;
} // namespace gfx
} // namespace mozilla
namespace mozilla {
namespace gfx {
struct VRSensorUpdate;
} // namespace gfx
} // namespace mozilla
namespace mozilla {
namespace gfx {
struct VRHMDSensorState;
} // namespace gfx
} // namespace mozilla
namespace mozilla {
namespace gfx {
struct VRControllerInfo;
} // namespace gfx
} // namespace mozilla
namespace mozilla {
namespace gfx {
struct VRSubmitFrameResultInfo;
} // namespace gfx
} // namespace mozilla
namespace mozilla {
namespace gfx {
class PVRManagerChild :
public mozilla::ipc::IToplevelProtocol
{
private:
friend class ::mozilla::gfx::PVRLayerChild;
public:
static constexpr ::mozilla::ipc::ProtocolId kProtocolId = PVRManagerMsgStart;
protected:
typedef mozilla::ipc::ActorHandle ActorHandle;
typedef ::mozilla::layers::Animatable Animatable;
typedef ::mozilla::layers::Animation Animation;
typedef ::mozilla::layers::AnimationSegment AnimationSegment;
typedef ::mozilla::layers::AsyncParentMessageData AsyncParentMessageData;
typedef ::mozilla::layers::BufferDescriptor BufferDescriptor;
typedef ::mozilla::ipc::ByteBuf ByteBuf;
typedef ::mozilla::CSSCoord CSSCoord;
typedef ::mozilla::CSSPoint CSSPoint;
typedef ::mozilla::CSSRect CSSRect;
typedef ::mozilla::gfx::ChromaSubsampling ChromaSubsampling;
typedef ::mozilla::gfx::ColorDepth ColorDepth;
typedef ::mozilla::gfx::ColorRange ColorRange;
typedef ::mozilla::gfx::ColorSpace2 ColorSpace2;
typedef ::mozilla::layers::CompositableHandle CompositableHandle;
typedef ::mozilla::layers::CompositableOperation CompositableOperation;
typedef ::mozilla::layers::CompositableOperationDetail CompositableOperationDetail;
typedef ::mozilla::layers::CompositionPayload CompositionPayload;
typedef ::mozilla::layers::CompositorAnimations CompositorAnimations;
typedef ::mozilla::layers::CrossProcessSemaphoreDescriptor CrossProcessSemaphoreDescriptor;
typedef ::mozilla::CrossProcessSemaphoreHandle CrossProcessSemaphoreHandle;
typedef ::mozilla::gfx::DeviceColor DeviceColor;
typedef ::mozilla::layers::DiagnosticTypes DiagnosticTypes;
typedef ::mozilla::layers::EGLImageDescriptor EGLImageDescriptor;
template<class FooSide> using Endpoint = mozilla::ipc::Endpoint<FooSide>;
typedef ::mozilla::layers::EventRegionsOverride EventRegionsOverride;
typedef ::mozilla::wr::ExternalImageId ExternalImageId;
typedef ::mozilla::wr::ExternalImageSource ExternalImageSource;
typedef ::mozilla::gfx::FenceInfo FenceInfo;
typedef ::mozilla::ipc::FileDescriptor FileDescriptor;
typedef ::mozilla::gfx::FileHandleWrapper FileHandleWrapper;
typedef ::mozilla::dom::GamepadAdded GamepadAdded;
typedef ::mozilla::dom::GamepadAxisInformation GamepadAxisInformation;
typedef ::mozilla::dom::GamepadButtonInformation GamepadButtonInformation;
typedef ::mozilla::dom::GamepadChangeEvent GamepadChangeEvent;
typedef ::mozilla::dom::GamepadChangeEventBody GamepadChangeEventBody;
typedef ::mozilla::dom::GamepadHand GamepadHand;
typedef ::mozilla::dom::GamepadHandInformation GamepadHandInformation;
typedef ::mozilla::dom::GamepadHandle GamepadHandle;
typedef ::mozilla::dom::GamepadLightIndicatorType GamepadLightIndicatorType;
typedef ::mozilla::dom::GamepadLightIndicatorTypeInformation GamepadLightIndicatorTypeInformation;
typedef ::mozilla::dom::GamepadMappingType GamepadMappingType;
typedef ::mozilla::dom::GamepadPoseInformation GamepadPoseInformation;
typedef ::mozilla::dom::GamepadPoseState GamepadPoseState;
typedef ::mozilla::dom::GamepadRemoved GamepadRemoved;
typedef ::mozilla::dom::GamepadTouchInformation GamepadTouchInformation;
typedef ::mozilla::dom::GamepadTouchState GamepadTouchState;
typedef ::mozilla::gfx::Glyph Glyph;
typedef ::mozilla::layers::GpuProcessQueryId GpuProcessQueryId;
typedef ::mozilla::layers::GpuProcessTextureId GpuProcessTextureId;
typedef ::mozilla::ipc::SharedMemory::Handle Handle;
typedef ::mozilla::layers::ImageCompositeNotification ImageCompositeNotification;
typedef ::mozilla::gfx::IntPoint IntPoint;
typedef ::mozilla::gfx::IntRect IntRect;
typedef ::mozilla::gfx::IntSize IntSize;
typedef ::mozilla::layers::LayerColor LayerColor;
typedef ::mozilla::LayerCoord LayerCoord;
typedef ::mozilla::layers::LayerHandle LayerHandle;
typedef ::mozilla::LayerIntRect LayerIntRect;
typedef ::mozilla::LayerIntRegion LayerIntRegion;
typedef ::mozilla::LayerIntSize LayerIntSize;
typedef ::mozilla::LayerMargin LayerMargin;
typedef ::mozilla::LayerPoint LayerPoint;
typedef ::mozilla::LayerRect LayerRect;
typedef ::mozilla::LayerSize LayerSize;
typedef ::mozilla::layers::LayersBackend LayersBackend;
typedef ::mozilla::layers::LayersId LayersId;
typedef ::mozilla::LayoutDeviceIntRect LayoutDeviceIntRect;
typedef ::mozilla::LayoutDevicePoint LayoutDevicePoint;
typedef ::mozilla::LayoutDeviceRect LayoutDeviceRect;
typedef ::mozilla::LengthPercentage LengthPercentage;
template<class FooSide> using ManagedEndpoint = mozilla::ipc::ManagedEndpoint<FooSide>;
typedef ::mozilla::gfx::Matrix4x4 Matrix4x4;
typedef ::mozilla::layers::MaybeVideoBridgeSource MaybeVideoBridgeSource;
typedef ::mozilla::layers::MemoryOrShmem MemoryOrShmem;
typedef ::mozilla::layers::MotionPathData MotionPathData;
typedef ::mozilla::layers::OMTAValue OMTAValue;
typedef ::mozilla::layers::OpAttachAsyncCompositable OpAttachAsyncCompositable;
typedef ::mozilla::layers::OpAttachCompositable OpAttachCompositable;
typedef ::mozilla::layers::OpContentBufferSwap OpContentBufferSwap;
typedef ::mozilla::layers::OpDestroy OpDestroy;
typedef ::mozilla::layers::OpEnableRemoteTexturePushCallback OpEnableRemoteTexturePushCallback;
typedef ::mozilla::layers::OpNotifyNotUsed OpNotifyNotUsed;
typedef ::mozilla::layers::OpRemoveTexture OpRemoveTexture;
typedef ::mozilla::layers::OpUseRemoteTexture OpUseRemoteTexture;
typedef ::mozilla::layers::OpUseTexture OpUseTexture;
typedef ::mozilla::gfx::PVRLayerChild PVRLayerChild;
typedef ::mozilla::gfx::PVRLayerParent PVRLayerParent;
typedef ::mozilla::ParentLayerIntRect ParentLayerIntRect;
typedef ::mozilla::ParentLayerRect ParentLayerRect;
typedef ::mozilla::layers::PartialPrerenderData PartialPrerenderData;
typedef ::mozilla::gfx::Point Point;
typedef ::mozilla::gfx::Point3D Point3D;
typedef base::ProcessId ProcessId;
typedef mozilla::ipc::ProtocolId ProtocolId;
typedef ::mozilla::layers::RGBDescriptor RGBDescriptor;
typedef ::mozilla::layers::ReadLockDescriptor ReadLockDescriptor;
typedef ::mozilla::layers::RemoteDecoderVideoSubDescriptor RemoteDecoderVideoSubDescriptor;
typedef ::mozilla::layers::RemoteTextureId RemoteTextureId;
typedef ::mozilla::layers::RemoteTextureOwnerId RemoteTextureOwnerId;
typedef mozilla::ipc::ResponseRejectReason ResponseRejectReason;
typedef ::mozilla::gfx::SamplingFilter SamplingFilter;
typedef ::mozilla::layers::ScaleMode ScaleMode;
typedef ::mozilla::hal::ScreenOrientation ScreenOrientation;
typedef ::mozilla::ScreenRotation ScreenRotation;
typedef ::mozilla::layers::ScrollDirection ScrollDirection;
typedef ::mozilla::layers::ScrollTimelineOptions ScrollTimelineOptions;
typedef ::mozilla::ipc::Shmem Shmem;
typedef ::mozilla::SideBits SideBits;
typedef ::mozilla::StereoMode StereoMode;
typedef ::mozilla::StyleComputedTimingFunction StyleComputedTimingFunction;
typedef ::mozilla::StyleOffsetPath StyleOffsetPath;
typedef ::mozilla::StyleOffsetPosition StyleOffsetPosition;
typedef ::mozilla::StyleOffsetRotate StyleOffsetRotate;
typedef ::mozilla::StylePositionOrAuto StylePositionOrAuto;
typedef ::mozilla::StyleRotate StyleRotate;
typedef ::mozilla::StyleScale StyleScale;
typedef ::mozilla::StyleTransform StyleTransform;
typedef ::mozilla::StyleTranslate StyleTranslate;
typedef ::mozilla::layers::SurfaceDescriptor SurfaceDescriptor;
typedef ::mozilla::layers::SurfaceDescriptorAndroidHardwareBuffer SurfaceDescriptorAndroidHardwareBuffer;
typedef ::mozilla::layers::SurfaceDescriptorBuffer SurfaceDescriptorBuffer;
typedef ::mozilla::layers::SurfaceDescriptorD3D10 SurfaceDescriptorD3D10;
typedef ::mozilla::layers::SurfaceDescriptorDMABuf SurfaceDescriptorDMABuf;
typedef ::mozilla::layers::SurfaceDescriptorDXGIYCbCr SurfaceDescriptorDXGIYCbCr;
typedef ::mozilla::layers::SurfaceDescriptorDcompSurface SurfaceDescriptorDcompSurface;
typedef ::mozilla::layers::SurfaceDescriptorExternalImage SurfaceDescriptorExternalImage;
typedef ::mozilla::layers::SurfaceDescriptorGPUVideo SurfaceDescriptorGPUVideo;
typedef ::mozilla::layers::SurfaceDescriptorMacIOSurface SurfaceDescriptorMacIOSurface;
typedef ::mozilla::layers::SurfaceDescriptorRemoteDecoder SurfaceDescriptorRemoteDecoder;
typedef ::mozilla::layers::SurfaceDescriptorRemoteDecoderId SurfaceDescriptorRemoteDecoderId;
typedef ::mozilla::layers::SurfaceDescriptorRemoteTexture SurfaceDescriptorRemoteTexture;
typedef ::mozilla::layers::SurfaceDescriptorShared SurfaceDescriptorShared;
typedef ::mozilla::layers::SurfaceDescriptorSharedGLTexture SurfaceDescriptorSharedGLTexture;
typedef ::mozilla::gfx::SurfaceFormat SurfaceFormat;
typedef ::mozilla::layers::SurfaceTextureDescriptor SurfaceTextureDescriptor;
typedef ::mozilla::layers::TargetConfig TargetConfig;
typedef ::mozilla::layers::TextureFlags TextureFlags;
typedef ::mozilla::layers::TextureInfo TextureInfo;
typedef ::mozilla::TimeDuration TimeDuration;
typedef ::mozilla::TimeStamp TimeStamp;
typedef ::mozilla::layers::TimedTexture TimedTexture;
typedef ::mozilla::layers::TransactionId TransactionId;
typedef ::mozilla::gfx::TransferFunction TransferFunction;
typedef ::mozilla::layers::TransformData TransformData;
template<class T> using UniquePtr = mozilla::UniquePtr<T>;
typedef ::mozilla::layers::UntrustedShmemSection UntrustedShmemSection;
typedef ::mozilla::gfx::VRControllerInfo VRControllerInfo;
typedef ::mozilla::gfx::VRDisplayCapabilityFlags VRDisplayCapabilityFlags;
typedef ::mozilla::gfx::VRDisplayInfo VRDisplayInfo;
typedef ::mozilla::gfx::VRFieldOfView VRFieldOfView;
typedef ::mozilla::gfx::VRHMDSensorState VRHMDSensorState;
typedef ::mozilla::gfx::VRSensorUpdate VRSensorUpdate;
typedef ::mozilla::gfx::VRSubmitFrameResultInfo VRSubmitFrameResultInfo;
typedef ::mozilla::layers::ScrollableLayerGuid::ViewID ViewID;
typedef ::mozilla::WindowsHandle WindowsHandle;
typedef ::mozilla::layers::YCbCrDescriptor YCbCrDescriptor;
typedef ::mozilla::gfx::YUVColorSpace YUVColorSpace;
typedef ::gfxImageFormat gfxImageFormat;
typedef ::gfxPoint gfxPoint;
typedef ::int16_t int16_t;
typedef ::int32_t int32_t;
typedef ::int64_t int64_t;
typedef ::int8_t int8_t;
typedef ::intptr_t intptr_t;
typedef ::nsCSSPropertyID nsCSSPropertyID;
typedef ::nsCString nsCString;
typedef ::nsIntRegion nsIntRegion;
typedef ::nsPoint nsPoint;
typedef ::nsRect nsRect;
typedef ::nsString nsString;
typedef ::nscolor nscolor;
typedef ::nscoord nscoord;
typedef ::nsresult nsresult;
typedef ::mozilla::null_t null_t;
typedef ::uint16_t uint16_t;
typedef ::uint32_t uint32_t;
typedef ::uint64_t uint64_t;
typedef ::uint8_t uint8_t;
typedef ::uintptr_t uintptr_t;
typedef ::mozilla::void_t void_t;
protected:
virtual mozilla::ipc::IPCResult
Recv__delete__();
void
ProcessingError(
Result aCode,
const char* aReason) override;
bool
ShouldContinueFromReplyTimeout() override;
public:
typedef mozilla::ipc::IProtocol IProtocol;
typedef IPC::Message Message;
typedef base::ProcessHandle ProcessHandle;
typedef mozilla::ipc::MessageChannel MessageChannel;
typedef mozilla::ipc::SharedMemory SharedMemory;
public:
MOZ_IMPLICIT PVRManagerChild();
virtual ~PVRManagerChild();
protected:
void
ActorAlloc() final;
void
ActorDealloc() final;
public:
::base::ProcessId
OtherPid() const;
::GeckoChildID
OtherChildID() const;
::mozilla::ipc::EndpointProcInfo
OtherEndpointProcInfo() const;
void
ManagedPVRLayerChild(nsTArray<PVRLayerChild*>& aArr) const;
const ManagedContainer<PVRLayerChild>&
ManagedPVRLayerChild() const;
mozilla::Span<mozilla::ipc::ProtocolId const>
ManagedProtocolIds() const final;
UntypedManagedContainer*
GetManagedActors(mozilla::ipc::ProtocolId aProtocol) final;
ManagedEndpoint<PVRLayerParent>
OpenPVRLayerEndpoint(PVRLayerChild* aActor);
bool
BindPVRLayerEndpoint(
ManagedEndpoint<PVRLayerChild> aEndpoint,
PVRLayerChild* aActor);
PVRLayerChild*
SendPVRLayerConstructor(
const uint32_t& aDisplayID,
const uint32_t& aGroup);
PVRLayerChild*
SendPVRLayerConstructor(
PVRLayerChild* actor,
const uint32_t& aDisplayID,
const uint32_t& aGroup);
bool
SendDetectRuntimes();
bool
SendRefreshDisplays();
bool
SendSetGroupMask(
const uint32_t& aDisplayID,
const uint32_t& aGroupMask);
bool
SendSetHaveEventListener(const bool& aHaveEventListener);
bool
SendControllerListenerAdded();
bool
SendControllerListenerRemoved();
bool
SendVibrateHaptic(
const GamepadHandle& aGamepadHandle,
const uint32_t& aHapticIndex,
const double& aIntensity,
const double& aDuration,
const uint32_t& aPromiseID);
bool
SendStopVibrateHaptic(const GamepadHandle& aGamepadHandle);
bool
SendStartVRNavigation(const uint32_t& aDeviceID);
bool
SendStopVRNavigation(
const uint32_t& aDeviceID,
const TimeDuration& aDuration);
bool
SendStartActivity();
bool
SendStopActivity();
bool
SendRunPuppet(mozilla::Span<uint64_t const> buffer);
bool
SendResetPuppet();
void
DeallocManagee(
int32_t aProtocolId,
IProtocol* aListener) override;
Result
OnMessageReceived(const Message& msg__) override;
Result
OnMessageReceived(
const Message& msg__,
UniquePtr<Message>& reply__) override;
private:
ManagedContainer<PVRLayerChild> mManagedPVRLayerChild;
};
} // namespace gfx
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::gfx::PVRManagerChild*>
{
typedef ::mozilla::gfx::PVRManagerChild* paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
#endif // ifndef PVRManagerChild_h