Copy as Markdown

Other Tools

//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#ifndef PCompositorManagerParent_h
#define PCompositorManagerParent_h
#include "mozilla/layers/PCompositorManager.h"
#ifdef DEBUG
#include "prenv.h"
#endif // DEBUG
#include "mozilla/Tainting.h"
#include "mozilla/ipc/MessageChannel.h"
#include "mozilla/ipc/ProtocolUtils.h"
class nsIFile;
// Headers for things that cannot be forward declared
#include "ImageTypes.h"
#include "Units.h"
#include "gfxPoint.h"
#include "gfxTypes.h"
#include "mozilla/TimeStamp.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/IPCTypes.h"
#include "mozilla/ipc/SharedMemoryBasic.h"
#include "mozilla/layers/LayersMessageUtils.h"
#include "mozilla/layers/LayersTypes.h"
#include "mozilla/layers/SharedSurfacesMemoryReport.h"
#include "mozilla/layers/VideoBridgeUtils.h"
#include "mozilla/webrender/WebRenderTypes.h"
#include "nsRegion.h"
namespace mozilla {
namespace gfx {
class PCanvasManagerParent;
} // namespace gfx
} // namespace mozilla
namespace mozilla {
namespace gfx {
class PCanvasManagerChild;
} // namespace gfx
} // namespace mozilla
namespace mozilla {
namespace layers {
class PCompositorBridgeParent;
} // namespace layers
} // namespace mozilla
namespace mozilla {
namespace layers {
class PCompositorBridgeChild;
} // namespace layers
} // namespace mozilla
namespace mozilla {
namespace layers {
class PCompositorBridgeParent;
} // namespace layers
} // namespace mozilla
namespace mozilla {
struct null_t;
} // namespace mozilla
namespace mozilla {
namespace layers {
class PCompositorManagerParent :
public mozilla::ipc::IToplevelProtocol
{
private:
friend class ::mozilla::layers::PCompositorBridgeParent;
protected:
typedef mozilla::ipc::ActorHandle ActorHandle;
typedef ::mozilla::layers::BufferDescriptor BufferDescriptor;
typedef ::mozilla::ipc::ByteBuf ByteBuf;
typedef ::mozilla::CSSToLayoutDeviceScale CSSToLayoutDeviceScale;
typedef ::mozilla::gfx::ChromaSubsampling ChromaSubsampling;
typedef ::mozilla::gfx::ColorDepth ColorDepth;
typedef ::mozilla::gfx::ColorRange ColorRange;
typedef ::mozilla::gfx::ColorSpace2 ColorSpace2;
typedef ::mozilla::layers::CompositorBridgeOptions CompositorBridgeOptions;
typedef ::mozilla::layers::CompositorOptions CompositorOptions;
typedef ::mozilla::layers::ContentCompositorOptions ContentCompositorOptions;
typedef ::mozilla::layers::EGLImageDescriptor EGLImageDescriptor;
template<class FooSide> using Endpoint = mozilla::ipc::Endpoint<FooSide>;
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::layers::GpuProcessQueryId GpuProcessQueryId;
typedef ::mozilla::layers::GpuProcessTextureId GpuProcessTextureId;
typedef ::mozilla::ipc::SharedMemoryBasic::Handle Handle;
typedef ::mozilla::gfx::IntRect IntRect;
typedef ::mozilla::gfx::IntSize IntSize;
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::wr::MemoryReport MemoryReport;
typedef ::mozilla::gfx::PCanvasManagerChild PCanvasManagerChild;
typedef ::mozilla::gfx::PCanvasManagerParent PCanvasManagerParent;
typedef ::mozilla::layers::PCompositorBridgeChild PCompositorBridgeChild;
typedef ::mozilla::layers::PCompositorBridgeParent PCompositorBridgeParent;
typedef base::ProcessId ProcessId;
typedef mozilla::ipc::ProtocolId ProtocolId;
typedef ::mozilla::layers::RGBDescriptor RGBDescriptor;
typedef ::mozilla::layers::RemoteDecoderVideoSubDescriptor RemoteDecoderVideoSubDescriptor;
typedef ::mozilla::layers::RemoteTextureId RemoteTextureId;
typedef ::mozilla::layers::RemoteTextureOwnerId RemoteTextureOwnerId;
typedef mozilla::ipc::ResponseRejectReason ResponseRejectReason;
typedef ::mozilla::layers::SameProcessWidgetCompositorOptions SameProcessWidgetCompositorOptions;
typedef ::mozilla::layers::SharedSurfacesMemoryReport SharedSurfacesMemoryReport;
typedef ::mozilla::ipc::Shmem Shmem;
typedef ::mozilla::StereoMode StereoMode;
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::SurfaceDescriptorRemoteTexture SurfaceDescriptorRemoteTexture;
typedef ::mozilla::layers::SurfaceDescriptorShared SurfaceDescriptorShared;
typedef ::mozilla::layers::SurfaceDescriptorSharedGLTexture SurfaceDescriptorSharedGLTexture;
typedef ::mozilla::gfx::SurfaceFormat SurfaceFormat;
typedef ::mozilla::layers::SurfaceTextureDescriptor SurfaceTextureDescriptor;
typedef ::mozilla::TimeDuration TimeDuration;
template<class T> using UniquePtr = mozilla::UniquePtr<T>;
typedef ::mozilla::wr::WebRenderError WebRenderError;
typedef ::mozilla::layers::WidgetCompositorOptions WidgetCompositorOptions;
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 ::nsCString nsCString;
typedef ::nsIntRegion nsIntRegion;
typedef ::nsString nsString;
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;
public:
typedef std::function<void(const SharedSurfacesMemoryReport&)> ReportSharedSurfacesMemoryResolver;
typedef std::function<void(const MemoryReport&)> ReportMemoryResolver;
protected:
virtual mozilla::ipc::IPCResult
RecvPCompositorBridgeConstructor(
PCompositorBridgeParent* actor,
const CompositorBridgeOptions& options);
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 PCompositorManagerParent();
virtual ~PCompositorManagerParent();
protected:
void
ActorAlloc() final;
void
ActorDealloc() final;
public:
::base::ProcessId
OtherPid() const;
void
ManagedPCompositorBridgeParent(nsTArray<PCompositorBridgeParent*>& aArr) const;
const ManagedContainer<PCompositorBridgeParent>&
ManagedPCompositorBridgeParent() const;
uint32_t
AllManagedActorsCount() const override;
ManagedEndpoint<PCompositorBridgeChild>
OpenPCompositorBridgeEndpoint(PCompositorBridgeParent* aActor);
bool
BindPCompositorBridgeEndpoint(
ManagedEndpoint<PCompositorBridgeParent> aEndpoint,
PCompositorBridgeParent* aActor);
[[nodiscard]] bool
SendNotifyWebRenderError(const WebRenderError& error);
void
RemoveManagee(
int32_t aProtocolId,
IProtocol* aListener) override;
void
DeallocManagee(
int32_t aProtocolId,
IProtocol* aListener) override;
Result
OnMessageReceived(const Message& msg__) override;
Result
OnMessageReceived(
const Message& msg__,
UniquePtr<Message>& reply__) override;
void
DoomSubtree() override;
IProtocol*
PeekManagedActor() override;
private:
ManagedContainer<PCompositorBridgeParent> mManagedPCompositorBridgeParent;
};
} // namespace layers
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::layers::PCompositorManagerParent*>
{
typedef ::mozilla::layers::PCompositorManagerParent* paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
#endif // ifndef PCompositorManagerParent_h