summaryrefslogtreecommitdiffstats
path: root/include/private
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-08-26 17:42:27 -0700
committerMathias Agopian <mathias@google.com>2010-08-26 17:42:27 -0700
commitd7c43d3d1ec96e3e3a9ed1faf3ccb2edc949b390 (patch)
treef9b24515784310f4055f3a9cc3e2eec071a9b778 /include/private
parent640a72ecf2feb1ee5152d70234ff48d3be0e5ddf (diff)
downloadframeworks_av-d7c43d3d1ec96e3e3a9ed1faf3ccb2edc949b390.zip
frameworks_av-d7c43d3d1ec96e3e3a9ed1faf3ccb2edc949b390.tar.gz
frameworks_av-d7c43d3d1ec96e3e3a9ed1faf3ccb2edc949b390.tar.bz2
fix a race in SF buffer management
also remove some unused code. Change-Id: Iae2c3309b7a08055f3e13a5b866c5c084993e352
Diffstat (limited to 'include/private')
-rw-r--r--include/private/surfaceflinger/SharedBufferStack.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/private/surfaceflinger/SharedBufferStack.h b/include/private/surfaceflinger/SharedBufferStack.h
index d016dfa..d689667 100644
--- a/include/private/surfaceflinger/SharedBufferStack.h
+++ b/include/private/surfaceflinger/SharedBufferStack.h
@@ -151,7 +151,6 @@ public:
~SharedBufferBase();
status_t getStatus() const;
int32_t getIdentity() const;
- size_t getFrontBuffer() const;
String8 dump(char const* prefix) const;
protected:
@@ -226,6 +225,11 @@ private:
inline ssize_t operator()();
};
+ struct DequeueUpdate : public UpdateBase {
+ inline DequeueUpdate(SharedBufferBase* sbb);
+ inline ssize_t operator()();
+ };
+
struct UndoDequeueUpdate : public UpdateBase {
inline UndoDequeueUpdate(SharedBufferBase* sbb);
inline ssize_t operator()();