From c9289fa1c4d3aeba5122863cdae7d0a9806d8833 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Thu, 26 Aug 2010 17:42:27 -0700 Subject: fix a race in SF buffer management also remove some unused code. Change-Id: Iae2c3309b7a08055f3e13a5b866c5c084993e352 --- include/private/surfaceflinger/SharedBufferStack.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') 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()(); -- cgit v1.1