| 337 | } |
| 338 | |
| 339 | HRESULT IDXGISurface_Wrapper::GetDesc(DXGI_SURFACE_DESC* pDesc) |
| 340 | { |
| 341 | HRESULT result = {}; |
| 342 | auto& ctx = Context::GetInstance(); |
| 343 | auto callScope = ctx.IncrementCallScope(); |
| 344 | if (callScope == 1) |
| 345 | { |
| 346 | bool skipCall = PreCall<API_IDXGISURFACE_GETDESC>::Run(result, this, pDesc); |
| 347 | if (skipCall) |
| 348 | { |
| 349 | ctx.DecrementCallScope(); |
| 350 | return result; |
| 351 | } |
| 352 | |
| 353 | result = GetWrappedObjectAs<IDXGISurface>()->GetDesc( |
| 354 | pDesc |
| 355 | ); |
| 356 | |
| 357 | PostCall<API_IDXGISURFACE_GETDESC>::Run(result, this, pDesc); |
| 358 | } |
| 359 | else |
| 360 | { |
| 361 | result = GetWrappedObjectAs<IDXGISurface>()->GetDesc(pDesc); |
| 362 | } |
| 363 | ctx.DecrementCallScope(); |
| 364 | return result; |
| 365 | } |
| 366 | |
| 367 | HRESULT IDXGISurface_Wrapper::Map(DXGI_MAPPED_RECT* pLockedRect, UINT MapFlags) |
| 368 | { |
no test coverage detected