Home
last modified time | relevance | path

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

/device/generic/goldfish/opengl/system/GLESv2/
Dgl2.cpp58 android_native_buffer_t* native_buffer = (android_native_buffer_t*)image; in glEGLImageTargetTexture2DOES() local
60 if (native_buffer->common.magic != ANDROID_NATIVE_BUFFER_MAGIC) { in glEGLImageTargetTexture2DOES()
64 if (native_buffer->common.version != sizeof(android_native_buffer_t)) { in glEGLImageTargetTexture2DOES()
72 rcEnc->rcBindTexture(rcEnc, ((cb_handle_t *)(native_buffer->handle))->hostHandle); in glEGLImageTargetTexture2DOES()
85 android_native_buffer_t* native_buffer = (android_native_buffer_t*)image; in glEGLImageTargetRenderbufferStorageOES() local
87 if (native_buffer->common.magic != ANDROID_NATIVE_BUFFER_MAGIC) { in glEGLImageTargetRenderbufferStorageOES()
91 if (native_buffer->common.version != sizeof(android_native_buffer_t)) { in glEGLImageTargetRenderbufferStorageOES()
96 rcEnc->rcBindRenderbuffer(rcEnc, ((cb_handle_t *)(native_buffer->handle))->hostHandle); in glEGLImageTargetRenderbufferStorageOES()
/device/generic/goldfish/opengl/system/GLESv1/
Dgl.cpp57 android_native_buffer_t* native_buffer = (android_native_buffer_t*)image; in glEGLImageTargetTexture2DOES() local
59 if (native_buffer->common.magic != ANDROID_NATIVE_BUFFER_MAGIC) { in glEGLImageTargetTexture2DOES()
63 if (native_buffer->common.version != sizeof(android_native_buffer_t)) { in glEGLImageTargetTexture2DOES()
72 ((cb_handle_t *)(native_buffer->handle))->hostHandle); in glEGLImageTargetTexture2DOES()
86 android_native_buffer_t* native_buffer = (android_native_buffer_t*)image; in glEGLImageTargetRenderbufferStorageOES() local
88 if (native_buffer->common.magic != ANDROID_NATIVE_BUFFER_MAGIC) { in glEGLImageTargetRenderbufferStorageOES()
92 if (native_buffer->common.version != sizeof(android_native_buffer_t)) { in glEGLImageTargetRenderbufferStorageOES()
98 ((cb_handle_t *)(native_buffer->handle))->hostHandle); in glEGLImageTargetRenderbufferStorageOES()
/device/generic/goldfish/opengl/system/egl/
Degl.cpp1188 android_native_buffer_t* native_buffer = (android_native_buffer_t*)buffer; in eglCreateImageKHR() local
1190 if (native_buffer->common.magic != ANDROID_NATIVE_BUFFER_MAGIC) in eglCreateImageKHR()
1193 if (native_buffer->common.version != sizeof(android_native_buffer_t)) in eglCreateImageKHR()
1196 cb_handle_t *cb = (cb_handle_t *)(native_buffer->handle); in eglCreateImageKHR()
1209 native_buffer->common.incRef(&native_buffer->common); in eglCreateImageKHR()
1210 return (EGLImageKHR)native_buffer; in eglCreateImageKHR()
1216 android_native_buffer_t* native_buffer = (android_native_buffer_t*)img; in eglDestroyImageKHR() local
1218 if (native_buffer->common.magic != ANDROID_NATIVE_BUFFER_MAGIC) in eglDestroyImageKHR()
1221 if (native_buffer->common.version != sizeof(android_native_buffer_t)) in eglDestroyImageKHR()
1224 native_buffer->common.decRef(&native_buffer->common); in eglDestroyImageKHR()