Lines Matching refs:nw
556 ANativeWindow *nw = drv->wndSurface; in rsdAllocationDestroy() local
557 if (nw) { in rsdAllocationDestroy()
560 int32_t r = nw->cancelBuffer(nw, drv->wndBuffer, -1); in rsdAllocationDestroy()
563 native_window_api_disconnect(nw, NATIVE_WINDOW_API_CPU); in rsdAllocationDestroy()
564 nw->decStrong(nullptr); in rsdAllocationDestroy()
687 static bool IoGetBuffer(const Context *rsc, Allocation *alloc, ANativeWindow *nw) { in IoGetBuffer() argument
690 int32_t r = native_window_dequeue_buffer_and_wait(nw, &drv->wndBuffer); in IoGetBuffer()
712 void rsdAllocationSetSurface(const Context *rsc, Allocation *alloc, ANativeWindow *nw) { in rsdAllocationSetSurface() argument
717 if (nw) { in rsdAllocationSetSurface()
718 nw->incStrong(nullptr); in rsdAllocationSetSurface()
723 drv->wnd = nw; in rsdAllocationSetSurface()
739 if (nw != nullptr) { in rsdAllocationSetSurface()
750 r = native_window_api_connect(nw, NATIVE_WINDOW_API_CPU); in rsdAllocationSetSurface()
756 r = native_window_set_usage(nw, flags); in rsdAllocationSetSurface()
762 r = native_window_set_buffers_dimensions(nw, alloc->mHal.drvState.lod[0].dimX, in rsdAllocationSetSurface()
780 r = native_window_set_buffers_format(nw, format); in rsdAllocationSetSurface()
786 IoGetBuffer(rsc, alloc, nw); in rsdAllocationSetSurface()
787 drv->wndSurface = nw; in rsdAllocationSetSurface()
794 if (nw) { in rsdAllocationSetSurface()
795 nw->decStrong(nullptr); in rsdAllocationSetSurface()
805 ANativeWindow *nw = drv->wndSurface; in rsdAllocationIoSend() local
811 if (nw) { in rsdAllocationIoSend()
815 int32_t r = nw->queueBuffer(nw, drv->wndBuffer, -1); in rsdAllocationIoSend()
821 IoGetBuffer(rsc, alloc, nw); in rsdAllocationIoSend()