//
// Automatically generated by ipdlc.
// Edit at your own risk
//

#ifndef PCanvas_h
#define PCanvas_h

#include "mozilla/Attributes.h"
#include "IPCMessageStart.h"
#include "mozilla/RefPtr.h"
#include "nsString.h"
#include "nsTArray.h"
#include "nsTHashtable.h"
#include "mozilla/MozPromise.h"
#include "mozilla/OperatorNewExtensions.h"
#include "mozilla/UniquePtr.h"
#include "mozilla/ipc/ByteBuf.h"
#include "mozilla/ipc/FileDescriptor.h"
#include "mozilla/ipc/IPCForwards.h"
#include "mozilla/ipc/Shmem.h"

namespace mozilla {
namespace layers {
class PCanvasParent;
} // namespace layers
} // namespace mozilla
namespace mozilla {
namespace layers {
class PCanvasChild;
} // namespace layers
} // namespace mozilla

//-----------------------------------------------------------------------------
// Code common to PCanvasChild and PCanvasParent
//
namespace mozilla {
namespace layers {
namespace PCanvas {

nsresult
CreateEndpoints(
        mozilla::ipc::EndpointProcInfo aParentDestInfo,
        mozilla::ipc::EndpointProcInfo aChildDestInfo,
        mozilla::ipc::Endpoint<::mozilla::layers::PCanvasParent>* aParent,
        mozilla::ipc::Endpoint<::mozilla::layers::PCanvasChild>* aChild);

enum MessageType {
    PCanvasStart = PCanvasMsgStart << 16,
    Msg_InitTranslator__ID,
    Msg_RestartTranslation__ID,
    Msg_AddBuffer__ID,
    Msg_SetDataSurfaceBuffer__ID,
    Msg_ClearCachedResources__ID,
    Msg_DropFreeBuffersWhenDormant__ID,
    Msg_SnapshotExternalCanvas__ID,
    Msg___delete____ID,
    Reply___delete____ID,
    Msg_NotifyDeviceReset__ID,
    Msg_Deactivate__ID,
    Msg_BlockCanvas__ID,
    Msg_NotifyRequiresRefresh__ID,
    Msg_SnapshotShmem__ID,
    Reply_SnapshotShmem__ID,
    Msg_NotifyTextureDestruction__ID,
    PCanvasEnd
};

mozilla::UniquePtr<IPC::Message>
Msg_InitTranslator(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_RestartTranslation(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_AddBuffer(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_SetDataSurfaceBuffer(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_ClearCachedResources(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_DropFreeBuffersWhenDormant(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_SnapshotExternalCanvas(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg___delete__(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply___delete__(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_NotifyDeviceReset(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_Deactivate(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_BlockCanvas(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_NotifyRequiresRefresh(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_SnapshotShmem(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply_SnapshotShmem(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_NotifyTextureDestruction(IPC::Message::routeid_t routingId);



} // namespace PCanvas
} // namespace layers
} // namespace mozilla

#endif // ifndef PCanvas_h
