Lines Matching refs:refcount
54 ULONG refcount; in d3d9_surface_AddRef() local
64 refcount = InterlockedIncrement(&surface->resource.refcount); in d3d9_surface_AddRef()
65 TRACE("%p increasing refcount to %u.\n", iface, refcount); in d3d9_surface_AddRef()
67 if (refcount == 1) in d3d9_surface_AddRef()
78 return refcount; in d3d9_surface_AddRef()
84 ULONG refcount; in d3d9_surface_Release() local
94 if (!surface->resource.refcount) in d3d9_surface_Release()
100 refcount = InterlockedDecrement(&surface->resource.refcount); in d3d9_surface_Release()
101 TRACE("%p decreasing refcount to %u.\n", iface, refcount); in d3d9_surface_Release()
103 if (!refcount) in d3d9_surface_Release()
118 return refcount; in d3d9_surface_Release()
362 surface->resource.refcount = 0; in surface_init()