Home
last modified time | relevance | path

Searched refs:native_buffer (Results 1 – 3 of 3) 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()
1610 ANativeWindowBuffer* native_buffer = (ANativeWindowBuffer*)image; in glEGLImageTargetTexture2DOES() local
1611 if (native_buffer->common.magic != ANDROID_NATIVE_BUFFER_MAGIC) { in glEGLImageTargetTexture2DOES()
1615 if (native_buffer->common.version != sizeof(ANativeWindowBuffer)) { in glEGLImageTargetTexture2DOES()
[all …]
Degl.cpp2058 ANativeWindowBuffer* native_buffer = (ANativeWindowBuffer*)buffer; in eglCreateImageKHR() local
2060 if (native_buffer->common.magic != ANDROID_NATIVE_BUFFER_MAGIC) in eglCreateImageKHR()
2063 if (native_buffer->common.version != sizeof(ANativeWindowBuffer)) in eglCreateImageKHR()
2066 switch (native_buffer->format) { in eglCreateImageKHR()
2077 native_buffer->common.incRef(&native_buffer->common); in eglCreateImageKHR()
2078 return (EGLImageKHR)native_buffer; in eglCreateImageKHR()
2087 ANativeWindowBuffer* native_buffer = (ANativeWindowBuffer*)img; in eglDestroyImageKHR() local
2089 if (native_buffer->common.magic != ANDROID_NATIVE_BUFFER_MAGIC) in eglDestroyImageKHR()
2092 if (native_buffer->common.version != sizeof(ANativeWindowBuffer)) in eglDestroyImageKHR()
2095 native_buffer->common.decRef(&native_buffer->common); in eglDestroyImageKHR()