summaryrefslogtreecommitdiffstats
path: root/libs/surfaceflinger/BufferAllocator.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-04-17 14:15:18 -0700
committerMathias Agopian <mathias@google.com>2009-04-24 15:00:41 -0700
commit2b1927f686eaec23a5798966b96aadaee3e2eb85 (patch)
tree7ae57d36ad4b8665c0761e264e84ce8fe9c68c5f /libs/surfaceflinger/BufferAllocator.cpp
parentf670127afccf156681db8a144e49cecb22d744e1 (diff)
downloadframeworks_base-2b1927f686eaec23a5798966b96aadaee3e2eb85.zip
frameworks_base-2b1927f686eaec23a5798966b96aadaee3e2eb85.tar.gz
frameworks_base-2b1927f686eaec23a5798966b96aadaee3e2eb85.tar.bz2
Squashed commit of the following:
commit e5c24638f98162c3b75b4c67a16b510d38e31341 Author: Mathias Agopian <mathias@google.com> Date: Fri Apr 17 14:09:03 2009 -0700 oops forgot this file. commit 282642632d0cb12882eecf42e0fdfb2343275de1 Author: Mathias Agopian <mathias@google.com> Date: Fri Apr 17 14:07:32 2009 -0700 use a helper macro for creating Singleton<>'s static attributes instances.
Diffstat (limited to 'libs/surfaceflinger/BufferAllocator.cpp')
-rw-r--r--libs/surfaceflinger/BufferAllocator.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/surfaceflinger/BufferAllocator.cpp b/libs/surfaceflinger/BufferAllocator.cpp
index 28fe810..fec7c87 100644
--- a/libs/surfaceflinger/BufferAllocator.cpp
+++ b/libs/surfaceflinger/BufferAllocator.cpp
@@ -34,8 +34,7 @@
namespace android {
// ---------------------------------------------------------------------------
-template<class BufferAllocator> Mutex Singleton<BufferAllocator>::sLock;
-template<> BufferAllocator* Singleton<BufferAllocator>::sInstance(0);
+ANDROID_SINGLETON_STATIC_INSTANCE( BufferAllocator )
Mutex BufferAllocator::sLock;
KeyedVector<buffer_handle_t, BufferAllocator::alloc_rec_t> BufferAllocator::sAllocList;