diff options
author | 2015-02-04 22:08:27 +0000 | |
---|---|---|
committer | 2015-02-04 22:08:27 +0000 | |
commit | c7e6b93aba9dce93aacb05b5d9f59d09eddb0329 (patch) | |
tree | 4ac6ea4f9cdc30c08c5a6f81f3301220667e5679 /libs/hwui/PathCache.cpp | |
parent | 4c49b1fb774d59d3a6e8a6bb5a4549828504c5af (diff) | |
parent | af6eaf656ec0de5fcbea03968daffe2c845e2089 (diff) |
am af6eaf65: Merge "Fix ANR caused by hwuiTask thread" automerge: 5ad36d4
* commit 'af6eaf656ec0de5fcbea03968daffe2c845e2089':
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 80f9c2f20412..f3d1b34ad231 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); + } } } |