summaryrefslogtreecommitdiff
path: root/libs/ui/FramebufferNativeWindow.cpp
diff options
context:
space:
mode:
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
commit69029eb5abfaeb52716b84db89e32dc742551508 (patch)
tree42f99fe892035c13c17fcee07582a607a5566355 /libs/ui/FramebufferNativeWindow.cpp
parent4c4b387afb2e775fcac3b81a249bb7646515dffa (diff)
hack copybit back in for video playback on msm7k. we have h/w accelerated video again
Diffstat (limited to 'libs/ui/FramebufferNativeWindow.cpp')
-rw-r--r--libs/ui/FramebufferNativeWindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/ui/FramebufferNativeWindow.cpp b/libs/ui/FramebufferNativeWindow.cpp
index 8c8fd6bb0f..406c0725c0 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;