Home
last modified time | relevance | path

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

/frameworks/native/opengl/libagl/
DTextureObjectManager.cpp146 status_t EGLTextureObject::setImage(ANativeWindowBuffer* native_buffer) in setImage() argument
150 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()
Dtexture.cpp131 ANativeWindowBuffer* native_buffer = u.texture->buffer; in ogles_lock_textures() local
132 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() local
154 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() local
1605 if (native_buffer->common.magic != ANDROID_NATIVE_BUFFER_MAGIC) { in glEGLImageTargetTexture2DOES()
1609 if (native_buffer->common.version != sizeof(ANativeWindowBuffer)) { in glEGLImageTargetTexture2DOES()
[all …]
Degl.cpp2100 ANativeWindowBuffer* native_buffer = (ANativeWindowBuffer*)buffer; in eglCreateImageKHR() local
2102 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() local
2131 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()
/frameworks/native/vulkan/libvulkan/
Dswapchain.cpp1920 VkNativeBufferANDROID native_buffer = { in InterceptBindImageMemory2() local
1934 out_native_buffers->emplace_back(native_buffer); in InterceptBindImageMemory2()