/*
* IDirect3DSwapChain9 implementation
*
* Copyright 2002-2003 Jason Edmeades
* Raphael Junqueira
* Copyright 2005 Oliver Stieber
*
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
/*
* Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
* other than GPL or LGPL is available it will apply instead, Oracle elects to use only
* the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
* a choice of LGPL license versions is made available with the language indicating
* that LGPLv2 or any later version may be used, or where a choice of which version
* of the LGPL is applied is otherwise unspecified.
*/
#include "config.h"
#include "d3d9_private.h"
{
}
static HRESULT WINAPI d3d9_swapchain_QueryInterface(IDirect3DSwapChain9Ex *iface, REFIID riid, void **out)
{
{
return S_OK;
}
{
/* Find out if the creating d3d9 interface was created with Direct3DCreate9Ex.
* It doesn't matter with which function the device was created. */
{
WARN("IDirect3D9 instance wasn't created with CreateDirect3D9Ex, returning E_NOINTERFACE.\n");
return E_NOINTERFACE;
}
return S_OK;
}
return E_NOINTERFACE;
}
{
if (refcount == 1)
{
if (swapchain->parent_device)
}
return refcount;
}
{
if (!refcount)
{
/* Release the device last, as it may cause the device to be destroyed. */
if (parent_device)
}
return refcount;
}
{
TRACE("iface %p, src_rect %s, dst_rect %s, dst_window_override %p, dirty_region %p, flags %#x.\n",
return hr;
}
static HRESULT WINAPI d3d9_swapchain_GetFrontBufferData(IDirect3DSwapChain9Ex *iface, IDirect3DSurface9 *surface)
{
return hr;
}
{
TRACE("iface %p, backbuffer_idx %u, backbuffer_type %#x, backbuffer %p.\n",
{
}
else
{
}
return hr;
}
static HRESULT WINAPI d3d9_swapchain_GetRasterStatus(IDirect3DSwapChain9Ex *iface, D3DRASTER_STATUS *raster_status)
{
(struct wined3d_raster_status *)raster_status);
return hr;
}
static HRESULT WINAPI d3d9_swapchain_GetDisplayMode(IDirect3DSwapChain9Ex *iface, D3DDISPLAYMODE *mode)
{
{
}
return hr;
}
static HRESULT WINAPI d3d9_swapchain_GetDevice(IDirect3DSwapChain9Ex *iface, IDirect3DDevice9 **device)
{
return D3D_OK;
}
{
return D3D_OK;
}
{
if (last_present_count)
*last_present_count = 0;
return D3D_OK;
}
{
if (present_stats)
return D3D_OK;
}
{
return D3DERR_INVALIDCALL;
(enum wined3d_display_rotation *)rotation);
{
}
return hr;
}
{
/* IUnknown */
/* IDirect3DSwapChain9 */
/* IDirect3DSwapChain9Ex */
};
{
}
{
};
struct wined3d_swapchain_desc *desc)
{
{
return hr;
}
return D3D_OK;
}
struct d3d9_swapchain **swapchain)
{
return E_OUTOFMEMORY;
{
return hr;
}
return D3D_OK;
}
#ifdef VBOX_WITH_WDDM
{
return hr;
}
VBOXWINEEX_DECL(HRESULT) VBoxWineExD3DSwapchain9GetHostWinID(IDirect3DSwapChain9 *iface, int32_t *pi32Id)
{
return hr;
}
#endif