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

#ifndef PVRLayer_h
#define PVRLayer_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"
#include "mozilla/layers/LayersSurfaces.h"

namespace mozilla {
namespace gfx {
class PVRLayerParent;
} // namespace gfx
} // namespace mozilla
namespace mozilla {
namespace gfx {
class PVRLayerChild;
} // namespace gfx
} // namespace mozilla

//-----------------------------------------------------------------------------
// Code common to PVRLayerChild and PVRLayerParent
//
namespace mozilla {
namespace gfx {
namespace PVRLayer {

nsresult
CreateEndpoints(
        mozilla::ipc::EndpointProcInfo aParentDestInfo,
        mozilla::ipc::EndpointProcInfo aChildDestInfo,
        mozilla::ipc::Endpoint<::mozilla::gfx::PVRLayerParent>* aParent,
        mozilla::ipc::Endpoint<::mozilla::gfx::PVRLayerChild>* aChild);

enum MessageType {
    PVRLayerStart = PVRLayerMsgStart << 16,
    Msg_SubmitFrame__ID,
    Msg_Destroy__ID,
    Msg___delete____ID,
    Reply___delete____ID,
    PVRLayerEnd
};

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

mozilla::UniquePtr<IPC::Message>
Msg_Destroy(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);



} // namespace PVRLayer
} // namespace gfx
} // namespace mozilla

#endif // ifndef PVRLayer_h
