diff options
author | 2014-06-10 17:22:31 +0000 | |
---|---|---|
committer | 2014-06-10 17:22:31 +0000 | |
commit | 1e5cf9aced40e6e14262e542d0ed0e24cda877a0 (patch) | |
tree | 1b42070defc0a41277e27ae37c92748dec18fc99 /libs/hwui/PathCache.h | |
parent | f1d758867aa878fb956af7c66bd2d3122adf72a0 (diff) | |
parent | 9a9d1d5ad2591f04881a401da0ad89a95eeddd00 (diff) |
am b1c76a1a: Merge "Tessellate on worker threads" into lmp-preview-dev
* commit 'b1c76a1abcfb2f33e12fef37ec71d20724863b5e':
Tessellate on worker threads
Diffstat (limited to 'libs/hwui/PathCache.h')
-rw-r--r-- | libs/hwui/PathCache.h | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/libs/hwui/PathCache.h b/libs/hwui/PathCache.h index bcfb367ea7d1..eee138b8fddf 100644 --- a/libs/hwui/PathCache.h +++ b/libs/hwui/PathCache.h @@ -26,6 +26,7 @@ #include "Debug.h" #include "Properties.h" #include "Texture.h" +#include "utils/Macros.h" #include "utils/Pair.h" class SkBitmap; @@ -107,6 +108,7 @@ enum ShapeType { }; struct PathDescription { + DESCRIPTION_TYPE(PathDescription); ShapeType type; SkPaint::Join join; SkPaint::Cap cap; @@ -148,29 +150,6 @@ struct PathDescription { PathDescription(ShapeType shapeType, const SkPaint* paint); hash_t hash() const; - - int compare(const PathDescription& rhs) const; - - bool operator==(const PathDescription& other) const { - return compare(other) == 0; - } - - bool operator!=(const PathDescription& other) const { - return compare(other) != 0; - } - - friend inline int strictly_order_type( - const PathDescription& lhs, const PathDescription& rhs) { - return lhs.compare(rhs) < 0; - } - - friend inline int compare_type(const PathDescription& lhs, const PathDescription& rhs) { - return lhs.compare(rhs); - } - - friend inline hash_t hash_type(const PathDescription& entry) { - return entry.hash(); - } }; /** |