diff options
author | Romain Guy <romainguy@google.com> | 2013-03-15 19:06:39 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2013-03-18 18:32:17 -0700 |
commit | c46d07a29e94807e768f8b162ce9f77a88ba6f46 (patch) | |
tree | 9b6aec5f5dc1d73b6cd9d583d5c5c78285480070 /libs/hwui/DisplayList.cpp | |
parent | 338b18844434379de54050ff582d36ff6da3ba11 (diff) |
Merge all shapes/paths caches to PathCache
This change will greatly simplify the multi-threading of all
shape types.
This change also uses PathTessellator to render convex paths.
Change-Id: I4e65bc95c9d24ecae2183b72204de5c2dfb6ada4
Diffstat (limited to 'libs/hwui/DisplayList.cpp')
-rw-r--r-- | libs/hwui/DisplayList.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/hwui/DisplayList.cpp b/libs/hwui/DisplayList.cpp index 4743f58dddb7..4944fe8714ca 100644 --- a/libs/hwui/DisplayList.cpp +++ b/libs/hwui/DisplayList.cpp @@ -14,6 +14,8 @@ * limitations under the License. */ +#include <SkCanvas.h> + #include "Debug.h" #include "DisplayList.h" #include "DisplayListOp.h" @@ -121,9 +123,7 @@ void DisplayList::clearResources() { } for (size_t i = 0; i < mPaths.size(); i++) { - SkPath* path = mPaths.itemAt(i); - caches.pathCache.remove(path); - delete path; + delete mPaths.itemAt(i); } for (size_t i = 0; i < mMatrices.size(); i++) { |