diff options
author | John Reck <jreck@google.com> | 2015-08-05 13:53:53 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2015-08-26 16:29:15 -0700 |
commit | e248bd1b2c3fcf8088429507e73b31f45ee2544b (patch) | |
tree | 11b5ca9ab43877438cc05101ca0c8c2c95bfb6bd /libs/hwui/Outline.h | |
parent | c0877bb0ff769f09e9e60f600bdd294f1aac8331 (diff) |
Serializing display lists
This is a WIP prototype
Change-Id: Id4bfcf2b7bf905221c3734b7b6887c9b2efd37e6
Diffstat (limited to 'libs/hwui/Outline.h')
-rw-r--r-- | libs/hwui/Outline.h | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/libs/hwui/Outline.h b/libs/hwui/Outline.h index 4bd4ae1d48c9..922ff7caecb8 100644 --- a/libs/hwui/Outline.h +++ b/libs/hwui/Outline.h @@ -26,6 +26,13 @@ namespace uirenderer { class Outline { public: + enum class Type { + None = 0, + Empty = 1, + ConvexPath = 2, + RoundRect = 3 + }; + Outline() : mShouldClip(false) , mType(Type::None) @@ -122,14 +129,19 @@ public: return &mPath; } -private: - enum class Type { - None = 0, - Empty = 1, - ConvexPath = 2, - RoundRect = 3 - }; + Type getType() const { + return mType; + } + const Rect& getBounds() const { + return mBounds; + } + + float getRadius() const { + return mRadius; + } + +private: bool mShouldClip; Type mType; Rect mBounds; |