Searched refs:native_buffer (Results 1 – 3 of 3) 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()
128 ANativeWindowBuffer* native_buffer = u.texture->buffer; in ogles_lock_textures() local129 if (native_buffer) { in ogles_lock_textures()139 int err = module->lock(module, native_buffer->handle, in ogles_lock_textures()141 0, 0, native_buffer->width, native_buffer->height, in ogles_lock_textures()156 ANativeWindowBuffer* native_buffer = u.texture->buffer; in ogles_unlock_textures() local157 if (native_buffer) { in ogles_unlock_textures()166 module->unlock(module, native_buffer->handle); in ogles_unlock_textures()1617 ANativeWindowBuffer* native_buffer = (ANativeWindowBuffer*)image; in glEGLImageTargetTexture2DOES() local1618 if (native_buffer->common.magic != ANDROID_NATIVE_BUFFER_MAGIC) { in glEGLImageTargetTexture2DOES()1622 if (native_buffer->common.version != sizeof(ANativeWindowBuffer)) { in glEGLImageTargetTexture2DOES()[all …]
2068 ANativeWindowBuffer* native_buffer = (ANativeWindowBuffer*)buffer; in eglCreateImageKHR() local2070 if (native_buffer->common.magic != ANDROID_NATIVE_BUFFER_MAGIC) in eglCreateImageKHR()2073 if (native_buffer->common.version != sizeof(ANativeWindowBuffer)) in eglCreateImageKHR()2076 switch (native_buffer->format) { in eglCreateImageKHR()2087 native_buffer->common.incRef(&native_buffer->common); in eglCreateImageKHR()2088 return (EGLImageKHR)native_buffer; in eglCreateImageKHR()2097 ANativeWindowBuffer* native_buffer = (ANativeWindowBuffer*)img; in eglDestroyImageKHR() local2099 if (native_buffer->common.magic != ANDROID_NATIVE_BUFFER_MAGIC) in eglDestroyImageKHR()2102 if (native_buffer->common.version != sizeof(ANativeWindowBuffer)) in eglDestroyImageKHR()2105 native_buffer->common.decRef(&native_buffer->common); in eglDestroyImageKHR()