hack copybit back in for video playback on msm7k. we have h/w accelerated video again

This commit is contained in:
Mathias Agopian
2009-06-23 21:11:43 -07:00
parent f31868e59f
commit cbc4c9f8d5
6 changed files with 142 additions and 12 deletions

View File

@@ -63,6 +63,11 @@ private:
};
android_native_buffer_t const* FramebufferNativeWindow::getBackbuffer() const {
return static_cast<android_native_buffer_t const*>(buffers[mLastDequeued].get());
}
/*
* This implements the (main) framebuffer management. This class is used
* mostly by SurfaceFlinger, but also by command line GL application.
@@ -165,6 +170,7 @@ 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;