diff options
author | John Reck <jreck@google.com> | 2017-11-03 10:12:19 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2017-11-03 10:57:44 -0700 |
commit | 1bcacfdcab0eaa0cee92bd7f5a1b5e271dd68e52 (patch) | |
tree | 4a1366cf2d1cf50b5ec4ed1a8cf0f437053cd0d7 /libs/hwui/RevealClip.h | |
parent | 30ec71c0fe194a551d2e4abaff2159e0730488e0 (diff) |
Format the world (or just HWUI)
Test: No code changes, just ran through clang-format
Change-Id: Id23aa4ec7eebc0446fe3a30260f33e7fd455bb8c
Diffstat (limited to 'libs/hwui/RevealClip.h')
-rw-r--r-- | libs/hwui/RevealClip.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/libs/hwui/RevealClip.h b/libs/hwui/RevealClip.h index 63821dddd369..a5678d48482a 100644 --- a/libs/hwui/RevealClip.h +++ b/libs/hwui/RevealClip.h @@ -25,11 +25,7 @@ namespace uirenderer { class RevealClip { public: - RevealClip() - : mShouldClip(false) - , mX(0) - , mY(0) - , mRadius(0) {} + RevealClip() : mShouldClip(false), mX(0), mY(0), mRadius(0) {} void set(bool shouldClip, float x, float y, float radius) { mShouldClip = shouldClip; @@ -43,13 +39,10 @@ public: } } - bool willClip() const { - return mShouldClip; - } + bool willClip() const { return mShouldClip; } void getBounds(Rect* outBounds) const { - outBounds->set(mX - mRadius, mY - mRadius, - mX + mRadius, mY + mRadius); + outBounds->set(mX - mRadius, mY - mRadius, mX + mRadius, mY + mRadius); } float getRadius() const { return mRadius; } |