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/UvMapper.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/UvMapper.h')
-rw-r--r-- | libs/hwui/UvMapper.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/libs/hwui/UvMapper.h b/libs/hwui/UvMapper.h index 70428d2efd51..b495e3394bc9 100644 --- a/libs/hwui/UvMapper.h +++ b/libs/hwui/UvMapper.h @@ -33,15 +33,14 @@ public: * Using this constructor is equivalent to not using any mapping at all. * UV coordinates in the [0..1] range remain in the [0..1] range. */ - UvMapper(): mIdentity(true), mMinU(0.0f), mMaxU(1.0f), mMinV(0.0f), mMaxV(1.0f) { - } + UvMapper() : mIdentity(true), mMinU(0.0f), mMaxU(1.0f), mMinV(0.0f), mMaxV(1.0f) {} /** * Creates a new mapper with the specified ranges for U and V coordinates. * The parameter minU must be < maxU and minV must be < maxV. */ - UvMapper(float minU, float maxU, float minV, float maxV): - mMinU(minU), mMaxU(maxU), mMinV(minV), mMaxV(maxV) { + UvMapper(float minU, float maxU, float minV, float maxV) + : mMinU(minU), mMaxU(maxU), mMinV(minV), mMaxV(maxV) { checkIdentity(); } @@ -49,9 +48,7 @@ public: * Returns true if calling the map*() methods has no effect (that is, * texture coordinates remain in the 0..1 range.) */ - bool isIdentity() const { - return mIdentity; - } + bool isIdentity() const { return mIdentity; } /** * Changes the U and V mapping ranges. @@ -127,7 +124,7 @@ private: float mMaxV; }; -}; // namespace uirenderer -}; // namespace android +}; // namespace uirenderer +}; // namespace android -#endif // ANDROID_HWUI_UV_MAPPER_H +#endif // ANDROID_HWUI_UV_MAPPER_H |