Purge Skia objects from GL caches as needed.

Change-Id: I754c671cf790ad5ae8bf047ad328034217da4ecc
This commit is contained in:
Romain Guy 2010-09-08 18:04:33 -07:00
parent 65d0f993e7
commit 4e0c1f27fd
1 changed files with 5 additions and 0 deletions

View File

@ -37,6 +37,11 @@ public:
}
return *instance;
}
static bool hasInstance() {
Mutex::Autolock _l(sLock);
return sInstance != 0;
}
protected:
~Singleton() { };