Home
last modified time | relevance | path

Searched refs:fFD (Results 1 – 4 of 4) sorted by relevance

/external/skia/src/images/
DSkFDStream.cpp7 : fFD(fileDesc), fCloseWhenDone(closeWhenDone) { in SkFDStream()
11 if (fFD >= 0 && fCloseWhenDone) { in ~SkFDStream()
12 ::close(fFD); in ~SkFDStream()
17 if (fFD >= 0) { in rewind()
18 off_t value = ::lseek(fFD, 0, SEEK_SET); in rewind()
30 if (fFD >= 0) { in read()
32 off_t curr = ::lseek(fFD, 0, SEEK_CUR); in read()
39 off_t size = ::lseek(fFD, 0, SEEK_END); in read()
46 if (::lseek(fFD, curr, SEEK_SET) != curr) { in read()
55 off_t oldCurr = ::lseek(fFD, 0, SEEK_CUR); in read()
[all …]
/external/skia/src/ports/
DSkImageRef_ashmem.cpp30 fRec.fFD = -1; in SkImageRef_ashmem()
44 if (-1 != fRec.fFD) { in closeFD()
46 SkDebugf("=== ashmem close %d\n", fRec.fFD); in closeFD()
51 close(fRec.fFD); in closeFD()
52 fRec.fFD = -1; in closeFD()
65 int fd = fRec->fFD; in allocPixelRef()
98 fRec->fFD = fd; in allocPixelRef()
140 ashmem_unpin_region(fRec.fFD, 0, 0); in onDecode()
153 if (-1 != fRec.fFD) { in onLockPixels()
156 int pin = ashmem_pin_region(fRec.fFD, 0, 0); in onLockPixels()
[all …]
DSkImageRef_ashmem.h7 int fFD; member
/external/skia/include/core/
DSkStream.h151 bool isValid() const { return fFD >= 0; } in isValid()
158 int fFD;