54 TRACE(
"%p increasing refcount to %u.\n", iface,
ref);
73 TRACE(
"%p decreasing refcount to %u.\n", iface,
ref);
90 const RECT *src_rect,
const RECT *dst_rect,
HWND dst_window_override,
97 TRACE(
"iface %p, src_rect %s, dst_rect %s, dst_window_override %p, dirty_region %p.\n",
104 FIXME(
"Ignoring dirty_region %p.\n", dirty_region);
108 src_rect, dst_rect, dst_window_override, 0, 0);
122 TRACE(
"iface %p, backbuffer_idx %u, backbuffer_type %#x, backbuffer %p.\n",
123 iface, backbuffer_idx, backbuffer_type, backbuffer);
129 WARN(
"The output pointer is NULL, returning D3DERR_INVALIDCALL.\n");
184 WARN(
"Failed to create wined3d swapchain, hr %#x.\n",
hr);
200 if (!(
object = heap_alloc_zero(
sizeof(*
object))))
205 WARN(
"Failed to initialize swapchain, hr %#x.\n",
hr);
210 TRACE(
"Created swapchain %p.\n",
object);
static BOOL heap_free(void *mem)
#define InterlockedIncrement
#define InterlockedDecrement
static const char * wine_dbgstr_rect(const RECT *prc)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define STDMETHODCALLTYPE
static HRESULT WINAPI d3d8_swapchain_QueryInterface(IDirect3DSwapChain8 *iface, REFIID riid, void **out)
static void STDMETHODCALLTYPE d3d8_swapchain_wined3d_object_released(void *parent)
HRESULT d3d8_swapchain_create(struct d3d8_device *device, struct wined3d_swapchain_desc *desc, struct d3d8_swapchain **swapchain)
static HRESULT swapchain_init(struct d3d8_swapchain *swapchain, struct d3d8_device *device, struct wined3d_swapchain_desc *desc)
static const struct wined3d_parent_ops d3d8_swapchain_wined3d_parent_ops
static ULONG WINAPI d3d8_swapchain_AddRef(IDirect3DSwapChain8 *iface)
static ULONG WINAPI d3d8_swapchain_Release(IDirect3DSwapChain8 *iface)
static HRESULT WINAPI d3d8_swapchain_GetBackBuffer(IDirect3DSwapChain8 *iface, UINT backbuffer_idx, D3DBACKBUFFER_TYPE backbuffer_type, IDirect3DSurface8 **backbuffer)
static HRESULT WINAPI DECLSPEC_HOTPATCH d3d8_swapchain_Present(IDirect3DSwapChain8 *iface, const RECT *src_rect, const RECT *dst_rect, HWND dst_window_override, const RGNDATA *dirty_region)
static struct d3d8_swapchain * impl_from_IDirect3DSwapChain8(IDirect3DSwapChain8 *iface)
static const IDirect3DSwapChain8Vtbl d3d8_swapchain_vtbl
static struct d3d8_device * impl_from_IDirect3DDevice8(IDirect3DDevice8 *iface)
enum _D3DBACKBUFFER_TYPE D3DBACKBUFFER_TYPE
#define D3DERR_INVALIDCALL
void *CDECL wined3d_texture_get_sub_resource_parent(struct wined3d_texture *texture, unsigned int sub_resource_idx)
static const WCHAR desc[]
#define IsEqualGUID(rguid1, rguid2)
#define IDirect3DSwapChain8_AddRef(p)
#define IDirect3DSurface8_AddRef(p)
#define D3DERR_DEVICELOST
#define IDirect3DDevice8_AddRef(p)
#define IDirect3DDevice8_Release(p)
#define DECLSPEC_HOTPATCH
IDirect3DSurface8 IDirect3DSurface8_iface
IDirect3DSwapChain8 IDirect3DSwapChain8_iface
struct wined3d_swapchain * wined3d_swapchain
IDirect3DDevice8 * parent_device
#define CONTAINING_RECORD(address, type, field)
struct wined3d_texture *CDECL wined3d_swapchain_get_back_buffer(const struct wined3d_swapchain *swapchain, UINT back_buffer_idx)
HRESULT CDECL wined3d_swapchain_present(struct wined3d_swapchain *swapchain, const RECT *src_rect, const RECT *dst_rect, HWND dst_window_override, DWORD swap_interval, DWORD flags)
ULONG CDECL wined3d_swapchain_decref(struct wined3d_swapchain *swapchain)
ULONG CDECL wined3d_swapchain_incref(struct wined3d_swapchain *swapchain)
HRESULT CDECL wined3d_swapchain_create(struct wined3d_device *device, struct wined3d_swapchain_desc *desc, void *parent, const struct wined3d_parent_ops *parent_ops, struct wined3d_swapchain **swapchain)
void WINAPI wined3d_mutex_unlock(void)
void WINAPI wined3d_mutex_lock(void)