Home
last modified time | relevance | path

Searched refs:ioSurface (Results 1 – 10 of 10) sorted by relevance

/external/angle/src/tests/egl_tests/
DEGLIOSurfaceClientBufferTest.cpp116 IOSurfaceRef ioSurface = IOSurfaceCreate(dict); in CreateIOSurface() local
117 EXPECT_NE(nullptr, ioSurface); in CreateIOSurface()
120 return ScopedIOSurfaceRef(ioSurface); in CreateIOSurface()
170 void createIOSurfacePbuffer(const ScopedIOSurfaceRef &ioSurface, in createIOSurfacePbuffer() argument
192 *pbuffer = eglCreatePbufferFromClientBuffer(mDisplay, EGL_IOSURFACE_ANGLE, ioSurface.get(), in createIOSurfacePbuffer()
197 void bindIOSurfaceToTexture(const ScopedIOSurfaceRef &ioSurface, in bindIOSurfaceToTexture() argument
206 createIOSurfacePbuffer(ioSurface, width, height, plane, internalFormat, type, pbuffer); in bindIOSurfaceToTexture()
215 void doClearTest(const ScopedIOSurfaceRef &ioSurface, in doClearTest() argument
224 doClearTest(ioSurface, width, height, plane, internalFormat, type, dataArray); in doClearTest()
228 void doClearTest(const ScopedIOSurfaceRef &ioSurface, in doClearTest() argument
[all …]
/external/angle/src/libANGLE/renderer/vulkan/mac/
DIOSurfaceSurfaceVkMac.mm166 IOSurfaceRef ioSurface = reinterpret_cast<IOSurfaceRef>(buffer);
170 size_t surfacePlaneCount = std::max(size_t(1), IOSurfaceGetPlaneCount(ioSurface));
180 if (width <= 0 || static_cast<size_t>(width) > IOSurfaceGetWidthOfPlane(ioSurface, plane) ||
181 height <= 0 || static_cast<size_t>(height) > IOSurfaceGetHeightOfPlane(ioSurface, plane))
199 if (IOSurfaceGetBytesPerElementOfPlane(ioSurface, plane) !=
205 void *pointer = IOSurfaceGetBaseAddressOfPlane(ioSurface, plane);
/external/angle/src/libANGLE/renderer/gl/cgl/
DIOSurfaceSurfaceCGL.cpp221 IOSurfaceRef ioSurface = reinterpret_cast<IOSurfaceRef>(buffer); in validateAttributes() local
225 size_t surfacePlaneCount = std::max(size_t(1), IOSurfaceGetPlaneCount(ioSurface)); in validateAttributes()
235 if (width <= 0 || static_cast<size_t>(width) > IOSurfaceGetWidthOfPlane(ioSurface, plane) || in validateAttributes()
236 height <= 0 || static_cast<size_t>(height) > IOSurfaceGetHeightOfPlane(ioSurface, plane)) in validateAttributes()
254 if (IOSurfaceGetBytesPerElementOfPlane(ioSurface, plane) != in validateAttributes()
/external/angle/src/libANGLE/renderer/metal/
DIOSurfaceSurfaceMtl.mm184 IOSurfaceRef ioSurface = (__bridge IOSurfaceRef)(buffer);
188 size_t surfacePlaneCount = std::max(size_t(1), IOSurfaceGetPlaneCount(ioSurface));
198 if (width <= 0 || static_cast<size_t>(width) > IOSurfaceGetWidthOfPlane(ioSurface, plane) ||
199 height <= 0 || static_cast<size_t>(height) > IOSurfaceGetHeightOfPlane(ioSurface, plane))
217 if (IOSurfaceGetBytesPerElementOfPlane(ioSurface, plane) !=
/external/angle/src/common/gl/cgl/
DFunctionsCGL.cpp56 IOSurfaceRef ioSurface,
58 (ctx, target, internal_format, width, height, format, type, ioSurface, plane))
DFunctionsCGL.h78 IOSurfaceRef ioSurface,
80 (ctx, target, internal_format, width, height, format, type, ioSurface, plane))
/external/angle/src/libANGLE/renderer/gl/eagl/
DIOSurfaceSurfaceEAGL.mm293 IOSurfaceRef ioSurface = reinterpret_cast<IOSurfaceRef>(buffer);
297 size_t surfacePlaneCount = std::max(size_t(1), IOSurfaceGetPlaneCount(ioSurface));
307 if (width <= 0 || static_cast<size_t>(width) > IOSurfaceGetWidthOfPlane(ioSurface, plane) ||
308 height <= 0 || static_cast<size_t>(height) > IOSurfaceGetHeightOfPlane(ioSurface, plane))
326 if (IOSurfaceGetBytesPerElementOfPlane(ioSurface, plane) !=
/external/swiftshader/tests/GLESUnitTests/
Dunittests.cpp2164 ioSurface = nullptr; in EGLClientBufferWrapper()
2173 ioSurface = IOSurfaceCreate(dict); in EGLClientBufferWrapper()
2176 EXPECT_NE(nullptr, ioSurface); in EGLClientBufferWrapper()
2181 IOSurfaceUnlock(ioSurface, kIOSurfaceLockReadOnly, nullptr); in ~EGLClientBufferWrapper()
2183 CFRelease(ioSurface); in ~EGLClientBufferWrapper()
2188 return ioSurface; in getClientBuffer()
2193 IOSurfaceLock(ioSurface, kIOSurfaceLockReadOnly, nullptr); in lockColor()
2194 return reinterpret_cast<const unsigned char *>(IOSurfaceGetBaseAddress(ioSurface)); in lockColor()
2199 IOSurfaceUnlock(ioSurface, kIOSurfaceLockReadOnly, nullptr); in unlockColor()
2205 IOSurfaceLock(ioSurface, 0, nullptr); in writeColor()
[all …]
/external/swiftshader/src/OpenGL/libEGL/
DDisplay.cpp534 IOSurfaceRef ioSurface = reinterpret_cast<IOSurfaceRef>(clientBuffer); in createPBufferSurface() local
535 size_t planeCount = IOSurfaceGetPlaneCount(ioSurface); in createPBufferSurface()
536 if((static_cast<size_t>(width) > IOSurfaceGetWidthOfPlane(ioSurface, ioSurfacePlane)) || in createPBufferSurface()
537 (static_cast<size_t>(height) > IOSurfaceGetHeightOfPlane(ioSurface, ioSurfacePlane)) || in createPBufferSurface()
/external/swiftshader/src/OpenGL/common/
DImage.cpp1066 IOSurfaceRef ioSurface = reinterpret_cast<IOSurfaceRef>(buffer); in pitchP() local
1067 int pitchB = static_cast<int>(IOSurfaceGetBytesPerRowOfPlane(ioSurface, plane)); in pitchP()
1105 IOSurfaceRef ioSurface = reinterpret_cast<IOSurfaceRef>(buffer); in lock() local
1106 IOSurfaceLock(ioSurface, 0, nullptr); in lock()
1107 void* pixels = IOSurfaceGetBaseAddressOfPlane(ioSurface, plane); in lock()
1109 int pitchB = static_cast<int>(IOSurfaceGetBytesPerRowOfPlane(ioSurface, plane)); in lock()
1110 int sliceB = static_cast<int>(IOSurfaceGetHeightOfPlane(ioSurface, plane)) * pitchB; in lock()
1128 IOSurfaceRef ioSurface = reinterpret_cast<IOSurfaceRef>(buffer); in unlock() local
1129 IOSurfaceUnlock(ioSurface, 0, nullptr); in unlock()