commit | 61317325b7b4b4ffafd9400ab5966e8d7c67df2e | [log] [tgz] |
---|---|---|
author | Chris Craik <ccraik@google.com> | Wed May 21 13:03:52 2014 -0700 |
committer | Chris Craik <ccraik@google.com> | Wed May 21 13:04:10 2014 -0700 |
tree | 314290dd297344c3b8eb62030deef402067e6233 | |
parent | d6a91b0bb64b17dcf4ae635f428dfd4ad310f73e [diff] [blame] |
Disable shadow drawing for empty/null outlines Change-Id: I60d0f326cfab97d88c49d17cf32e619b5e60b94a
diff --git a/libs/hwui/Outline.h b/libs/hwui/Outline.h index 5c24335..5e7f899 100644 --- a/libs/hwui/Outline.h +++ b/libs/hwui/Outline.h
@@ -49,6 +49,10 @@ mBounds.set(outline->getBounds()); } + bool isEmpty() const { + return mType == kOutlineType_None; + } + void setEmpty() { mType = kOutlineType_None; mPath.reset();