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
commit0e7f4292c78ef32643fdb10134e91e84067515fc (patch)
tree0adbea05f86d2d45179af18b475cab42632bd0cf /include/private
parent404860ee66524767cb5522cc0c0d84d7e1059abe (diff)
downloadframeworks_native-0e7f4292c78ef32643fdb10134e91e84067515fc.zip
frameworks_native-0e7f4292c78ef32643fdb10134e91e84067515fc.tar.gz
frameworks_native-0e7f4292c78ef32643fdb10134e91e84067515fc.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()();