diff options
author | Mathias Agopian <mathias@google.com> | 2009-06-23 21:11:43 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-06-24 20:39:16 -0700 |
commit | cbc4c9f8d56317b2fe8964c15c9785ebeef98ca7 (patch) | |
tree | 131ba56996017a0493c681ef86c3f49bbcfa9dd3 /libs/ui | |
parent | f31868e59fbf59a8d479587c80b648fb37a166fc (diff) | |
download | frameworks_base-cbc4c9f8d56317b2fe8964c15c9785ebeef98ca7.zip frameworks_base-cbc4c9f8d56317b2fe8964c15c9785ebeef98ca7.tar.gz frameworks_base-cbc4c9f8d56317b2fe8964c15c9785ebeef98ca7.tar.bz2 |
hack copybit back in for video playback on msm7k. we have h/w accelerated video again
Diffstat (limited to 'libs/ui')
-rw-r--r-- | libs/ui/FramebufferNativeWindow.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/ui/FramebufferNativeWindow.cpp b/libs/ui/FramebufferNativeWindow.cpp index 8c8fd6b..406c072 100644 --- a/libs/ui/FramebufferNativeWindow.cpp +++ b/libs/ui/FramebufferNativeWindow.cpp @@ -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; |