diff options
author | 2010-09-08 18:04:33 -0700 | |
---|---|---|
committer | 2010-09-08 18:04:33 -0700 | |
commit | 4e0c1f27fdefdd9b0208ea64542c1e39d9327eb9 (patch) | |
tree | 4ac70e2eb3187ef2007acbb071168cb110aaf6be | |
parent | 65d0f993e7c9e3cb4cbdc398822534d713ce2a55 (diff) |
Purge Skia objects from GL caches as needed.
Change-Id: I754c671cf790ad5ae8bf047ad328034217da4ecc
-rw-r--r-- | include/utils/Singleton.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/utils/Singleton.h b/include/utils/Singleton.h index 3b975b4c44..e1ee8eb068 100644 --- a/include/utils/Singleton.h +++ b/include/utils/Singleton.h @@ -37,6 +37,11 @@ public: } return *instance; } + + static bool hasInstance() { + Mutex::Autolock _l(sLock); + return sInstance != 0; + } protected: ~Singleton() { }; |