diff options
author | 2015-02-04 21:58:39 +0000 | |
---|---|---|
committer | 2015-02-04 21:58:39 +0000 | |
commit | af6eaf656ec0de5fcbea03968daffe2c845e2089 (patch) | |
tree | b65334ee41c519e1a05aa9489b469b0592694728 /libs/hwui/PathCache.cpp | |
parent | b2d7ca7c6ffbb460dd8a8f8cbac8b627a3e27718 (diff) | |
parent | 5ad36d4591e7b3b1b74f0a213d18384f53734ab2 (diff) |
Merge "Fix ANR caused by hwuiTask thread"
automerge: 5ad36d4
* commit '5ad36d4591e7b3b1b74f0a213d18384f53734ab2':
Fix ANR caused by hwuiTask thread
Diffstat (limited to 'libs/hwui/PathCache.cpp')
-rw-r--r-- | libs/hwui/PathCache.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/hwui/PathCache.cpp b/libs/hwui/PathCache.cpp index a3d70197cb0f..302d1a920750 100644 --- a/libs/hwui/PathCache.cpp +++ b/libs/hwui/PathCache.cpp @@ -493,7 +493,9 @@ void PathCache::precache(const SkPath* path, const SkPaint* paint) { if (mProcessor == NULL) { mProcessor = new PathProcessor(Caches::getInstance()); } - mProcessor->add(task); + if (!mProcessor->add(task)) { + mProcessor->process(task); + } } } |