Searched refs:frames_fd (Results 1 – 6 of 6) sorted by relevance
25 SocketBasedScreenConnector::SocketBasedScreenConnector(int frames_fd) { in SocketBasedScreenConnector() argument27 std::thread([this, frames_fd]() { ServerLoop(frames_fd); }); in SocketBasedScreenConnector()53 void SocketBasedScreenConnector::ServerLoop(int frames_fd) { in ServerLoop() argument54 if (frames_fd < 0) { in ServerLoop()55 LOG(FATAL) << "Invalid file descriptor: " << frames_fd; in ServerLoop()58 auto server = SharedFD::Dup(frames_fd); in ServerLoop()59 close(frames_fd); in ServerLoop()
27 ScreenConnector* ScreenConnector::Get(int frames_fd) { in Get() argument31 return new WaylandScreenConnector(frames_fd); in Get()33 return new SocketBasedScreenConnector(frames_fd); in Get()
30 WaylandScreenConnector::WaylandScreenConnector(int frames_fd) { in WaylandScreenConnector() argument31 int wayland_fd = fcntl(frames_fd, F_DUPFD_CLOEXEC, 3); in WaylandScreenConnector()33 close(frames_fd); in WaylandScreenConnector()
32 explicit SocketBasedScreenConnector(int frames_fd);42 void ServerLoop(int frames_fd);
29 WaylandScreenConnector(int frames_fd);
32 static ScreenConnector* Get(int frames_fd);