hack copybit back in for video playback on msm7k. we have h/w accelerated video again
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user