MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / GetDC

Method GetDC

IntelPresentMon/FlashInjectorLibrary/Generated/API_DXGI.cpp:422–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420 }
421
422 HRESULT IDXGISurface1_Wrapper::GetDC(BOOL Discard, HDC* phdc)
423 {
424 HRESULT result = {};
425 auto& ctx = Context::GetInstance();
426 auto callScope = ctx.IncrementCallScope();
427 if (callScope == 1)
428 {
429 bool skipCall = PreCall<API_IDXGISURFACE1_GETDC>::Run(result, this, Discard, phdc);
430 if (skipCall)
431 {
432 ctx.DecrementCallScope();
433 return result;
434 }
435
436 result = GetWrappedObjectAs<IDXGISurface1>()->GetDC(
437 Discard,
438 phdc
439 );
440
441 PostCall<API_IDXGISURFACE1_GETDC>::Run(result, this, Discard, phdc);
442 }
443 else
444 {
445 result = GetWrappedObjectAs<IDXGISurface1>()->GetDC(Discard, phdc);
446 }
447 ctx.DecrementCallScope();
448 return result;
449 }
450
451 HRESULT IDXGISurface1_Wrapper::ReleaseDC(RECT* pDirtyRect)
452 {

Callers

nothing calls this directly

Calls 2

IncrementCallScopeMethod · 0.80
DecrementCallScopeMethod · 0.80

Tested by

no test coverage detected