From 26c28b16f3464eeb98b091b915ccf494ac31c35f Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Wed, 24 Jun 2009 22:39:26 -0700 Subject: make use of new eglGetRenderBufferANDROID extension to clean-up a bit a few hacks added recently --- libs/ui/FramebufferNativeWindow.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'libs/ui/FramebufferNativeWindow.cpp') diff --git a/libs/ui/FramebufferNativeWindow.cpp b/libs/ui/FramebufferNativeWindow.cpp index 406c0725c063..8c8fd6bb0f9d 100644 --- a/libs/ui/FramebufferNativeWindow.cpp +++ b/libs/ui/FramebufferNativeWindow.cpp @@ -63,11 +63,6 @@ private: }; -android_native_buffer_t const* FramebufferNativeWindow::getBackbuffer() const { - return static_cast(buffers[mLastDequeued].get()); -} - - /* * This implements the (main) framebuffer management. This class is used * mostly by SurfaceFlinger, but also by command line GL application. @@ -170,7 +165,6 @@ int FramebufferNativeWindow::dequeueBuffer(android_native_window_t* window, if (self->mBufferHead >= self->mNumBuffers) self->mBufferHead = 0; - self->mLastDequeued = index; *buffer = self->buffers[index].get(); return 0; -- cgit v1.2.3-59-g8ed1b