Lines Matching defs:nw
583 ANativeWindow *nw = drv->wndSurface;
584 if (nw) {
587 int32_t r = nw->cancelBuffer(nw, drv->wndBuffer, -1);
590 native_window_api_disconnect(nw, NATIVE_WINDOW_API_CPU);
591 nw->decStrong(nullptr);
714 static bool IoGetBuffer(const Context *rsc, Allocation *alloc, ANativeWindow *nw) {
717 int32_t r = native_window_dequeue_buffer_and_wait(nw, &drv->wndBuffer);
739 void rsdAllocationSetSurface(const Context *rsc, Allocation *alloc, ANativeWindow *nw) {
744 if (nw) {
745 nw->incStrong(nullptr);
750 drv->wnd = nw;
766 if (nw != nullptr) {
777 r = native_window_api_connect(nw, NATIVE_WINDOW_API_CPU);
783 r = native_window_set_usage(nw, flags);
789 r = native_window_set_buffers_dimensions(nw, alloc->mHal.drvState.lod[0].dimX,
807 r = native_window_set_buffers_format(nw, format);
813 IoGetBuffer(rsc, alloc, nw);
814 drv->wndSurface = nw;
821 if (nw) {
822 nw->decStrong(nullptr);
832 ANativeWindow *nw = drv->wndSurface;
838 if (nw) {
842 int32_t r = nw->queueBuffer(nw, drv->wndBuffer, -1);
848 IoGetBuffer(rsc, alloc, nw);