Purge Skia objects from GL caches as needed.
Change-Id: I754c671cf790ad5ae8bf047ad328034217da4ecc
This commit is contained in:
parent
65d0f993e7
commit
4e0c1f27fd
|
@ -37,6 +37,11 @@ public:
|
|||
}
|
||||
return *instance;
|
||||
}
|
||||
|
||||
static bool hasInstance() {
|
||||
Mutex::Autolock _l(sLock);
|
||||
return sInstance != 0;
|
||||
}
|
||||
|
||||
protected:
|
||||
~Singleton() { };
|
||||
|
|
Loading…
Reference in New Issue