Lines Matching defs:pSwapchain

271 NTSTATUS vboxVdmaPostHideSwapchain(PVBOXWDDM_SWAPCHAIN pSwapchain)
276 (PVBOXVIDEOCM_CMD_RECTS_INTERNAL)vboxVideoCmCmdCreate(&pSwapchain->pContext->CmContext, cbCmdInternal);
280 pCmdInternal->hSwapchainUm = pSwapchain->hSwapchainUm;
412 static NTSTATUS vboxVdmaVRegGet(PVBOXWDDM_SWAPCHAIN pSwapchain, const RTRECT *pCtxRect, uint32_t *pcVRects, RTRECT **ppVRectsBuff, uint32_t *pcVRectsBuff)
416 uint32_t cVRects = VBoxVrListRectsCount(&pSwapchain->VisibleRegions);
436 int rc = VBoxVrListRectsGet(&pSwapchain->VisibleRegions, cVRects, pVRectsBuff);
458 PVBOXWDDM_SWAPCHAIN pSwapchain,
482 if (pSwapchain)
487 if (CurPos.x != pSwapchain->Pos.x || CurPos.y != pSwapchain->Pos.y)
490 if (pSwapchain->Pos.x != VBOXWDDM_INVALID_COORD)
491 VBoxVrListTranslate(&pSwapchain->VisibleRegions, pSwapchain->Pos.x - CurPos.x, pSwapchain->Pos.y - CurPos.y);
494 VBoxVrListClear(&pSwapchain->VisibleRegions);
496 pSwapchain->Pos = CurPos;
499 rc = VBoxVrListRectsAdd(&pSwapchain->VisibleRegions, pRects->cRects, (const RTRECT*)pRects->aRects, &fCurChanged);
518 if (pCur != &pSwapchain->DevExtListEntry)
575 if (!pSwapchain)
581 Status = vboxVdmaVRegGet(pSwapchain, (const RTRECT *)&pContextRects->ContextRect, &cVRects, &pVRectsBuff, &cVRectsBuff);
597 if (!pSwapchain->fExposed)
615 Assert(pSwapchain->winHostID);
618 crPackWindowPosition(&pCrPacker->CrPacker, pSwapchain->winHostID, CurPos.x, CurPos.y);
620 if (!pSwapchain->fExposed)
622 crPackWindowSize(&pCrPacker->CrPacker, pSwapchain->winHostID, pSwapchain->width, pSwapchain->height);
623 crPackWindowShow(&pCrPacker->CrPacker, pSwapchain->winHostID, TRUE);
624 pSwapchain->fExposed = TRUE;
627 crPackWindowVisibleRegion(&pCrPacker->CrPacker, pSwapchain->winHostID, cVRects, (GLint*)pVRectsBuff);
1299 PVBOXWDDM_SWAPCHAIN pSwapchain = vboxWddmSwapchainRetainByAlloc(pDevExt, pSrcAlloc);
1301 if (pSwapchain)
1303 Assert(pSrcAlloc->AllocData.SurfDesc.width == pSwapchain->width);
1304 Assert(pSrcAlloc->AllocData.SurfDesc.height == pSwapchain->height);
1307 Status = vboxVdmaProcessVRegCmdLegacy(pDevExt, pCrPacker, u32CrConClientID, pSource, pSwapchain, pSrcRect, pDstRects);
1311 if (pSwapchain)
1312 vboxWddmSwapchainRelease(pSwapchain);