Merge "When deleting a path, remove it from the path cache. Bug #4170585"
This commit is contained in:
@ -93,7 +93,9 @@ void DisplayList::clearResources() {
|
||||
mPaints.clear();
|
||||
|
||||
for (size_t i = 0; i < mPaths.size(); i++) {
|
||||
delete mPaths.itemAt(i);
|
||||
SkPath* path = mPaths.itemAt(i);
|
||||
caches.pathCache.remove(path);
|
||||
delete path;
|
||||
}
|
||||
mPaths.clear();
|
||||
|
||||
|
@ -89,8 +89,11 @@ struct ShapeCacheEntry {
|
||||
join = SkPaint::kDefault_Join;
|
||||
cap = SkPaint::kDefault_Cap;
|
||||
style = SkPaint::kFill_Style;
|
||||
miter = 4.0f;
|
||||
strokeWidth = 1.0f;
|
||||
float v = 4.0f;
|
||||
miter = *(uint32_t*) &v;
|
||||
v = 1.0f;
|
||||
strokeWidth = *(uint32_t*) &v;
|
||||
pathEffect = NULL;
|
||||
}
|
||||
|
||||
ShapeCacheEntry(const ShapeCacheEntry& entry):
|
||||
|
Reference in New Issue
Block a user