Lines Matching refs:refcount
53 ULONG refcount; in d3d8_surface_AddRef() local
63 refcount = InterlockedIncrement(&surface->resource.refcount); in d3d8_surface_AddRef()
64 TRACE("%p increasing refcount to %u.\n", iface, refcount); in d3d8_surface_AddRef()
66 if (refcount == 1) in d3d8_surface_AddRef()
77 return refcount; in d3d8_surface_AddRef()
83 ULONG refcount; in d3d8_surface_Release() local
93 if (!surface->resource.refcount) in d3d8_surface_Release()
99 refcount = InterlockedDecrement(&surface->resource.refcount); in d3d8_surface_Release()
100 TRACE("%p decreasing refcount to %u.\n", iface, refcount); in d3d8_surface_Release()
102 if (!refcount) in d3d8_surface_Release()
116 return refcount; in d3d8_surface_Release()
324 surface->resource.refcount = 0; in surface_init()