Searched refs:ioSurface (Results 1 – 3 of 3) sorted by relevance
/external/swiftshader/tests/GLESUnitTests/ |
D | unittests.cpp | 1458 ioSurface = nullptr; in EGLClientBufferWrapper() 1467 ioSurface = IOSurfaceCreate(dict); in EGLClientBufferWrapper() 1470 EXPECT_NE(nullptr, ioSurface); in EGLClientBufferWrapper() 1475 IOSurfaceUnlock(ioSurface, kIOSurfaceLockReadOnly, nullptr); in ~EGLClientBufferWrapper() 1477 CFRelease(ioSurface); in ~EGLClientBufferWrapper() 1482 return ioSurface; in getClientBuffer() 1487 IOSurfaceLock(ioSurface, kIOSurfaceLockReadOnly, nullptr); in lockColor() 1488 return reinterpret_cast<const unsigned char*>(IOSurfaceGetBaseAddress(ioSurface)); in lockColor() 1493 IOSurfaceUnlock(ioSurface, kIOSurfaceLockReadOnly, nullptr); in unlockColor() 1499 IOSurfaceLock(ioSurface, 0, nullptr); in writeColor() [all …]
|
/external/swiftshader/src/OpenGL/libEGL/ |
D | Display.cpp | 531 IOSurfaceRef ioSurface = reinterpret_cast<IOSurfaceRef>(clientBuffer); in createPBufferSurface() local 532 size_t planeCount = IOSurfaceGetPlaneCount(ioSurface); in createPBufferSurface() 533 if((static_cast<size_t>(width) > IOSurfaceGetWidthOfPlane(ioSurface, ioSurfacePlane)) || in createPBufferSurface() 534 (static_cast<size_t>(height) > IOSurfaceGetHeightOfPlane(ioSurface, ioSurfacePlane)) || in createPBufferSurface()
|
/external/swiftshader/src/OpenGL/common/ |
D | Image.cpp | 1129 IOSurfaceRef ioSurface = reinterpret_cast<IOSurfaceRef>(buffer); in pitchP() local 1130 int pitchB = static_cast<int>(IOSurfaceGetBytesPerRowOfPlane(ioSurface, plane)); in pitchP() 1168 IOSurfaceRef ioSurface = reinterpret_cast<IOSurfaceRef>(buffer); in lock() local 1169 IOSurfaceLock(ioSurface, 0, nullptr); in lock() 1170 void* pixels = IOSurfaceGetBaseAddressOfPlane(ioSurface, plane); in lock() 1172 int pitchB = static_cast<int>(IOSurfaceGetBytesPerRowOfPlane(ioSurface, plane)); in lock() 1173 int sliceB = static_cast<int>(IOSurfaceGetHeightOfPlane(ioSurface, plane)) * pitchB; in lock() 1191 IOSurfaceRef ioSurface = reinterpret_cast<IOSurfaceRef>(buffer); in unlock() local 1192 IOSurfaceUnlock(ioSurface, 0, nullptr); in unlock()
|