Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa017cd3 authored by Romain Guy's avatar Romain Guy Committed by Android Git Automerger
Browse files

am 34d89c6b: am 836d335f: Merge "Prevent ANR in apps using drawPath() Bug #10347089" into klp-dev

* commit '34d89c6b':
  Prevent ANR in apps using drawPath() Bug #10347089
parents e710a5f5 34d89c6b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -331,6 +331,11 @@ void Caches::deleteDisplayListDeferred(DisplayList* displayList) {
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();
@@ -345,7 +350,6 @@ void Caches::flush(FlushMode mode) {
            fontRenderer->flush();
            textureCache.flush();
            pathCache.clear();
            tasks.stop();
            // fall through
        case kFlushMode_Layers:
            layerCache.clear();