summaryrefslogtreecommitdiff
path: root/libs/hwui/PathCache.cpp
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2015-02-04 22:08:27 +0000
committer Android Git Automerger <android-git-automerger@android.com> 2015-02-04 22:08:27 +0000
commitc7e6b93aba9dce93aacb05b5d9f59d09eddb0329 (patch)
tree4ac6ea4f9cdc30c08c5a6f81f3301220667e5679 /libs/hwui/PathCache.cpp
parent4c49b1fb774d59d3a6e8a6bb5a4549828504c5af (diff)
parentaf6eaf656ec0de5fcbea03968daffe2c845e2089 (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.cpp4
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);
+ }
}
}