diff options
author | 2015-02-12 14:10:21 -0500 | |
---|---|---|
committer | 2015-03-13 08:05:55 -0400 | |
commit | ee248599d49a15fc207c5aeb0b90ec263cc1d600 (patch) | |
tree | abb62a362ef1962a3097a586b638c1d7efc93a31 /libs/hwui/ResourceCache.h | |
parent | 247dc6e125783b31f5c9a2cbccb34bd2ac575e6d (diff) |
Refactor DisplayList path caching.
This removes dependence on SkPath ptrs that HWUI does not control
the lifecycle of. This clears up some errors where the paths are
not generated from Java, but rather the Skia test suites.
Cherry-pick of a change that originally landed in master-skia and is
dependent on a skia merge (ag/655422).
Change-Id: I41b9797a2b0af5d6b4ea51891565469d4f1d832d
Diffstat (limited to 'libs/hwui/ResourceCache.h')
-rw-r--r-- | libs/hwui/ResourceCache.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/libs/hwui/ResourceCache.h b/libs/hwui/ResourceCache.h index 4333792afe42..fae55d14fead 100644 --- a/libs/hwui/ResourceCache.h +++ b/libs/hwui/ResourceCache.h @@ -20,7 +20,6 @@ #include <cutils/compiler.h> #include <SkBitmap.h> -#include <SkPath.h> #include <SkPixelRef.h> #include <utils/KeyedVector.h> @@ -38,7 +37,6 @@ class Layer; */ enum ResourceType { kNinePatch, - kPath }; class ResourceReference { @@ -105,21 +103,16 @@ public: */ const SkBitmap* insert(const SkBitmap* resource); - void incrementRefcount(const SkPath* resource); void incrementRefcount(const Res_png_9patch* resource); void decrementRefcount(const SkBitmap* resource); - void decrementRefcount(const SkPath* resource); void decrementRefcount(const Res_png_9patch* resource); void decrementRefcountLocked(const SkBitmap* resource); - void decrementRefcountLocked(const SkPath* resource); void decrementRefcountLocked(const Res_png_9patch* resource); - void destructor(SkPath* resource); void destructor(Res_png_9patch* resource); - void destructorLocked(SkPath* resource); void destructorLocked(Res_png_9patch* resource); private: |