diff options
author | Chris Craik <ccraik@google.com> | 2014-06-02 16:27:04 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2014-06-10 01:53:17 +0000 |
commit | 05f3d6e5111fd08df5cd9aae2c3d28399dc0e7f5 (patch) | |
tree | 14df3cad82b02a886b8e3a04fd4ec249e1d403e4 /libs/hwui/PathCache.h | |
parent | faecafce62ca39a7693669f7c9eabf2d71c633cf (diff) | |
download | frameworks_base-05f3d6e5111fd08df5cd9aae2c3d28399dc0e7f5.zip frameworks_base-05f3d6e5111fd08df5cd9aae2c3d28399dc0e7f5.tar.gz frameworks_base-05f3d6e5111fd08df5cd9aae2c3d28399dc0e7f5.tar.bz2 |
Tessellate on worker threads
Tessellate and cache (where possible) shadow and round rect
tessellation tasks.
Change-Id: I2cfda8e11d83d51ea74af871235cf26e8f831d40
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 847853a..6177ff1 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(); - } }; /** |