Lines Matching defs:fRec
38 fRec.fFD = -1;
39 fRec.fAddr = NULL;
40 fRec.fSize = 0;
41 fRec.fPinned = false;
52 if (-1 != fRec.fFD) {
54 SkDebugf("=== ashmem close %d\n", fRec.fFD);
56 SkASSERT(fRec.fAddr);
57 SkASSERT(fRec.fSize);
58 munmap(fRec.fAddr, fRec.fSize);
59 close(fRec.fFD);
60 fRec.fFD = -1;
69 : fRec(rec), fName(name) {}
73 int fd = fRec->fFD;
74 void* addr = fRec->fAddr;
76 SkASSERT(!fRec->fPinned);
80 SkASSERT(0 == fRec->fSize);
108 fRec->fFD = fd;
109 fRec->fAddr = addr;
110 fRec->fSize = size;
113 SkASSERT(size == fRec->fSize);
118 fRec->fPinned = true;
124 SkAshmemRec* fRec;
136 AshmemAllocator alloc(&fRec, this->getURI());
149 if (fRec.fPinned) {
150 ashmem_unpin_region(fRec.fFD, 0, 0);
151 fRec.fPinned = false;
163 if (-1 != fRec.fFD) {
164 SkASSERT(fRec.fAddr);
165 SkASSERT(!fRec.fPinned);
166 int pin = ashmem_pin_region(fRec.fFD, 0, 0);
169 fBitmap.setPixels(fRec.fAddr, fCT);
170 fRec.fPinned = true;
172 ashmem_unpin_region(fRec.fFD, 0, 0);
183 SkDebugf("===== ashmem pin_region(%d) returned %d\n", fRec.fFD, pin);
200 if (-1 != fRec.fFD) {
201 SkASSERT(fRec.fAddr);
202 SkASSERT(fRec.fPinned);
204 ashmem_unpin_region(fRec.fFD, 0, 0);
205 fRec.fPinned = false;
227 fRec.fFD = -1;
228 fRec.fAddr = NULL;
229 fRec.fSize = 0;
230 fRec.fPinned = false;