Home | History | Annotate | Download | only in libagl

Lines Matching refs:buffer

243     ANativeWindowBuffer*   buffer;
345 nativeWindow(window), buffer(0), previousBuffer(0), module(0),
361 if (buffer) {
362 buffer->common.decRef(&buffer->common);
376 // dequeue a buffer
378 if (nativeWindow->dequeueBuffer(nativeWindow, &buffer,
383 // wait for the buffer
386 nativeWindow->cancelBuffer(nativeWindow, buffer, fenceFd);
390 // allocate a corresponding depth-buffer
391 width = buffer->width;
392 height = buffer->height;
403 // keep a reference on the buffer
404 buffer->common.incRef(&buffer->common);
406 // pin the buffer down
407 if (lock(buffer, GRALLOC_USAGE_SW_READ_OFTEN |
409 ALOGE("connect() failed to lock buffer %p (%ux%u)",
410 buffer, buffer->width, buffer->height);
412 // FIXME: we should make sure we're not accessing the buffer anymore
419 if (buffer && bits) {
421 unlock(buffer);
423 if (buffer) {
424 nativeWindow->cancelBuffer(nativeWindow, buffer, -1);
425 buffer->common.decRef(&buffer->common);
426 buffer = 0;
494 if (!buffer) {
500 * We copyback from the front buffer
503 dirtyRegion.andSelf(Rect(buffer->width, buffer->height));
512 // copy from previousBuffer to buffer
513 copyBlt(buffer, bits, previousBuffer, prevBits, copyBack);
526 unlock(buffer);
527 previousBuffer = buffer;
528 nativeWindow->queueBuffer(nativeWindow, buffer, -1);
529 buffer = 0;
531 // dequeue a new buffer
533 if (nativeWindow->dequeueBuffer(nativeWindow, &buffer, &fenceFd) == NO_ERROR) {
536 nativeWindow->cancelBuffer(nativeWindow, buffer, fenceFd);
540 // reallocate the depth-buffer if needed
541 if ((width != buffer->width) || (height != buffer->height)) {
544 width = buffer->width;
545 height = buffer->height;
550 depth.stride = buffer->stride;
559 // keep a reference on the buffer
560 buffer->common.incRef(&buffer->common);
562 // finally pin the buffer down
563 if (lock(buffer, GRALLOC_USAGE_SW_READ_OFTEN |
565 ALOGE("eglSwapBuffers() failed to lock buffer %p (%ux%u)",
566 buffer, buffer->width, buffer->height);
568 // FIXME: we should make sure we're not accessing the buffer anymore
586 GGLSurface buffer;
587 buffer.version = sizeof(GGLSurface);
588 buffer.width = this->buffer->width;
589 buffer.height = this->buffer->height;
590 buffer.stride = this->buffer->stride;
591 buffer.data = (GGLubyte*)bits;
592 buffer.format = this->buffer->format;
593 gl->rasterizer.procs.colorBuffer(gl, &buffer);
601 GGLSurface buffer;
602 buffer.version = sizeof(GGLSurface);
603 buffer.width = this->buffer->width;
604 buffer.height = this->buffer->height;
605 buffer.stride = this->buffer->stride;
606 buffer.data = (GGLubyte*)bits; // FIXME: hopefully is is LOCKED!!!
607 buffer.format = this->buffer->format;
608 gl->rasterizer.procs.readBuffer(gl, &buffer);
624 * the content of the swapped buffer.
626 * EGL_BUFFER_DESTROYED means that the content of the buffer is lost.
677 GGLSurface buffer;
678 buffer.version = sizeof(GGLSurface);
679 buffer.width = nativePixmap.width;
680 buffer.height = nativePixmap.height;
681 buffer.stride = nativePixmap.stride;
682 buffer.data = nativePixmap.data;
683 buffer.format = nativePixmap.format;
685 gl->rasterizer.procs.colorBuffer(gl, &buffer);
692 GGLSurface buffer;
693 buffer.version = sizeof(GGLSurface);
694 buffer.width = nativePixmap.width;
695 buffer.height = nativePixmap.height;
696 buffer.stride = nativePixmap.stride;
697 buffer.data = nativePixmap.data;
698 buffer.format = nativePixmap.format;
699 gl->rasterizer.procs.readBuffer(gl, &buffer);
1844 // Returns the ID of the EGL frame buffer configuration with
1875 // if it's bound to a context, update the buffer
1879 // it is bound to, make sure to update the read buffer as well.
1936 EGLDisplay dpy, EGLSurface surface, EGLint buffer)
1945 EGLDisplay dpy, EGLSurface surface, EGLint buffer)
1990 EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer,
2028 EGLClientBuffer buffer, const EGLint *attrib_list)
2040 ANativeWindowBuffer* native_buffer = (ANativeWindowBuffer*)buffer;