diff options
author | Mathias Agopian <mathias@google.com> | 2009-04-20 19:39:12 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-04-24 16:22:36 -0700 |
commit | f1d8e87b09abf963cd5b6a026194c1940fadb7b4 (patch) | |
tree | f26b490726ff7548b08cd705f1411fe13528e6a4 /include/private/ui | |
parent | 9a11206fe793363c0e8897b478cbe6ef8c52b543 (diff) | |
download | frameworks_native-f1d8e87b09abf963cd5b6a026194c1940fadb7b4.zip frameworks_native-f1d8e87b09abf963cd5b6a026194c1940fadb7b4.tar.gz frameworks_native-f1d8e87b09abf963cd5b6a026194c1940fadb7b4.tar.bz2 |
a brand new MessageQueue for SurfaceFlinger.
Diffstat (limited to 'include/private/ui')
-rw-r--r-- | include/private/ui/SurfaceFlingerSynchro.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/include/private/ui/SurfaceFlingerSynchro.h b/include/private/ui/SurfaceFlingerSynchro.h index ff91b61..7386d33 100644 --- a/include/private/ui/SurfaceFlingerSynchro.h +++ b/include/private/ui/SurfaceFlingerSynchro.h @@ -21,7 +21,6 @@ #include <stdint.h> #include <sys/types.h> #include <utils/Errors.h> -#include <utils/threads.h> #include <ui/ISurfaceComposer.h> namespace android { @@ -31,7 +30,6 @@ class SurfaceFlinger; class SurfaceFlingerSynchro { public: - // client constructor SurfaceFlingerSynchro(const sp<ISurfaceComposer>& flinger); ~SurfaceFlingerSynchro(); @@ -40,34 +38,8 @@ public: status_t signal(); private: - class Barrier { - public: - Barrier(); - ~Barrier(); - void open(); - void close(); - void waitAndClose(); - status_t waitAndClose(nsecs_t timeout); - private: - enum { OPENED, CLOSED }; - mutable Mutex lock; - mutable Condition cv; - volatile int state; - }; - friend class SurfaceFlinger; - - // server constructor - SurfaceFlingerSynchro(); - - void open(); - - // wait until there is some work to do - status_t wait(); - status_t wait(nsecs_t timeout); - sp<ISurfaceComposer> mSurfaceComposer; - Barrier mBarrier; }; }; // namespace android |