Searched refs:native_buffer (Results 1 – 4 of 4) sorted by relevance
146 status_t EGLTextureObject::setImage(ANativeWindowBuffer* native_buffer) in setImage() argument150 sur.width = native_buffer->width; in setImage()151 sur.height= native_buffer->height; in setImage()152 sur.stride= native_buffer->stride; in setImage()153 sur.format= native_buffer->format; in setImage()156 buffer = native_buffer; in setImage()
131 ANativeWindowBuffer* native_buffer = u.texture->buffer; in ogles_lock_textures() local132 if (native_buffer) { in ogles_lock_textures()137 mapper.lock(native_buffer->handle, GRALLOC_USAGE_SW_READ_OFTEN, in ogles_lock_textures()138 Rect(native_buffer->width, native_buffer->height), in ogles_lock_textures()153 ANativeWindowBuffer* native_buffer = u.texture->buffer; in ogles_unlock_textures() local154 if (native_buffer) { in ogles_unlock_textures()158 mapper.unlock(native_buffer->handle); in ogles_unlock_textures()1604 ANativeWindowBuffer* native_buffer = (ANativeWindowBuffer*)image; in glEGLImageTargetTexture2DOES() local1605 if (native_buffer->common.magic != ANDROID_NATIVE_BUFFER_MAGIC) { in glEGLImageTargetTexture2DOES()1609 if (native_buffer->common.version != sizeof(ANativeWindowBuffer)) { in glEGLImageTargetTexture2DOES()[all …]
2100 ANativeWindowBuffer* native_buffer = (ANativeWindowBuffer*)buffer; in eglCreateImageKHR() local2102 if (native_buffer->common.magic != ANDROID_NATIVE_BUFFER_MAGIC) in eglCreateImageKHR()2105 if (native_buffer->common.version != sizeof(ANativeWindowBuffer)) in eglCreateImageKHR()2108 switch (native_buffer->format) { in eglCreateImageKHR()2119 native_buffer->common.incRef(&native_buffer->common); in eglCreateImageKHR()2120 return (EGLImageKHR)native_buffer; in eglCreateImageKHR()2129 ANativeWindowBuffer* native_buffer = (ANativeWindowBuffer*)img; in eglDestroyImageKHR() local2131 if (native_buffer->common.magic != ANDROID_NATIVE_BUFFER_MAGIC) in eglDestroyImageKHR()2134 if (native_buffer->common.version != sizeof(ANativeWindowBuffer)) in eglDestroyImageKHR()2137 native_buffer->common.decRef(&native_buffer->common); in eglDestroyImageKHR()
1920 VkNativeBufferANDROID native_buffer = { in InterceptBindImageMemory2() local1934 out_native_buffers->emplace_back(native_buffer); in InterceptBindImageMemory2()