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);
ULONG CDECL wined3d_swapchain_decref(struct wined3d_swapchain *swapchain)
static struct d3d8_swapchain * impl_from_IDirect3DSwapChain8(IDirect3DSwapChain8 *iface)
coclass MSXML2::XSLTemplate40 object
static HRESULT WINAPI d3d8_swapchain_GetBackBuffer(IDirect3DSwapChain8 *iface, UINT backbuffer_idx, D3DBACKBUFFER_TYPE backbuffer_type, IDirect3DSurface8 **backbuffer)
void WINAPI wined3d_mutex_lock(void)
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)
WINE_DEFAULT_DEBUG_CHANNEL(d3d8)
static const struct wined3d_parent_ops d3d8_swapchain_wined3d_parent_ops
#define D3DERR_INVALIDCALL
IDirect3DSwapChain8 IDirect3DSwapChain8_iface
#define IDirect3DSurface8_AddRef(p)
IDirect3DSurface8 IDirect3DSurface8_iface
static const WCHAR desc[]
IDirect3DDevice8 * parent_device
struct wined3d_swapchain * wined3d_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)
static const IDirect3DSwapChain8Vtbl d3d8_swapchain_vtbl
static HRESULT WINAPI d3d8_swapchain_QueryInterface(IDirect3DSwapChain8 *iface, REFIID riid, void **out)
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
#define DECLSPEC_HOTPATCH
#define IDirect3DSwapChain8_AddRef(p)
#define D3DERR_DEVICELOST
static void STDMETHODCALLTYPE d3d8_swapchain_wined3d_object_released(void *parent)
const char * wine_dbgstr_rect(const RECT *rect)
#define STDMETHODCALLTYPE
void *CDECL wined3d_texture_get_sub_resource_parent(struct wined3d_texture *texture, unsigned int sub_resource_idx)
#define InterlockedDecrement
static ULONG WINAPI d3d8_swapchain_AddRef(IDirect3DSwapChain8 *iface)
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_device * impl_from_IDirect3DDevice8(IDirect3DDevice8 *iface)
#define InterlockedIncrement
static ULONG WINAPI d3d8_swapchain_Release(IDirect3DSwapChain8 *iface)
#define IDirect3DDevice8_AddRef(p)
#define IDirect3DDevice8_Release(p)
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
static HRESULT swapchain_init(struct d3d8_swapchain *swapchain, struct d3d8_device *device, struct wined3d_swapchain_desc *desc)
HRESULT d3d8_swapchain_create(struct d3d8_device *device, struct wined3d_swapchain_desc *desc, struct d3d8_swapchain **swapchain)
ULONG CDECL wined3d_swapchain_incref(struct wined3d_swapchain *swapchain)
enum _D3DBACKBUFFER_TYPE D3DBACKBUFFER_TYPE
struct wined3d_texture *CDECL wined3d_swapchain_get_back_buffer(const struct wined3d_swapchain *swapchain, UINT back_buffer_idx)
void WINAPI wined3d_mutex_unlock(void)
static BOOL heap_free(void *mem)