| 394 | } |
| 395 | |
| 396 | HRESULT IDXGISurface_Wrapper::Unmap() |
| 397 | { |
| 398 | HRESULT result = {}; |
| 399 | auto& ctx = Context::GetInstance(); |
| 400 | auto callScope = ctx.IncrementCallScope(); |
| 401 | if (callScope == 1) |
| 402 | { |
| 403 | bool skipCall = PreCall<API_IDXGISURFACE_UNMAP>::Run(result, this); |
| 404 | if (skipCall) |
| 405 | { |
| 406 | ctx.DecrementCallScope(); |
| 407 | return result; |
| 408 | } |
| 409 | |
| 410 | result = GetWrappedObjectAs<IDXGISurface>()->Unmap(); |
| 411 | |
| 412 | PostCall<API_IDXGISURFACE_UNMAP>::Run(result, this); |
| 413 | } |
| 414 | else |
| 415 | { |
| 416 | result = GetWrappedObjectAs<IDXGISurface>()->Unmap(); |
| 417 | } |
| 418 | ctx.DecrementCallScope(); |
| 419 | return result; |
| 420 | } |
| 421 | |
| 422 | HRESULT IDXGISurface1_Wrapper::GetDC(BOOL Discard, HDC* phdc) |
| 423 | { |
no test coverage detected