diff options
author | Mathias Agopian <mathias@google.com> | 2009-04-17 14:15:18 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-04-24 15:00:41 -0700 |
commit | 2b1927f686eaec23a5798966b96aadaee3e2eb85 (patch) | |
tree | 7ae57d36ad4b8665c0761e264e84ce8fe9c68c5f /libs/ui | |
parent | f670127afccf156681db8a144e49cecb22d744e1 (diff) | |
download | frameworks_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/ui')
-rw-r--r-- | libs/ui/BufferMapper.cpp | 3 | ||||
-rw-r--r-- | libs/ui/Surface.cpp | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/libs/ui/BufferMapper.cpp b/libs/ui/BufferMapper.cpp index e6ca239..85a029b 100644 --- a/libs/ui/BufferMapper.cpp +++ b/libs/ui/BufferMapper.cpp @@ -44,8 +44,7 @@ namespace android { // --------------------------------------------------------------------------- -template<class BufferMapper> Mutex Singleton<BufferMapper>::sLock; -template<> BufferMapper* Singleton<BufferMapper>::sInstance(0); +ANDROID_SINGLETON_STATIC_INSTANCE( BufferMapper ) BufferMapper::BufferMapper() : mAllocMod(0) diff --git a/libs/ui/Surface.cpp b/libs/ui/Surface.cpp index 47880f5..fb105b3 100644 --- a/libs/ui/Surface.cpp +++ b/libs/ui/Surface.cpp @@ -50,8 +50,7 @@ namespace android { // SurfaceBuffer // ============================================================================ -template<class SurfaceBuffer> Mutex Singleton<SurfaceBuffer>::sLock; -template<> SurfaceBuffer* Singleton<SurfaceBuffer>::sInstance(0); +ANDROID_SINGLETON_STATIC_INSTANCE( SurfaceBuffer ) SurfaceBuffer::SurfaceBuffer() : BASE(), handle(0), mOwner(false) |