Copy as Markdown

Other Tools

//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#ifndef PWebGLChild_h
#define PWebGLChild_h
#include "mozilla/dom/PWebGL.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 "mozilla/dom/WebGLIpdl.h"
#include "mozilla/ipc/IPCCore.h"
#include "mozilla/layers/LayersTypes.h"
#include "string"
namespace mozilla {
namespace gfx {
class PCanvasManagerChild;
} // namespace gfx
} // namespace mozilla
namespace mozilla {
namespace gfx {
class PCanvasManagerParent;
} // namespace gfx
} // namespace mozilla
namespace mozilla {
namespace gfx {
class PCanvasManagerChild;
} // namespace gfx
} // namespace mozilla
namespace mozilla {
namespace ipc {
class BigBuffer;
} // namespace ipc
} // namespace mozilla
namespace mozilla {
namespace dom {
class PWebGLChild :
public mozilla::ipc::IRefCountedProtocol
{
private:
friend class ::mozilla::gfx::PCanvasManagerChild;
protected:
typedef mozilla::ipc::ActorHandle ActorHandle;
typedef ::mozilla::ipc::BigBuffer BigBuffer;
typedef ::mozilla::ipc::ByteBuf ByteBuf;
typedef ::mozilla::webgl::CompileResult CompileResult;
typedef ::mozilla::webgl::ContextLossReason ContextLossReason;
template<class FooSide> using Endpoint = mozilla::ipc::Endpoint<FooSide>;
typedef ::mozilla::ipc::FileDescriptor FileDescriptor;
typedef ::mozilla::webgl::FrontBufferSnapshotIpc FrontBufferSnapshotIpc;
typedef ::mozilla::webgl::GetUniformData GetUniformData;
typedef ::mozilla::webgl::InitContextDesc InitContextDesc;
typedef ::mozilla::webgl::InitContextResult InitContextResult;
typedef ::mozilla::webgl::Int32Vector Int32Vector;
typedef ::mozilla::webgl::LinkResult LinkResult;
template<class FooSide> using ManagedEndpoint = mozilla::ipc::ManagedEndpoint<FooSide>;
typedef ::mozilla::webgl::OpaqueFramebufferOptions OpaqueFramebufferOptions;
typedef ::mozilla::gfx::PCanvasManagerChild PCanvasManagerChild;
typedef ::mozilla::gfx::PCanvasManagerParent PCanvasManagerParent;
typedef ::mozilla::webgl::PackingInfo PackingInfo;
typedef base::ProcessId ProcessId;
typedef mozilla::ipc::ProtocolId ProtocolId;
typedef ::mozilla::dom::ReadPixelsBuffer ReadPixelsBuffer;
typedef ::mozilla::webgl::ReadPixelsDesc ReadPixelsDesc;
typedef ::mozilla::webgl::ReadPixelsResultIpc ReadPixelsResultIpc;
typedef ::mozilla::layers::RemoteTextureOwnerId RemoteTextureOwnerId;
typedef ::mozilla::layers::RemoteTextureTxnId RemoteTextureTxnId;
typedef ::mozilla::layers::RemoteTextureTxnType RemoteTextureTxnType;
typedef mozilla::ipc::ResponseRejectReason ResponseRejectReason;
typedef ::mozilla::webgl::ShaderPrecisionFormat ShaderPrecisionFormat;
typedef ::mozilla::ipc::Shmem Shmem;
typedef ::mozilla::layers::SurfaceDescriptor SurfaceDescriptor;
typedef ::mozilla::webgl::TexUnpackBlobDesc TexUnpackBlobDesc;
template<class T> using UniquePtr = mozilla::UniquePtr<T>;
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 ::nsString nsString;
typedef ::nsresult nsresult;
typedef ::std::string string;
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::uvec2 uvec2;
typedef ::mozilla::uvec3 uvec3;
typedef ::mozilla::void_t void_t;
public:
typedef MozPromise<void_t, ResponseRejectReason, true> PingPromise;
protected:
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 PWebGLChild();
virtual ~PWebGLChild();
protected:
void
ActorAlloc() final;
void
ActorDealloc() final;
public:
::base::ProcessId
OtherPid() const;
PCanvasManagerChild*
Manager() const;
uint32_t
AllManagedActorsCount() const override;
bool
SendInitialize(
const InitContextDesc& desc,
InitContextResult* res);
static bool
Send__delete__(PWebGLChild* actor);
bool
SendWaitForTxn(
const RemoteTextureOwnerId& ownerId,
const RemoteTextureTxnType& txnType,
const RemoteTextureTxnId& txnId);
bool
SendDispatchCommands(
BigBuffer&& commands,
const uint64_t& size);
void
SendPing(
mozilla::ipc::ResolveCallback<void_t>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<PingPromise>
SendPing();
bool
SendSyncPing();
bool
SendTexImage(
const uint32_t& level,
const uint32_t& respecFormat,
const uvec3& offset,
const PackingInfo& pi,
TexUnpackBlobDesc&& src);
bool
SendGetBufferSubData(
const uint32_t& target,
const uint64_t& srcByteOffset,
const uint64_t& byteSize,
Shmem* ret);
bool
SendGetFrontBufferSnapshot(FrontBufferSnapshotIpc* ret);
bool
SendReadPixels(
const ReadPixelsDesc& desc,
const ReadPixelsBuffer& buffer,
ReadPixelsResultIpc* ret);
bool
SendCheckFramebufferStatus(
const uint32_t& target,
uint32_t* ret);
bool
SendClientWaitSync(
const uint64_t& id,
const uint32_t& flags,
const uint64_t& timeout,
uint32_t* ret);
bool
SendCreateOpaqueFramebuffer(
const uint64_t& id,
const OpaqueFramebufferOptions& options,
bool* ret);
bool
SendDrawingBufferSize(uvec2* ret);
bool
SendFinish();
bool
SendGetBufferParameter(
const uint32_t& target,
const uint32_t& pname,
mozilla::Maybe<double>* ret);
bool
SendGetCompileResult(
const uint64_t& id,
CompileResult* ret);
bool
SendGetError(uint32_t* ret);
bool
SendGetFragDataLocation(
const uint64_t& id,
const string& name,
int32_t* ret);
bool
SendGetFramebufferAttachmentParameter(
const uint64_t& id,
const uint32_t& attachment,
const uint32_t& pname,
mozilla::Maybe<double>* ret);
bool
SendGetFrontBuffer(
const uint64_t& fb,
const bool& vr,
mozilla::Maybe<SurfaceDescriptor>* ret);
bool
SendGetIndexedParameter(
const uint32_t& target,
const uint32_t& index,
mozilla::Maybe<double>* ret);
bool
SendGetInternalformatParameter(
const uint32_t& target,
const uint32_t& internalFormat,
const uint32_t& pname,
mozilla::Maybe<Int32Vector>* ret);
bool
SendGetLinkResult(
const uint64_t& id,
LinkResult* ret);
bool
SendGetNumber(
const uint32_t& pname,
mozilla::Maybe<double>* ret);
bool
SendGetQueryParameter(
const uint64_t& id,
const uint32_t& pname,
mozilla::Maybe<double>* ret);
bool
SendGetRenderbufferParameter(
const uint64_t& id,
const uint32_t& pname,
mozilla::Maybe<double>* ret);
bool
SendGetSamplerParameter(
const uint64_t& id,
const uint32_t& pname,
mozilla::Maybe<double>* ret);
bool
SendGetShaderPrecisionFormat(
const uint32_t& shaderType,
const uint32_t& precisionType,
mozilla::Maybe<ShaderPrecisionFormat>* ret);
bool
SendGetString(
const uint32_t& pname,
mozilla::Maybe<string>* ret);
bool
SendGetTexParameter(
const uint64_t& id,
const uint32_t& pname,
mozilla::Maybe<double>* ret);
bool
SendGetUniform(
const uint64_t& id,
const uint32_t& loc,
GetUniformData* ret);
bool
SendGetVertexAttrib(
const uint32_t& index,
const uint32_t& pname,
mozilla::Maybe<double>* ret);
bool
SendOnMemoryPressure();
bool
SendValidateProgram(
const uint64_t& id,
bool* ret);
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:
bool mAwaitingManagedEndpointBind = false;
};
} // namespace dom
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::dom::PWebGLChild*>
{
typedef ::mozilla::dom::PWebGLChild* paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
#endif // ifndef PWebGLChild_h