commit | 4e0c1f27fdefdd9b0208ea64542c1e39d9327eb9 | [log] [tgz] |
---|---|---|
author | Romain Guy <romainguy@google.com> | Wed Sep 08 18:04:33 2010 -0700 |
committer | Romain Guy <romainguy@google.com> | Wed Sep 08 18:04:33 2010 -0700 |
tree | 4ac70e2eb3187ef2007acbb071168cb110aaf6be | |
parent | 65d0f993e7c9e3cb4cbdc398822534d713ce2a55 [diff] [blame] |
Purge Skia objects from GL caches as needed. Change-Id: I754c671cf790ad5ae8bf047ad328034217da4ecc
diff --git a/include/utils/Singleton.h b/include/utils/Singleton.h index 3b975b4..e1ee8eb 100644 --- a/include/utils/Singleton.h +++ b/include/utils/Singleton.h
@@ -37,6 +37,11 @@ } return *instance; } + + static bool hasInstance() { + Mutex::Autolock _l(sLock); + return sInstance != 0; + } protected: ~Singleton() { };