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