Lines Matching refs:nw
575 ANativeWindow *nw = drv->wndSurface; in rsdAllocationDestroy() local
576 if (nw) { in rsdAllocationDestroy()
581 ANativeWindow_cancelBuffer(nw, drv->wndBuffer, fenceID); in rsdAllocationDestroy()
582 ANativeWindow_release(nw); in rsdAllocationDestroy()
707 static bool IoGetBuffer(const Context *rsc, Allocation *alloc, ANativeWindow *nw) { in IoGetBuffer() argument
711 int r = ANativeWindow_dequeueBuffer(nw, &drv->wndBuffer, &fenceID); in IoGetBuffer()
734 void rsdAllocationSetSurface(const Context *rsc, Allocation *alloc, ANativeWindow *nw) { in rsdAllocationSetSurface() argument
759 if (nw) { in rsdAllocationSetSurface()
760 int32_t r = ANativeWindow_setBuffersGeometry(nw, alloc->mHal.drvState.lod[0].dimX, in rsdAllocationSetSurface()
769 r = ANativeWindow_setUsage(nw, in rsdAllocationSetSurface()
777 IoGetBuffer(rsc, alloc, nw); in rsdAllocationSetSurface()
778 drv->wndSurface = nw; in rsdAllocationSetSurface()
788 ANativeWindow *nw = drv->wndSurface; in rsdAllocationIoSend() local
796 if (nw) { in rsdAllocationIoSend()
806 r = ANativeWindow_queueBuffer(nw, drv->wndBuffer, fenceID); in rsdAllocationIoSend()
812 IoGetBuffer(rsc, alloc, nw); in rsdAllocationIoSend()