Framebuffer.h revision c58f1213e628a545081c70e26c6b67a841cff880
/** @file
*
* VBox Remote Desktop Framebuffer.
*/
/*
* Copyright (C) 2012 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#ifndef __VRDP__FRAMEBUFFER__H
#define __VRDP__FRAMEBUFFER__H
#include <iprt/critsect.h>
{
#ifndef VBOX_WITH_XPCOM
return ::InterlockedIncrement (&refcnt);
}
{
if (cnt == 0)
return cnt;
}
#endif
/* If the format is Opaque, then internal memory buffer is used.
* Otherwise guest VRAM is used directly.
*/
void *mBuffer;
#ifndef VBOX_WITH_XPCOM
long refcnt;
#endif
};
#endif /* __VRDP__FRAMEBUFFER__H */