summaryrefslogtreecommitdiffstats
path: root/libs/hwui/PathCache.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2015-02-04 14:47:23 -0800
committerJohn Reck <jreck@google.com>2015-02-04 14:47:23 -0800
commit3f5175fccd39c341064e8bd86cb03dba4bc6881c (patch)
tree0fb273df4aed6739bbeba197a9f31635bdbbc7a3 /libs/hwui/PathCache.cpp
parent37a6ad9755cbf49929f089523c99ad187f22b63b (diff)
parentc7e6b93aba9dce93aacb05b5d9f59d09eddb0329 (diff)
downloadframeworks_base-3f5175fccd39c341064e8bd86cb03dba4bc6881c.zip
frameworks_base-3f5175fccd39c341064e8bd86cb03dba4bc6881c.tar.gz
frameworks_base-3f5175fccd39c341064e8bd86cb03dba4bc6881c.tar.bz2
resolved conflicts for merge of c7e6b93a to master
Change-Id: I4b791f37193727a0306214645f2f98cdf218cad0
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 d6eff85..e2caf8b 100644
--- a/libs/hwui/PathCache.cpp
+++ b/libs/hwui/PathCache.cpp
@@ -492,7 +492,9 @@ void PathCache::precache(const SkPath* path, const SkPaint* paint) {
if (mProcessor == nullptr) {
mProcessor = new PathProcessor(Caches::getInstance());
}
- mProcessor->add(task);
+ if (!mProcessor->add(task)) {
+ mProcessor->process(task);
+ }
}
}