Home | History | Annotate | Download | only in drm_hwcomposer

Lines Matching refs:fd_

27   UniqueFd(int fd) : fd_(fd) {
30 fd_ = rhs.fd_;
31 rhs.fd_ = -1;
40 if (fd_ >= 0)
41 close(fd_);
45 int old_fd = fd_;
46 fd_ = -1;
51 if (fd_ >= 0)
52 close(fd_);
53 fd_ = fd;
54 return fd_;
58 if (fd_ >= 0)
59 close(fd_);
60 fd_ = -1;
64 return fd_;
68 int fd_ = -1;
73 OutputFd(int *fd) : fd_(fd) {
76 fd_ = rhs.fd_;
77 rhs.fd_ = NULL;
81 fd_ = rhs.fd_;
82 rhs.fd_ = NULL;
87 if (*fd_ >= 0)
88 close(*fd_);
89 *fd_ = fd;
94 return *fd_;
98 return fd_ != NULL;
102 int *fd_ = NULL;