Lines Matching defs:This

10  * This library is free software; you can redistribute it and/or
15 * This library is distributed in the hope that it will be useful,
120 IWineD3DResourceImpl *This = (IWineD3DResourceImpl *)iface;
125 TRACE("(%p) Cleaning up resource\n", This);
127 if (This->resource.pool == WINED3DPOOL_DEFAULT) {
128 TRACE("Decrementing device memory pool by %u\n", This->resource.size);
129 WineD3DAdapterChangeGLRam(This->resource.device, -This->resource.size);
133 LIST_FOR_EACH_SAFE(e1, e2, &This->resource.privateData) {
137 ERR("Failed to free private data when destroying resource %p, hr = %08x\n", This, hr);
141 HeapFree(GetProcessHeap(), 0, This->resource.heapMemory);
142 This->resource.allocatedMemory = 0;
143 This->resource.heapMemory = 0;
145 if (This->resource.device) device_resource_released(This->resource.device, iface);
148 static PrivateData* resource_find_private_data(IWineD3DResourceImpl *This, REFGUID tag)
154 LIST_FOR_EACH(entry, &This->resource.privateData)
169 IWineD3DResourceImpl *This = (IWineD3DResourceImpl *)iface;
172 TRACE("(%p) : %s %p %d %d\n", This, debugstr_guid(refguid), pData, SizeOfData, Flags);
201 list_add_tail(&This->resource.privateData, &data->entry);
208 IWineD3DResourceImpl *This = (IWineD3DResourceImpl *)iface;
211 TRACE("(%p) : %p %p %p\n", This, refguid, pData, pSizeOfData);
212 data = resource_find_private_data(This, refguid);
222 if (((IWineD3DImpl *)This->resource.device->wined3d)->dxVersion != 7)
224 /* D3D8 and D3D9 addref the private data, DDraw does not. This can't be handled in
239 IWineD3DResourceImpl *This = (IWineD3DResourceImpl *)iface;
242 TRACE("(%p) : %s\n", This, debugstr_guid(refguid));
243 data = resource_find_private_data(This, refguid);
262 IWineD3DResourceImpl *This = (IWineD3DResourceImpl *)iface;
263 DWORD PriorityOld = This->resource.priority;
264 This->resource.priority = PriorityNew;
265 TRACE("(%p) : new priority %d, returning old priority %d\n", This, PriorityNew, PriorityOld );
271 IWineD3DResourceImpl *This = (IWineD3DResourceImpl *)iface;
272 TRACE("(%p) : returning %d\n", This, This->resource.priority );
273 return This->resource.priority;
278 IWineD3DResourceImpl *This = (IWineD3DResourceImpl *)iface;
279 TRACE("(%p) : returning %d\n", This, This->resource.resourceType);
280 return This->resource.resourceType;
285 IWineD3DResourceImpl *This = (IWineD3DResourceImpl *)iface;
286 IUnknown_AddRef(This->resource.parent);
287 *pParent = This->resource.parent;
293 IWineD3DResourceImpl *This = (IWineD3DResourceImpl*)iface;
294 if (!VBOXSHRC_IS_SHARED(This))