Lines Matching defs: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;
137 AshmemAllocator alloc(&fRec, this->getURI());
150 if (fRec.fPinned) {
151 ashmem_unpin_region(fRec.fFD, 0, 0);
152 fRec.fPinned = false;
164 if (-1 != fRec.fFD) {
165 SkASSERT(fRec.fAddr);
166 SkASSERT(!fRec.fPinned);
167 int pin = ashmem_pin_region(fRec.fFD, 0, 0);
170 fBitmap.setPixels(fRec.fAddr, fCT);
171 fRec.fPinned = true;
173 ashmem_unpin_region(fRec.fFD, 0, 0);
184 SkDebugf("===== ashmem pin_region(%d) returned %d\n", fRec.fFD, pin);
201 if (-1 != fRec.fFD) {
202 SkASSERT(fRec.fAddr);
203 SkASSERT(fRec.fPinned);
205 ashmem_unpin_region(fRec.fFD, 0, 0);
206 fRec.fPinned = false;
221 fRec.fFD = -1;
222 fRec.fAddr = NULL;
223 fRec.fSize = 0;
224 fRec.fPinned = false;