Home | History | Annotate | Download | only in images

Lines Matching refs:fRec

39     fRec.fFD = -1;
40 fRec.fAddr = NULL;
41 fRec.fSize = 0;
42 fRec.fPinned = false;
53 if (-1 != fRec.fFD) {
55 SkDebugf("=== ashmem close %d\n", fRec.fFD);
57 SkASSERT(fRec.fAddr);
58 SkASSERT(fRec.fSize);
59 munmap(fRec.fAddr, fRec.fSize);
60 close(fRec.fFD);
61 fRec.fFD = -1;
70 : fRec(rec), fName(name) {}
74 int fd = fRec->fFD;
75 void* addr = fRec->fAddr;
77 SkASSERT(!fRec->fPinned);
81 SkASSERT(0 == fRec->fSize);
109 fRec->fFD = fd;
110 fRec->fAddr = addr;
111 fRec->fSize = size;
114 SkASSERT(size == fRec->fSize);
119 fRec->fPinned = true;
125 SkAshmemRec* fRec;
140 AshmemAllocator alloc(&fRec, this->getURI());
153 if (fRec.fPinned) {
154 ashmem_unpin_region(fRec.fFD, 0, 0);
155 fRec.fPinned = false;
167 if (-1 != fRec.fFD) {
168 SkASSERT(fRec.fAddr);
169 SkASSERT(!fRec.fPinned);
170 int pin = ashmem_pin_region(fRec.fFD, 0, 0);
173 fBitmap.setPixels(fRec.fAddr, fCT);
174 fRec.fPinned = true;
176 ashmem_unpin_region(fRec.fFD, 0, 0);
187 SkDebugf("===== ashmem pin_region(%d) returned %d\n", fRec.fFD, pin);
204 if (-1 != fRec.fFD) {
205 SkASSERT(fRec.fAddr);
206 SkASSERT(fRec.fPinned);
208 ashmem_unpin_region(fRec.fFD, 0, 0);
209 fRec.fPinned = false;
224 fRec.fFD = -1;
225 fRec.fAddr = NULL;
226 fRec.fSize = 0;
227 fRec.fPinned = false;