am e5783e58: am 2abf0f24: Fix a race condition that could cause lockup

* commit 'e5783e58db79f342ae0e264dc9c902cca92fc7bb':
  Fix a race condition that could cause lockup
This commit is contained in:
John Reck
2015-07-24 03:08:37 +00:00
committed by Android Git Automerger

View File

@ -248,11 +248,6 @@ void Caches::clearGarbage() {
void Caches::flush(FlushMode mode) {
FLUSH_LOGD("Flushing caches (mode %d)", mode);
// We must stop tasks before clearing caches
if (mode > kFlushMode_Layers) {
tasks.stop();
}
switch (mode) {
case kFlushMode_Full:
textureCache.clear();