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

Method RebuildDocument

IntelPresentMon/Core/source/kernel/Overlay.cpp:225–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223 }
224
225 void Overlay::RebuildDocument(std::shared_ptr<OverlaySpec> pSpec_)
226 {
227 if (!pWindow) return;
228
229 pSpec = std::move(pSpec_);
230 UpdateDataSets_();
231 pRoot = MakeDocument_(*pGfx, *pSpec, *pPackMapper, fetcherFactory, pCaptureIndicatorText);
232 UpdateCaptureStatusText_();
233 scheduler_ = { pSpec->metricPollRate, pSpec->overlayDrawRate, 10 },
234 hideDuringCapture = pSpec->hideDuringCapture;
235 hideAlways = pSpec->hideAlways;
236 AdjustOverlaySituation_(pSpec->overlayPosition);
237 if (IsHidden_())
238 {
239 pWindow->Hide();
240 }
241 else
242 {
243 pWindow->Show();
244 pWindow->Reorder(proc.hWnd);
245 }
246 }
247
248 void Overlay::AdjustOverlaySituation_(OverlaySpec::OverlayPosition position_)
249 {

Callers 1

RunOverlayLoop_Method · 0.45

Calls 4

MakeDocument_Function · 0.85
HideMethod · 0.80
ShowMethod · 0.80
ReorderMethod · 0.80

Tested by

no test coverage detected