Lines Matching refs:surf
56 std::unique_ptr<GRSurfaceAdf> surf = std::unique_ptr<GRSurfaceAdf>( in Create() local
61 mmap(nullptr, surf->pitch * surf->height, PROT_WRITE, MAP_SHARED, surf->fd, surf->offset); in Create()
66 surf->mmapped_buffer_ = static_cast<uint8_t*>(mmapped); in Create()
67 return surf; in Create()
165 void MinuiBackendAdf::Sync(GRSurfaceAdf* surf) { in Sync() argument
168 if (surf == nullptr) return; in Sync()
170 if (surf->fence_fd >= 0) { in Sync()
171 int err = sync_wait(surf->fence_fd, kWarningTimeout); in Sync()
176 close(surf->fence_fd); in Sync()
177 surf->fence_fd = -1; in Sync()
182 const auto& surf = surfaces[current_surface]; in Flip() local
184 int fence_fd = adf_interface_simple_post(intf_fd, eng_id, surf->width, surf->height, format, in Flip()
185 surf->fd, surf->offset, surf->pitch, -1); in Flip()
186 if (fence_fd >= 0) surf->fence_fd = fence_fd; in Flip()